Home
last modified time | relevance | path

Searched refs:ktype (Results 1 – 14 of 14) sorted by path

/openssh-portable/
H A Dclientloop.c2084 const char *ktype = sshkey_ssh_name(key); in key_accepted_by_hostkeyalgs() local
2093 return match_pattern_list(ktype, hostkeyalgs, 0) == 1; in key_accepted_by_hostkeyalgs()
H A Dhostfile.c664 char *line = NULL, ktype[128]; in hostkeys_foreach() local
786 if (l <= 1 || l >= sizeof(ktype) || in hostkeys_foreach()
789 memcpy(ktype, lineinfo.rawkey, l); in hostkeys_foreach()
790 ktype[l] = '\0'; in hostkeys_foreach()
791 lineinfo.keytype = sshkey_type_from_name(ktype); in hostkeys_foreach()
798 strspn(ktype, "0123456789") == l) in hostkeys_foreach()
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 Dssh-ecdsa-sk.c67 char *ktype = NULL; in ssh_ecdsa_sk_verify() local
86 if (sshbuf_get_cstring(b, &ktype, NULL) != 0 || in ssh_ecdsa_sk_verify()
93 if (strcmp(sshkey_ssh_name_plain(key), ktype) != 0) { in ssh_ecdsa_sk_verify()
204 free(ktype); in ssh_ecdsa_sk_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-ed25519-sk.c46 char *ktype = NULL; in ssh_ed25519_sk_verify() local
71 if (sshbuf_get_cstring(b, &ktype, NULL) != 0 || in ssh_ed25519_sk_verify()
86 if (strcmp(sshkey_ssh_name_plain(key), ktype) != 0) { in ssh_ed25519_sk_verify()
162 free(ktype); in ssh_ed25519_sk_verify()
H A Dssh-ed25519.c98 char *ktype = NULL; in ssh_ed25519_verify() local
114 if ((r = sshbuf_get_cstring(b, &ktype, NULL)) != 0 || in ssh_ed25519_verify()
117 if (strcmp("ssh-ed25519", ktype) != 0) { in ssh_ed25519_verify()
159 free(ktype); in ssh_ed25519_verify()
H A Dssh-keygen.c477 int r, rlen, ktype; in do_convert_private_ssh2() local
511 ktype = KEY_DSA; in do_convert_private_ssh2()
513 ktype = KEY_RSA; in do_convert_private_ssh2()
518 if ((key = sshkey_new(ktype)) == NULL) in do_convert_private_ssh2()
H A Dssh-xmss.c118 char *ktype = NULL; in ssh_xmss_verify() local
138 if ((r = sshbuf_get_cstring(b, &ktype, NULL)) != 0 || in ssh_xmss_verify()
141 if (strcmp("ssh-xmss@openssh.com", ktype) != 0) { in ssh_xmss_verify()
183 free(ktype); in ssh_xmss_verify()
H A Dssh_api.c521 int ktype, r; in _ssh_order_hostkeyalgs() local
538 if ((ktype = sshkey_type_from_name(alg)) == KEY_UNSPEC) in _ssh_order_hostkeyalgs()
541 if (k->key->type == ktype || in _ssh_order_hostkeyalgs()
543 sshkey_type_plain(ktype))) { in _ssh_order_hostkeyalgs()
H A Dsshconnect2.c111 int ktype; in order_hostkeyalgs() local
136 if ((ktype = sshkey_type_from_name(alg)) == KEY_UNSPEC) in order_hostkeyalgs()
139 sshkey_type_plain(ktype), NULL)) in order_hostkeyalgs()
H A Dsshkey.c2338 char *ktype = NULL, *curve = NULL, *xmss_name = NULL; in sshkey_from_blob_internal() local
2360 if (sshbuf_get_cstring(b, &ktype, NULL) != 0) { in sshkey_from_blob_internal()
2365 type = sshkey_type_from_name(ktype); in sshkey_from_blob_internal()
2448 key->ecdsa_nid = sshkey_ecdsa_nid_from_name(ktype); in sshkey_from_blob_internal()
2585 free(ktype); in sshkey_from_blob_internal()
/openssh-portable/regress/
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 …]
H A Dcert-userkey.sh45 verbose "$tid: sign user ${ktype} cert"
46 ${SSHKEYGEN} -q -N '' -t ${ktype} \
50 case $ktype in
51 rsa-sha2-*) tflag="-t $ktype" ;;
62 t=$(kname $ktype)
64 _prefix="${ktype} privsep $privsep"
198 for ktype in $PLAIN_TYPES ; do
199 t=$(kname $ktype)
299 for ktype in $rsa ed25519 ; do
387 for ktype in $PLAIN_TYPES ; do
[all …]

Completed in 33 milliseconds