/openbsd/usr.bin/ssh/ |
H A D | ssh-sk-helper.c | 100 (r = sshbuf_get_cstring(req, &provider, NULL)) != 0 || in process_sign() 102 (r = sshbuf_get_cstring(req, NULL, NULL)) != 0 || /* alg */ in process_sign() 104 (r = sshbuf_get_cstring(req, &pin, NULL)) != 0) in process_sign() 160 (r = sshbuf_get_cstring(req, &provider, NULL)) != 0 || in process_enroll() 161 (r = sshbuf_get_cstring(req, &device, NULL)) != 0 || in process_enroll() 162 (r = sshbuf_get_cstring(req, &application, NULL)) != 0 || in process_enroll() 163 (r = sshbuf_get_cstring(req, &userid, NULL)) != 0 || in process_enroll() 165 (r = sshbuf_get_cstring(req, &pin, NULL)) != 0 || in process_enroll() 222 if ((r = sshbuf_get_cstring(req, &provider, NULL)) != 0 || in process_load_resident() 223 (r = sshbuf_get_cstring(req, &device, NULL)) != 0 || in process_load_resident() [all …]
|
H A D | ssh-keysign.c | 99 if ((r = sshbuf_get_cstring(b, &p, NULL)) != 0) in valid_request() 106 if ((r = sshbuf_get_cstring(b, &p, NULL)) != 0) in valid_request() 113 if ((r = sshbuf_get_cstring(b, &pkalg, NULL)) != 0 || in valid_request() 127 if ((r = sshbuf_get_cstring(b, &p, &len)) != 0) in valid_request() 139 if ((r = sshbuf_get_cstring(b, &luser, NULL)) != 0) in valid_request()
|
H A D | monitor_wrap.c | 296 (r = sshbuf_get_cstring(m, &newopts->x, NULL)) != 0) \ in mm_decode_activate_server_options() 303 if ((r = sshbuf_get_cstring(m, \ in mm_decode_activate_server_options() 364 if ((r = sshbuf_get_cstring(m, &pw->pw_name, NULL)) != 0 || in mm_getpwnamallow() 366 (r = sshbuf_get_cstring(m, &pw->pw_gecos, NULL)) != 0 || in mm_getpwnamallow() 367 (r = sshbuf_get_cstring(m, &pw->pw_class, NULL)) != 0 || in mm_getpwnamallow() 368 (r = sshbuf_get_cstring(m, &pw->pw_dir, NULL)) != 0 || in mm_getpwnamallow() 369 (r = sshbuf_get_cstring(m, &pw->pw_shell, NULL)) != 0) in mm_getpwnamallow() 399 if ((r = sshbuf_get_cstring(m, &banner, NULL)) != 0) in mm_auth2_read_banner() 622 if ((r = sshbuf_get_cstring(m, &p, NULL)) != 0 || in mm_pty_allocate() 623 (r = sshbuf_get_cstring(m, &msg, NULL)) != 0) in mm_pty_allocate() [all …]
|
H A D | sftp-server.c | 739 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0 || in process_open() 896 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0) in process_do_stat() 983 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0 || in process_setstat() 1083 if ((r = sshbuf_get_cstring(iqueue, &path, NULL)) != 0) in process_opendir() 1169 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0) in process_remove() 1187 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0 || in process_mkdir() 1207 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0) in process_rmdir() 1225 if ((r = sshbuf_get_cstring(iqueue, &path, NULL)) != 0) in process_realpath() 1305 if ((r = sshbuf_get_cstring(iqueue, &path, NULL)) != 0) in process_readlink() 1369 if ((r = sshbuf_get_cstring(iqueue, &path, NULL)) != 0) in process_extended_statvfs() [all …]
|
H A D | mux.c | 356 if ((r = sshbuf_get_cstring(m, &cp, NULL)) != 0) in mux_master_process_new_session() 1666 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_request_alive() 1728 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_request_terminate() 1732 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_request_terminate() 1818 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_forward() 1824 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_forward() 1954 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_request_session() 1960 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_request_session() 2082 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_proxy() 2157 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_request_stdio_fwd() [all …]
|
H A D | monitor.c | 400 (r = sshbuf_get_cstring(logmsg, &msg, NULL)) != 0) in monitor_read_log() 647 (r = sshbuf_get_cstring(m, &alg, NULL)) != 0 || in mm_answer_sign() 891 if ((r = sshbuf_get_cstring(m, &passwd, &plen)) != 0) in mm_answer_authpassword() 1137 if ((r = sshbuf_get_cstring(b, &cp, NULL)) != 0) in monitor_valid_userblob() 1150 (r = sshbuf_get_cstring(b, &cp, NULL)) != 0) in monitor_valid_userblob() 1208 if ((r = sshbuf_get_cstring(b, &cp, NULL)) != 0) in monitor_valid_hostbasedblob() 1221 (r = sshbuf_get_cstring(b, &cp, NULL)) != 0) in monitor_valid_hostbasedblob() 1231 if ((r = sshbuf_get_cstring(b, &cp, NULL)) != 0) in monitor_valid_hostbasedblob() 1240 if ((r = sshbuf_get_cstring(b, &cp, NULL)) != 0) in monitor_valid_hostbasedblob() 1266 (r = sshbuf_get_cstring(m, &sigalg, NULL)) != 0) in mm_answer_keyverify() [all …]
|
H A D | ssh-pkcs11-helper.c | 124 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0 || in process_add() 125 (r = sshbuf_get_cstring(iqueue, &pin, NULL)) != 0) in process_add() 164 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0 || in process_del() 165 (r = sshbuf_get_cstring(iqueue, &pin, NULL)) != 0) in process_del()
|
H A D | ssh-agent.c | 710 (r = sshbuf_get_cstring(b, &pkalg, NULL)) != 0 || /* alg */ in parse_userauth_request() 776 (r = sshbuf_get_cstring(b, NULL, NULL)) != 0 || /* hashalg */ in parse_sshsig_request() 1078 if ((r = sshbuf_get_cstring(b, &dch->user, NULL)) != 0 || in parse_dest_constraint_hop() 1079 (r = sshbuf_get_cstring(b, &dch->hostname, NULL)) != 0 || in parse_dest_constraint_hop() 1186 if ((r = sshbuf_get_cstring(m, &ext_name, NULL)) != 0) { in parse_key_constraint_extension() 1202 if ((r = sshbuf_get_cstring(m, sk_providerp, NULL)) != 0) { in parse_key_constraint_extension() 1362 (r = sshbuf_get_cstring(e->request, &comment, NULL)) != 0) { in process_add_identity() 1476 if ((r = sshbuf_get_cstring(e->request, &passwd, &pwlen)) != 0) in process_lock_agent() 1571 (r = sshbuf_get_cstring(e->request, &pin, NULL)) != 0) { in process_add_smartcard_key() 1652 (r = sshbuf_get_cstring(e->request, &pin, NULL)) != 0) { in process_remove_smartcard_key() [all …]
|
H A D | ssh-xmss.c | 135 if ((ret = sshbuf_get_cstring(b, &xmss_name, NULL)) != 0) in ssh_xmss_deserialize_public() 168 if ((r = sshbuf_get_cstring(b, &xmss_name, NULL)) != 0 || in ssh_xmss_deserialize_private() 298 if ((r = sshbuf_get_cstring(b, &ktype, NULL)) != 0 || in ssh_xmss_verify()
|
H A D | auth-options.c | 88 if ((r = sshbuf_get_cstring(c, &name, NULL)) != 0 || in cert_option_list() 124 if ((r = sshbuf_get_cstring(data, &command, in cert_option_list() 139 if ((r = sshbuf_get_cstring(data, &allowed, in cert_option_list() 749 if ((r = sshbuf_get_cstring(b, &a[i], NULL)) != 0) in deserialise_array() 787 (r = sshbuf_get_cstring(m, flag ? NULL : sp, NULL)) != 0) in deserialise_nullable_string()
|
H A D | ssh-ecdsa-sk.c | 254 if (sshbuf_get_cstring(b, &ktype, NULL) != 0) { in ssh_ecdsa_sk_verify() 271 if (sshbuf_get_cstring(b, &webauthn_origin, NULL) != 0 || in ssh_ecdsa_sk_verify()
|
H A D | ssh-ecdsa.c | 231 if ((r = sshbuf_get_cstring(b, &curve, NULL)) != 0) in ssh_ecdsa_deserialize_public() 400 if (sshbuf_get_cstring(b, &ktype, NULL) != 0 || in ssh_ecdsa_verify()
|
H A D | sftp-client.c | 487 if ((r = sshbuf_get_cstring(msg, &name, NULL)) != 0 || in sftp_init() 769 if ((r = sshbuf_get_cstring(msg, &filename, in sftp_lsreaddir() 771 (r = sshbuf_get_cstring(msg, &longname, in sftp_lsreaddir() 1030 (r = sshbuf_get_cstring(msg, &errmsg, NULL)) != 0) in sftp_realpath_expand() 1046 if ((r = sshbuf_get_cstring(msg, &filename, NULL)) != 0 || in sftp_realpath_expand() 1047 (r = sshbuf_get_cstring(msg, &longname, NULL)) != 0 || in sftp_realpath_expand() 1392 if ((r = sshbuf_get_cstring(msg, &filename, NULL)) != 0 || in sftp_readlink() 1393 (r = sshbuf_get_cstring(msg, &longname, NULL)) != 0 || in sftp_readlink() 2870 (r = sshbuf_get_cstring(msg, &errmsg, NULL)) != 0) in sftp_get_users_groups_by_id() 2893 if ((r = sshbuf_get_cstring(uidbuf, &name, NULL)) != 0) in sftp_get_users_groups_by_id() [all …]
|
H A D | sshkey.c | 1842 (ret = sshbuf_get_cstring(b, &key->cert->key_id, &kidlen)) != 0 || in cert_parse() 1878 if ((ret = sshbuf_get_cstring(principals, &principal, in cert_parse() 1956 if (sshbuf_get_cstring(b, &key->sk_application, NULL) != 0) in sshkey_deserialize_sk() 1980 if (sshbuf_get_cstring(b, &ktype, NULL) != 0) { in sshkey_from_blob_internal() 2071 if ((r = sshbuf_get_cstring(b, &sigtype, NULL)) != 0) in sshkey_get_sigtype() 2566 if ((r = sshbuf_get_cstring(buf, &k->sk_application, NULL)) != 0 || in sshkey_private_deserialize_sk() 2587 if ((r = sshbuf_get_cstring(buf, &tname, NULL)) != 0) in sshkey_private_deserialize() 3027 (r = sshbuf_get_cstring(decoded, &ciphername, NULL)) != 0 || in private2_decrypt() 3028 (r = sshbuf_get_cstring(decoded, &kdfname, NULL)) != 0 || in private2_decrypt() 3175 (r = sshbuf_get_cstring(decrypted, &comment, NULL)) != 0) in sshkey_parse_private2()
|
H A D | ssh-ed25519-sk.c | 155 if (sshbuf_get_cstring(b, &ktype, NULL) != 0 || in ssh_ed25519_sk_verify()
|
H A D | sftp-common.c | 138 if ((r = sshbuf_get_cstring(b, &type, NULL)) != 0 || in decode_attrib()
|
H A D | krl.c | 831 if ((r = sshbuf_get_cstring(subsect, &name, NULL)) != 0 || in cert_extension_subsection() 943 if ((r = sshbuf_get_cstring(subsect, in parse_revoked_certs() 1011 if ((r = sshbuf_get_cstring(sect, &name, NULL)) != 0 || in extension_section() 1080 (r = sshbuf_get_cstring(copy, &krl->comment, NULL)) != 0) { in ssh_krl_from_blob()
|
H A D | ssh-ed25519.c | 224 if ((r = sshbuf_get_cstring(b, &ktype, NULL)) != 0 || in ssh_ed25519_verify()
|
H A D | sshsig.c | 286 (r = sshbuf_get_cstring(buf, &hashalg, NULL)) != 0 || in sshsig_peek_hashalg() 339 (r = sshbuf_get_cstring(signature, &got_namespace, NULL)) != 0 || in sshsig_wrap_verify() 341 (r = sshbuf_get_cstring(signature, &sig_hashalg, NULL)) != 0 || in sshsig_wrap_verify()
|
H A D | sshkey-xmss.c | 311 if ((r = sshbuf_get_cstring(b, &state->enc_ciphername, NULL)) != 0 || in sshkey_xmss_deserialize_enc_key() 782 if ((r = sshbuf_get_cstring(b, &magic, NULL)) != 0 || in sshkey_xmss_deserialize_state() 855 (r = sshbuf_get_cstring(b, &k->xmss_filename, NULL)) != 0) in sshkey_xmss_deserialize_state_opt()
|
H A D | sshbuf.h | 197 int sshbuf_get_cstring(struct sshbuf *buf, char **valp, size_t *lenp);
|
H A D | packet.c | 2428 if ((r = sshbuf_get_cstring(b, &enc->name, NULL)) != 0 || in newkeys_from_blob() 2439 if ((r = sshbuf_get_cstring(b, &mac->name, NULL)) != 0) in newkeys_from_blob() 2453 (r = sshbuf_get_cstring(b, &comp->name, NULL)) != 0) in newkeys_from_blob() 2480 (r = sshbuf_get_cstring(m, &kex->hostkey_alg, NULL)) != 0 || in kex_from_blob() 2679 return sshbuf_get_cstring(ssh->state->incoming_packet, valp, lenp); in sshpkt_get_cstring()
|
/openbsd/regress/usr.bin/ssh/unittests/sshbuf/ |
H A D | test_sshbuf_fixed.c | 56 ASSERT_INT_EQ(sshbuf_get_cstring(p1, &s, &l), 0); in sshbuf_fixed() 87 ASSERT_INT_EQ(sshbuf_get_cstring(p2, &s, &l), 0); in sshbuf_fixed()
|
H A D | test_sshbuf_getput_basic.c | 344 r = sshbuf_get_cstring(p1, &s2, &s); in sshbuf_getput_basic_tests() 356 r = sshbuf_get_cstring(p1, &s2, NULL); in sshbuf_getput_basic_tests() 367 ASSERT_INT_EQ(sshbuf_get_cstring(p1, &s2, &s), 0); in sshbuf_getput_basic_tests()
|
/openbsd/regress/usr.bin/ssh/misc/ssh-verify-attestation/ |
H A D | ssh-verify-attestation.c | 88 if ((r = sshbuf_get_cstring(b, &magic, NULL)) != 0) { in prepare_fido_cred()
|