Home
last modified time | relevance | path

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

12

/freebsd/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.c310 (r = sshbuf_get_cstring(m, &newopts->x, NULL)) != 0) \ in mm_decode_activate_server_options()
317 if ((r = sshbuf_get_cstring(m, \ in mm_decode_activate_server_options()
383 if ((r = sshbuf_get_cstring(m, &pw->pw_name, NULL)) != 0 || in mm_getpwnamallow()
384 (r = sshbuf_get_cstring(m, &pw->pw_passwd, NULL)) != 0 || in mm_getpwnamallow()
386 (r = sshbuf_get_cstring(m, &pw->pw_gecos, NULL)) != 0 || in mm_getpwnamallow()
389 (r = sshbuf_get_cstring(m, &pw->pw_class, NULL)) != 0 || in mm_getpwnamallow()
391 (r = sshbuf_get_cstring(m, &pw->pw_dir, NULL)) != 0 || in mm_getpwnamallow()
392 (r = sshbuf_get_cstring(m, &pw->pw_shell, NULL)) != 0) in mm_getpwnamallow()
422 if ((r = sshbuf_get_cstring(m, &banner, NULL)) != 0) in mm_auth2_read_banner()
655 if ((r = sshbuf_get_cstring(m, &p, NULL)) != 0 || in mm_pty_allocate()
[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()
1274 if ((r = sshbuf_get_cstring(iqueue, &oldpath, NULL)) != 0 || in process_rename()
1275 (r = sshbuf_get_cstring(iqueue, &newpath, NULL)) != 0) in process_rename()
[all …]
H A Dmonitor.c459 (r = sshbuf_get_cstring(logmsg, &msg, NULL)) != 0) in monitor_read_log()
629 (r = sshbuf_get_cstring(m, &alg, &alglen)) != 0 || in mm_answer_sign()
754 if ((r = sshbuf_get_cstring(m, &authctxt->user, NULL)) != 0) in mm_answer_pwnamallow()
860 if ((r = sshbuf_get_cstring(m, &authctxt->service, NULL)) != 0 || in mm_answer_authserv()
861 (r = sshbuf_get_cstring(m, &authctxt->style, NULL)) != 0) in mm_answer_authserv()
912 if ((r = sshbuf_get_cstring(m, &passwd, &plen)) != 0) in mm_answer_authpassword()
987 if ((r = sshbuf_get_cstring(m, &response, NULL)) != 0) in mm_answer_bsdauthrespond()
1134 if ((r = sshbuf_get_cstring(m, &(resp[i]), NULL)) != 0) in mm_answer_pam_respond()
1188 (r = sshbuf_get_cstring(m, &cuser, NULL)) != 0 || in mm_answer_keyallowed()
1189 (r = sshbuf_get_cstring(m, &chost, NULL)) != 0 || in mm_answer_keyallowed()
[all …]
H A Dmux.c296 if ((r = sshbuf_get_cstring(m, &name, NULL)) != 0 || in mux_master_process_hello()
355 (r = sshbuf_get_cstring(m, &cctx->term, NULL)) != 0 || in mux_master_process_new_session()
356 (r = sshbuf_get_cstring(m, &cmd, NULL)) != 0) { in mux_master_process_new_session()
370 if ((r = sshbuf_get_cstring(m, &cp, NULL)) != 0) in mux_master_process_new_session()
697 (r = sshbuf_get_cstring(m, &listen_addr, NULL)) != 0 || in mux_master_process_open_fwd()
699 (r = sshbuf_get_cstring(m, &connect_addr, NULL)) != 0 || in mux_master_process_open_fwd()
862 (r = sshbuf_get_cstring(m, &listen_addr, NULL)) != 0 || in mux_master_process_close_fwd()
864 (r = sshbuf_get_cstring(m, &connect_addr, NULL)) != 0 || in mux_master_process_close_fwd()
970 (r = sshbuf_get_cstring(m, &chost, NULL)) != 0 || in mux_master_process_stdio_fwd()
1641 if ((r = sshbuf_get_cstring(m, &name, NULL)) != 0 || in mux_client_hello_exchange()
[all …]
H A Dssh-pkcs11-helper.c134 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0 || in process_add()
135 (r = sshbuf_get_cstring(iqueue, &pin, NULL)) != 0) in process_add()
174 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0 || in process_del()
175 (r = sshbuf_get_cstring(iqueue, &pin, NULL)) != 0) in process_del()
H A Dssh-agent.c732 (r = sshbuf_get_cstring(b, &user, NULL)) != 0 || /* server user */ in parse_userauth_request()
733 (r = sshbuf_get_cstring(b, &service, NULL)) != 0 || /* service */ in parse_userauth_request()
734 (r = sshbuf_get_cstring(b, &method, NULL)) != 0 || /* method */ in parse_userauth_request()
736 (r = sshbuf_get_cstring(b, &pkalg, NULL)) != 0 || /* alg */ in parse_userauth_request()
800 (r = sshbuf_get_cstring(b, NULL, NULL)) != 0 || /* namespace */ in parse_sshsig_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()
[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-sk.c272 if (sshbuf_get_cstring(b, &ktype, NULL) != 0) { in ssh_ecdsa_sk_verify()
289 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 Dssh-ecdsa.c241 if ((r = sshbuf_get_cstring(b, &curve, NULL)) != 0) in ssh_ecdsa_deserialize_public()
410 if (sshbuf_get_cstring(b, &ktype, NULL) != 0 || in ssh_ecdsa_verify()
H A Dauth-pam.c358 if ((r = sshbuf_get_cstring(b, &(sshpam_env[i]), NULL)) != 0) in import_environments()
372 if ((r = sshbuf_get_cstring(b, &env, NULL)) != 0) in import_environments()
438 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.c1885 (ret = sshbuf_get_cstring(b, &key->cert->key_id, &kidlen)) != 0 || in cert_parse()
1921 if ((ret = sshbuf_get_cstring(principals, &principal, in cert_parse()
1999 if (sshbuf_get_cstring(b, &key->sk_application, NULL) != 0) in sshkey_deserialize_sk()
2023 if (sshbuf_get_cstring(b, &ktype, NULL) != 0) { in sshkey_from_blob_internal()
2114 if ((r = sshbuf_get_cstring(b, &sigtype, NULL)) != 0) in sshkey_get_sigtype()
2609 if ((r = sshbuf_get_cstring(buf, &k->sk_application, NULL)) != 0 || in sshkey_private_deserialize_sk()
2630 if ((r = sshbuf_get_cstring(buf, &tname, NULL)) != 0) in sshkey_private_deserialize()
3083 (r = sshbuf_get_cstring(decoded, &ciphername, NULL)) != 0 || in private2_decrypt()
3084 (r = sshbuf_get_cstring(decoded, &kdfname, NULL)) != 0 || in private2_decrypt()
3231 (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 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 Dssh-ed25519.c227 if ((r = sshbuf_get_cstring(b, &ktype, NULL)) != 0 || in ssh_ed25519_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.h191 int sshbuf_get_cstring(struct sshbuf *buf, char **valp, size_t *lenp);
H A Dpacket.c2465 if ((r = sshbuf_get_cstring(b, &enc->name, NULL)) != 0 || in newkeys_from_blob()
2476 if ((r = sshbuf_get_cstring(b, &mac->name, NULL)) != 0) in newkeys_from_blob()
2490 (r = sshbuf_get_cstring(b, &comp->name, NULL)) != 0) in newkeys_from_blob()
2517 (r = sshbuf_get_cstring(m, &kex->hostkey_alg, NULL)) != 0 || in kex_from_blob()
2718 return sshbuf_get_cstring(ssh->state->incoming_packet, valp, lenp); in sshpkt_get_cstring()
/freebsd/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