Home
last modified time | relevance | path

Searched refs:sshbuf_get_cstring (Results 1 – 25 of 37) sorted by relevance

12

/freebsd-14.2/crypto/openssh/
H A Dssh-sk-helper.c103 (r = sshbuf_get_cstring(req, &provider, NULL)) != 0 || in process_sign()
105 (r = sshbuf_get_cstring(req, NULL, NULL)) != 0 || /* alg */ in process_sign()
107 (r = sshbuf_get_cstring(req, &pin, NULL)) != 0) in process_sign()
163 (r = sshbuf_get_cstring(req, &provider, NULL)) != 0 || in process_enroll()
164 (r = sshbuf_get_cstring(req, &device, NULL)) != 0 || in process_enroll()
165 (r = sshbuf_get_cstring(req, &application, NULL)) != 0 || in process_enroll()
166 (r = sshbuf_get_cstring(req, &userid, NULL)) != 0 || in process_enroll()
168 (r = sshbuf_get_cstring(req, &pin, NULL)) != 0 || in process_enroll()
225 if ((r = sshbuf_get_cstring(req, &provider, NULL)) != 0 || in process_load_resident()
226 (r = sshbuf_get_cstring(req, &device, NULL)) != 0 || in process_load_resident()
[all …]
H A Dmonitor_wrap.c296 if ((r = sshbuf_get_cstring(m, &pw->pw_name, NULL)) != 0 || in mm_getpwnamallow()
304 (r = sshbuf_get_cstring(m, &pw->pw_dir, NULL)) != 0 || in mm_getpwnamallow()
305 (r = sshbuf_get_cstring(m, &pw->pw_shell, NULL)) != 0) in mm_getpwnamallow()
326 if ((r = sshbuf_get_cstring(m, \ in mm_getpwnamallow()
366 if ((r = sshbuf_get_cstring(m, &banner, NULL)) != 0) in mm_auth2_read_banner()
599 if ((r = sshbuf_get_cstring(m, &p, NULL)) != 0 || in mm_pty_allocate()
600 (r = sshbuf_get_cstring(m, &msg, NULL)) != 0) in mm_pty_allocate()
679 (r = sshbuf_get_cstring(m, &msg, &msglen)) != 0 || in mm_do_pam_account()
730 (r = sshbuf_get_cstring(m, name, NULL)) != 0 || in mm_sshpam_query()
731 (r = sshbuf_get_cstring(m, info, NULL)) != 0 || in mm_sshpam_query()
[all …]
H A Dssh-keysign.c104 if ((r = sshbuf_get_cstring(b, &p, NULL)) != 0) in valid_request()
111 if ((r = sshbuf_get_cstring(b, &p, NULL)) != 0) in valid_request()
118 if ((r = sshbuf_get_cstring(b, &pkalg, NULL)) != 0 || in valid_request()
132 if ((r = sshbuf_get_cstring(b, &p, &len)) != 0) in valid_request()
144 if ((r = sshbuf_get_cstring(b, &luser, NULL)) != 0) in valid_request()
H A Dsftp-server.c749 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0 || in process_open()
906 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0) in process_do_stat()
993 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0 || in process_setstat()
1105 if ((r = sshbuf_get_cstring(iqueue, &path, NULL)) != 0) in process_opendir()
1191 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0) in process_remove()
1209 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0 || in process_mkdir()
1229 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0) in process_rmdir()
1247 if ((r = sshbuf_get_cstring(iqueue, &path, NULL)) != 0) in process_realpath()
1334 if ((r = sshbuf_get_cstring(iqueue, &path, NULL)) != 0) in process_readlink()
1398 if ((r = sshbuf_get_cstring(iqueue, &path, NULL)) != 0) in process_extended_statvfs()
[all …]
H A Dmonitor.c454 (r = sshbuf_get_cstring(logmsg, &msg, NULL)) != 0) in monitor_read_log()
887 if ((r = sshbuf_get_cstring(m, &passwd, &plen)) != 0) in mm_answer_authpassword()
1278 if ((r = sshbuf_get_cstring(b, &cp, NULL)) != 0) in monitor_valid_userblob()
1291 (r = sshbuf_get_cstring(b, &cp, NULL)) != 0) in monitor_valid_userblob()
1349 if ((r = sshbuf_get_cstring(b, &cp, NULL)) != 0) in monitor_valid_hostbasedblob()
1362 (r = sshbuf_get_cstring(b, &cp, NULL)) != 0) in monitor_valid_hostbasedblob()
1372 if ((r = sshbuf_get_cstring(b, &cp, NULL)) != 0) in monitor_valid_hostbasedblob()
1381 if ((r = sshbuf_get_cstring(b, &cp, NULL)) != 0) in monitor_valid_hostbasedblob()
1407 (r = sshbuf_get_cstring(m, &sigalg, NULL)) != 0) in mm_answer_keyverify()
1625 if ((r = sshbuf_get_cstring(m, &tty, NULL)) != 0) in mm_answer_pty_cleanup()
[all …]
H A Dmux.c370 if ((r = sshbuf_get_cstring(m, &cp, NULL)) != 0) in mux_master_process_new_session()
1686 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_request_alive()
1748 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_request_terminate()
1752 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_request_terminate()
1838 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_forward()
1844 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_forward()
1974 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_request_session()
1980 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_request_session()
2103 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_proxy()
2179 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_request_stdio_fwd()
[all …]
H A Dssh-pkcs11-helper.c131 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0 || in process_add()
132 (r = sshbuf_get_cstring(iqueue, &pin, NULL)) != 0) in process_add()
171 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0 || in process_del()
172 (r = sshbuf_get_cstring(iqueue, &pin, NULL)) != 0) in process_del()
H A Dssh-agent.c736 (r = sshbuf_get_cstring(b, &pkalg, NULL)) != 0 || /* alg */ in parse_userauth_request()
802 (r = sshbuf_get_cstring(b, NULL, NULL)) != 0 || /* hashalg */ in parse_sshsig_request()
1097 if ((r = sshbuf_get_cstring(b, &dch->user, NULL)) != 0 || in parse_dest_constraint_hop()
1098 (r = sshbuf_get_cstring(b, &dch->hostname, NULL)) != 0 || in parse_dest_constraint_hop()
1205 if ((r = sshbuf_get_cstring(m, &ext_name, NULL)) != 0) { in parse_key_constraint_extension()
1221 if ((r = sshbuf_get_cstring(m, sk_providerp, NULL)) != 0) { in parse_key_constraint_extension()
1385 (r = sshbuf_get_cstring(e->request, &comment, NULL)) != 0) { in process_add_identity()
1499 if ((r = sshbuf_get_cstring(e->request, &passwd, &pwlen)) != 0) in process_lock_agent()
1594 (r = sshbuf_get_cstring(e->request, &pin, NULL)) != 0) { in process_add_smartcard_key()
1675 (r = sshbuf_get_cstring(e->request, &pin, NULL)) != 0) { in process_remove_smartcard_key()
[all …]
H A Dssh-xmss.c140 if ((ret = sshbuf_get_cstring(b, &xmss_name, NULL)) != 0) in ssh_xmss_deserialize_public()
173 if ((r = sshbuf_get_cstring(b, &xmss_name, NULL)) != 0 || in ssh_xmss_deserialize_private()
303 if ((r = sshbuf_get_cstring(b, &ktype, NULL)) != 0 || in ssh_xmss_verify()
H A Dauth-options.c93 if ((r = sshbuf_get_cstring(c, &name, NULL)) != 0 || in cert_option_list()
129 if ((r = sshbuf_get_cstring(data, &command, in cert_option_list()
144 if ((r = sshbuf_get_cstring(data, &allowed, in cert_option_list()
754 if ((r = sshbuf_get_cstring(b, &a[i], NULL)) != 0) in deserialise_array()
792 (r = sshbuf_get_cstring(m, flag ? NULL : sp, NULL)) != 0) in deserialise_nullable_string()
H A Dssh-ecdsa.c165 if ((r = sshbuf_get_cstring(b, &curve, NULL)) != 0) in ssh_ecdsa_deserialize_public()
317 if (sshbuf_get_cstring(b, &ktype, NULL) != 0 || in ssh_ecdsa_verify()
H A Dssh-ecdsa-sk.c270 if (sshbuf_get_cstring(b, &ktype, NULL) != 0) { in ssh_ecdsa_sk_verify()
287 if (sshbuf_get_cstring(b, &webauthn_origin, NULL) != 0 || in ssh_ecdsa_sk_verify()
H A Dsftp-client.c507 if ((r = sshbuf_get_cstring(msg, &name, NULL)) != 0 || in sftp_init()
789 if ((r = sshbuf_get_cstring(msg, &filename, in sftp_lsreaddir()
791 (r = sshbuf_get_cstring(msg, &longname, in sftp_lsreaddir()
1050 (r = sshbuf_get_cstring(msg, &errmsg, NULL)) != 0) in sftp_realpath_expand()
1066 if ((r = sshbuf_get_cstring(msg, &filename, NULL)) != 0 || in sftp_realpath_expand()
1067 (r = sshbuf_get_cstring(msg, &longname, NULL)) != 0 || in sftp_realpath_expand()
1412 if ((r = sshbuf_get_cstring(msg, &filename, NULL)) != 0 || in sftp_readlink()
1413 (r = sshbuf_get_cstring(msg, &longname, NULL)) != 0 || in sftp_readlink()
2895 (r = sshbuf_get_cstring(msg, &errmsg, NULL)) != 0) in sftp_get_users_groups_by_id()
2918 if ((r = sshbuf_get_cstring(uidbuf, &name, NULL)) != 0) in sftp_get_users_groups_by_id()
[all …]
H A Dauth-pam.c362 if ((r = sshbuf_get_cstring(b, &(sshpam_env[i]), NULL)) != 0) in import_environments()
376 if ((r = sshbuf_get_cstring(b, &env, NULL)) != 0) in import_environments()
442 if ((r = sshbuf_get_cstring(buffer, in sshpam_thread_conv()
868 (r = sshbuf_get_cstring(buffer, &msg, &mlen)) != 0) in sshpam_query()
H A Dsshkey.c1777 (ret = sshbuf_get_cstring(b, &key->cert->key_id, &kidlen)) != 0 || in cert_parse()
1813 if ((ret = sshbuf_get_cstring(principals, &principal, in cert_parse()
1891 if (sshbuf_get_cstring(b, &key->sk_application, NULL) != 0) in sshkey_deserialize_sk()
1915 if (sshbuf_get_cstring(b, &ktype, NULL) != 0) { in sshkey_from_blob_internal()
2006 if ((r = sshbuf_get_cstring(b, &sigtype, NULL)) != 0) in sshkey_get_sigtype()
2501 if ((r = sshbuf_get_cstring(buf, &k->sk_application, NULL)) != 0 || in sshkey_private_deserialize_sk()
2522 if ((r = sshbuf_get_cstring(buf, &tname, NULL)) != 0) in sshkey_private_deserialize()
2975 (r = sshbuf_get_cstring(decoded, &ciphername, NULL)) != 0 || in private2_decrypt()
2976 (r = sshbuf_get_cstring(decoded, &kdfname, NULL)) != 0 || in private2_decrypt()
3123 (r = sshbuf_get_cstring(decrypted, &comment, NULL)) != 0) in sshkey_parse_private2()
H A Dssh-ed25519-sk.c157 if (sshbuf_get_cstring(b, &ktype, NULL) != 0 || in ssh_ed25519_sk_verify()
H A Dkrl.c834 if ((r = sshbuf_get_cstring(subsect, &name, NULL)) != 0 || in cert_extension_subsection()
946 if ((r = sshbuf_get_cstring(subsect, in parse_revoked_certs()
1014 if ((r = sshbuf_get_cstring(sect, &name, NULL)) != 0 || in extension_section()
1084 (r = sshbuf_get_cstring(copy, &krl->comment, NULL)) != 0) { in ssh_krl_from_blob()
H A Dsftp-common.c143 if ((r = sshbuf_get_cstring(b, &type, NULL)) != 0 || in decode_attrib()
H A Dssh-ed25519.c227 if ((r = sshbuf_get_cstring(b, &ktype, NULL)) != 0 || in ssh_ed25519_verify()
H A Dsshsig.c283 (r = sshbuf_get_cstring(buf, &hashalg, NULL)) != 0 || in sshsig_peek_hashalg()
336 (r = sshbuf_get_cstring(signature, &got_namespace, NULL)) != 0 || in sshsig_wrap_verify()
338 (r = sshbuf_get_cstring(signature, &sig_hashalg, NULL)) != 0 || in sshsig_wrap_verify()
H A Dsshkey-xmss.c317 if ((r = sshbuf_get_cstring(b, &state->enc_ciphername, NULL)) != 0 || in sshkey_xmss_deserialize_enc_key()
788 if ((r = sshbuf_get_cstring(b, &magic, NULL)) != 0 || in sshkey_xmss_deserialize_state()
861 (r = sshbuf_get_cstring(b, &k->xmss_filename, NULL)) != 0) in sshkey_xmss_deserialize_state_opt()
H A Dsshbuf.h190 int sshbuf_get_cstring(struct sshbuf *buf, char **valp, size_t *lenp);
H A Dpacket.c2374 if ((r = sshbuf_get_cstring(b, &enc->name, NULL)) != 0 || in newkeys_from_blob()
2385 if ((r = sshbuf_get_cstring(b, &mac->name, NULL)) != 0) in newkeys_from_blob()
2399 (r = sshbuf_get_cstring(b, &comp->name, NULL)) != 0) in newkeys_from_blob()
2426 (r = sshbuf_get_cstring(m, &kex->hostkey_alg, NULL)) != 0 || in kex_from_blob()
2628 return sshbuf_get_cstring(ssh->state->incoming_packet, valp, lenp); in sshpkt_get_cstring()
/freebsd-14.2/crypto/openssh/regress/unittests/sshbuf/
H A Dtest_sshbuf_fixed.c60 ASSERT_INT_EQ(sshbuf_get_cstring(p1, &s, &l), 0); in sshbuf_fixed()
91 ASSERT_INT_EQ(sshbuf_get_cstring(p2, &s, &l), 0); in sshbuf_fixed()
H A Dtest_sshbuf_getput_basic.c348 r = sshbuf_get_cstring(p1, &s2, &s); in sshbuf_getput_basic_tests()
360 r = sshbuf_get_cstring(p1, &s2, NULL); in sshbuf_getput_basic_tests()
371 ASSERT_INT_EQ(sshbuf_get_cstring(p1, &s2, &s), 0); in sshbuf_getput_basic_tests()

12