Home
last modified time | relevance | path

Searched refs:ktype (Results 1 – 12 of 12) sorted by relevance

/openssh-portable/regress/
H A Dcert-userkey.sh20 case $ktype in
21 rsa-sha2-*) n="$ktype" ;;
44 ${SSHKEYGEN} -q -N '' -t ${ktype} \
48 case $ktype in
49 rsa-sha2-*) tflag="-t $ktype" ;;
60 t=$(kname $ktype)
196 for ktype in $PLAIN_TYPES ; do
197 t=$(kname $ktype)
297 for ktype in $rsa ed25519 ; do
385 for ktype in $PLAIN_TYPES ; do
[all …]
H A Dcert-hostkey.sh88 for ktype in $PLAIN_TYPES ; do
91 ${SSHKEYGEN} -q -N '' -t ${ktype} \
97 case $ktype in
135 for ktype in $PLAIN_TYPES ; do
167 for ktype in $PLAIN_TYPES ; do
173 for ktype in $PLAIN_TYPES ; do
196 for ktype in $PLAIN_TYPES ; do
222 case $ktype in
261 for ktype in $PLAIN_TYPES ; do
265 ${SSHKEYGEN} -q -N '' -t ${ktype} -f $OBJ/cert_host_key_${ktype} || \
[all …]
/openssh-portable/
H A Dssh-ed25519.c100 char *ktype = NULL; in ssh_ed25519_verify() local
116 if ((r = sshbuf_get_cstring(b, &ktype, NULL)) != 0 || in ssh_ed25519_verify()
119 if (strcmp("ssh-ed25519", ktype) != 0) { in ssh_ed25519_verify()
165 free(ktype); in ssh_ed25519_verify()
H A Dssh-ecdsa.c125 char *ktype = NULL; in ssh_ecdsa_verify() local
139 if (sshbuf_get_cstring(b, &ktype, NULL) != 0 || in ssh_ecdsa_verify()
144 if (strcmp(sshkey_ssh_name_plain(key), ktype) != 0) { in ssh_ecdsa_verify()
196 free(ktype); in ssh_ecdsa_verify()
H A Dssh-xmss.c120 char *ktype = NULL; in ssh_xmss_verify() local
140 if ((r = sshbuf_get_cstring(b, &ktype, NULL)) != 0 || in ssh_xmss_verify()
143 if (strcmp("ssh-xmss@openssh.com", ktype) != 0) { in ssh_xmss_verify()
189 free(ktype); in ssh_xmss_verify()
H A Dssh-dss.c130 char *ktype = NULL; in ssh_dss_verify() local
142 if (sshbuf_get_cstring(b, &ktype, NULL) != 0 || in ssh_dss_verify()
147 if (strcmp("ssh-dss", ktype) != 0) { in ssh_dss_verify()
202 free(ktype); in ssh_dss_verify()
H A Dhostfile.c665 char *line = NULL, ktype[128]; in hostkeys_foreach() local
787 if (l <= 1 || l >= sizeof(ktype) || in hostkeys_foreach()
790 memcpy(ktype, lineinfo.rawkey, l); in hostkeys_foreach()
791 ktype[l] = '\0'; in hostkeys_foreach()
792 lineinfo.keytype = sshkey_type_from_name(ktype); in hostkeys_foreach()
799 strspn(ktype, "0123456789") == l) in hostkeys_foreach()
H A Dssh_api.c520 int ktype, r; in _ssh_order_hostkeyalgs() local
537 if ((ktype = sshkey_type_from_name(alg)) == KEY_UNSPEC) in _ssh_order_hostkeyalgs()
540 if (k->key->type == ktype || in _ssh_order_hostkeyalgs()
542 sshkey_type_plain(ktype))) { in _ssh_order_hostkeyalgs()
H A Dssh-keygen.c455 int r, rlen, ktype; in do_convert_private_ssh2() local
489 ktype = KEY_DSA; in do_convert_private_ssh2()
491 ktype = KEY_RSA; in do_convert_private_ssh2()
496 if ((key = sshkey_new(ktype)) == NULL) in do_convert_private_ssh2()
H A Dsshconnect2.c109 int ktype; in order_hostkeyalgs() local
134 if ((ktype = sshkey_type_from_name(alg)) == KEY_UNSPEC) in order_hostkeyalgs()
137 sshkey_type_plain(ktype), NULL)) in order_hostkeyalgs()
H A Dsshkey.c2236 char *ktype = NULL, *curve = NULL, *xmss_name = NULL; in sshkey_from_blob_internal() local
2258 if (sshbuf_get_cstring(b, &ktype, NULL) != 0) { in sshkey_from_blob_internal()
2263 type = sshkey_type_from_name(ktype); in sshkey_from_blob_internal()
2344 key->ecdsa_nid = sshkey_ecdsa_nid_from_name(ktype); in sshkey_from_blob_internal()
2457 free(ktype); in sshkey_from_blob_internal()
H A Dclientloop.c2036 const char *ktype = sshkey_ssh_name(key); in key_accepted_by_hostkeyalgs() local
2046 return match_pattern_list(ktype, hostkeyalgs, 0) == 1; in key_accepted_by_hostkeyalgs()

Completed in 34 milliseconds