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.c120 (r = sshbuf_get_cstring(req, &provider, NULL)) != 0 || in process_sign()
122 (r = sshbuf_get_cstring(req, NULL, NULL)) != 0 || /* alg */ in process_sign()
124 (r = sshbuf_get_cstring(req, &pin, NULL)) != 0) in process_sign()
180 (r = sshbuf_get_cstring(req, &provider, NULL)) != 0 || in process_enroll()
181 (r = sshbuf_get_cstring(req, &device, NULL)) != 0 || in process_enroll()
182 (r = sshbuf_get_cstring(req, &application, NULL)) != 0 || in process_enroll()
183 (r = sshbuf_get_cstring(req, &userid, NULL)) != 0 || in process_enroll()
185 (r = sshbuf_get_cstring(req, &pin, NULL)) != 0 || in process_enroll()
242 if ((r = sshbuf_get_cstring(req, &provider, NULL)) != 0 || in process_load_resident()
243 (r = sshbuf_get_cstring(req, &device, NULL)) != 0 || in process_load_resident()
[all …]
H A Dssh-keysign.c102 if ((r = sshbuf_get_cstring(b, &p, NULL)) != 0) in valid_request()
109 if ((r = sshbuf_get_cstring(b, &p, NULL)) != 0) in valid_request()
116 if ((r = sshbuf_get_cstring(b, &pkalg, NULL)) != 0 || in valid_request()
130 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 Dmonitor_wrap.c369 if ((r = sshbuf_get_cstring(m, &pw->pw_name, NULL)) != 0 || in mm_getpwnamallow()
370 (r = sshbuf_get_cstring(m, &pw->pw_passwd, NULL)) != 0 || in mm_getpwnamallow()
372 (r = sshbuf_get_cstring(m, &pw->pw_gecos, NULL)) != 0 || in mm_getpwnamallow()
375 (r = sshbuf_get_cstring(m, &pw->pw_class, NULL)) != 0 || in mm_getpwnamallow()
377 (r = sshbuf_get_cstring(m, &pw->pw_dir, NULL)) != 0 || in mm_getpwnamallow()
378 (r = sshbuf_get_cstring(m, &pw->pw_shell, NULL)) != 0) in mm_getpwnamallow()
408 if ((r = sshbuf_get_cstring(m, &banner, NULL)) != 0) in mm_auth2_read_banner()
641 if ((r = sshbuf_get_cstring(m, &p, NULL)) != 0 || in mm_pty_allocate()
642 (r = sshbuf_get_cstring(m, &msg, NULL)) != 0) in mm_pty_allocate()
721 (r = sshbuf_get_cstring(m, &msg, &msglen)) != 0 || in mm_do_pam_account()
[all …]
H A Dmux.c286 if ((r = sshbuf_get_cstring(m, &name, NULL)) != 0 || in mux_master_process_hello()
350 (r = sshbuf_get_cstring(m, &cctx->term, NULL)) != 0 || in mux_master_process_new_session()
351 (r = sshbuf_get_cstring(m, &cmd, NULL)) != 0) { in mux_master_process_new_session()
365 if ((r = sshbuf_get_cstring(m, &cp, NULL)) != 0) in mux_master_process_new_session()
514 if ((r = sshbuf_get_cstring(m, &name, NULL)) != 0) in mux_master_process_ext_info()
732 (r = sshbuf_get_cstring(m, &listen_addr, NULL)) != 0 || in mux_master_process_open_fwd()
734 (r = sshbuf_get_cstring(m, &connect_addr, NULL)) != 0 || in mux_master_process_open_fwd()
897 (r = sshbuf_get_cstring(m, &listen_addr, NULL)) != 0 || in mux_master_process_close_fwd()
899 (r = sshbuf_get_cstring(m, &connect_addr, NULL)) != 0 || in mux_master_process_close_fwd()
1005 (r = sshbuf_get_cstring(m, &chost, NULL)) != 0 || in mux_master_process_stdio_fwd()
[all …]
H A Dsftp-server.c741 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0 || in process_open()
898 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0) in process_do_stat()
985 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0 || in process_setstat()
1097 if ((r = sshbuf_get_cstring(iqueue, &path, NULL)) != 0) in process_opendir()
1184 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0) in process_remove()
1202 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0 || in process_mkdir()
1222 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0) in process_rmdir()
1240 if ((r = sshbuf_get_cstring(iqueue, &path, NULL)) != 0) in process_realpath()
1267 if ((r = sshbuf_get_cstring(iqueue, &oldpath, NULL)) != 0 || in process_rename()
1268 (r = sshbuf_get_cstring(iqueue, &newpath, NULL)) != 0) in process_rename()
[all …]
H A Dmonitor.c489 (r = sshbuf_get_cstring(logmsg, &msg, NULL)) != 0) in monitor_read_log()
738 (r = sshbuf_get_cstring(m, &alg, NULL)) != 0 || in mm_answer_sign()
858 if ((r = sshbuf_get_cstring(m, &authctxt->user, NULL)) != 0) in mm_answer_pwnamallow()
965 if ((r = sshbuf_get_cstring(m, &authctxt->service, NULL)) != 0 || in mm_answer_authserv()
966 (r = sshbuf_get_cstring(m, &authctxt->style, NULL)) != 0) in mm_answer_authserv()
1017 if ((r = sshbuf_get_cstring(m, &passwd, &plen)) != 0) in mm_answer_authpassword()
1091 if ((r = sshbuf_get_cstring(m, &response, NULL)) != 0) in mm_answer_bsdauthrespond()
1239 if ((r = sshbuf_get_cstring(m, &(resp[i]), NULL)) != 0) in mm_answer_pam_respond()
1293 (r = sshbuf_get_cstring(m, &cuser, NULL)) != 0 || in mm_answer_keyallowed()
1294 (r = sshbuf_get_cstring(m, &chost, NULL)) != 0 || in mm_answer_keyallowed()
[all …]
H A Dssh-pkcs11-helper.c73 if ((r = sshbuf_get_cstring(iqueue, &providername, NULL)) != 0 || in process_add()
74 (r = sshbuf_get_cstring(iqueue, &pin, NULL)) != 0) in process_add()
115 (r = sshbuf_get_cstring(iqueue, &alg, NULL)) != 0 || in process_sign()
H A Dssh-agent.c735 (r = sshbuf_get_cstring(b, &user, NULL)) != 0 || /* server user */ in parse_userauth_request()
736 (r = sshbuf_get_cstring(b, &service, NULL)) != 0 || /* service */ in parse_userauth_request()
737 (r = sshbuf_get_cstring(b, &method, NULL)) != 0 || /* method */ in parse_userauth_request()
739 (r = sshbuf_get_cstring(b, &pkalg, NULL)) != 0 || /* alg */ in parse_userauth_request()
803 (r = sshbuf_get_cstring(b, NULL, NULL)) != 0 || /* namespace */ in parse_sshsig_request()
805 (r = sshbuf_get_cstring(b, NULL, NULL)) != 0 || /* hashalg */ in parse_sshsig_request()
1107 if ((r = sshbuf_get_cstring(b, &dch->user, &userlen)) != 0 || in parse_dest_constraint_hop()
1108 (r = sshbuf_get_cstring(b, &dch->hostname, NULL)) != 0 || in parse_dest_constraint_hop()
1219 if ((r = sshbuf_get_cstring(m, &ext_name, NULL)) != 0) { in parse_key_constraint_extension()
1235 if ((r = sshbuf_get_cstring(m, sk_providerp, NULL)) != 0) { in parse_key_constraint_extension()
[all …]
H A Dauth-options.c90 if ((r = sshbuf_get_cstring(c, &name, NULL)) != 0 || in cert_option_list()
126 if ((r = sshbuf_get_cstring(data, &command, in cert_option_list()
141 if ((r = sshbuf_get_cstring(data, &allowed, in cert_option_list()
752 if ((r = sshbuf_get_cstring(b, &a[i], NULL)) != 0) in deserialise_array()
790 (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()
291 if (sshbuf_get_cstring(b, &webauthn_origin, NULL) != 0 || in ssh_ecdsa_sk_verify()
H A Dauthfd.c243 (r = sshbuf_get_cstring(ids, &comment, NULL)) != 0) in deserialise_identity2()
803 (r = sshbuf_get_cstring(msg, &cp, NULL)) != 0 || in ssh_agent_query_extensions()
811 if ((r = sshbuf_get_cstring(msg, ret + i, NULL)) != 0) { in ssh_agent_query_extensions()
H A Dauth-pam.c339 if ((r = sshbuf_get_cstring(b, &(sshpam_env[i]), NULL)) != 0) in import_environments()
353 if ((r = sshbuf_get_cstring(b, &env, NULL)) != 0) in import_environments()
419 if ((r = sshbuf_get_cstring(buffer, in sshpam_thread_conv()
876 (r = sshbuf_get_cstring(buffer, &msg, &mlen)) != 0) in sshpam_query()
H A Dsftp-client.c495 if ((r = sshbuf_get_cstring(msg, &name, NULL)) != 0 || in sftp_init()
774 if ((r = sshbuf_get_cstring(msg, &filename, in sftp_lsreaddir()
776 (r = sshbuf_get_cstring(msg, &longname, in sftp_lsreaddir()
1035 (r = sshbuf_get_cstring(msg, &errmsg, NULL)) != 0) in sftp_realpath_expand()
1051 if ((r = sshbuf_get_cstring(msg, &filename, NULL)) != 0 || in sftp_realpath_expand()
1052 (r = sshbuf_get_cstring(msg, &longname, NULL)) != 0 || in sftp_realpath_expand()
1397 if ((r = sshbuf_get_cstring(msg, &filename, NULL)) != 0 || in sftp_readlink()
1398 (r = sshbuf_get_cstring(msg, &longname, NULL)) != 0 || in sftp_readlink()
2899 (r = sshbuf_get_cstring(msg, &errmsg, NULL)) != 0) in sftp_get_users_groups_by_id()
2922 if ((r = sshbuf_get_cstring(uidbuf, &name, NULL)) != 0) in sftp_get_users_groups_by_id()
[all …]
H A Dssh-ecdsa.c239 if ((r = sshbuf_get_cstring(b, &curve, NULL)) != 0) in ssh_ecdsa_deserialize_public()
431 if (sshbuf_get_cstring(b, &ktype, NULL) != 0 || in ssh_ecdsa_verify()
H A Dsshkey.c1883 (ret = sshbuf_get_cstring(b, &key->cert->key_id, &kidlen)) != 0 || in cert_parse()
1919 if ((ret = sshbuf_get_cstring(principals, &principal, in cert_parse()
1997 if (sshbuf_get_cstring(b, &key->sk_application, NULL) != 0) in sshkey_deserialize_sk()
2021 if (sshbuf_get_cstring(b, &ktype, NULL) != 0) { in sshkey_from_blob_internal()
2112 if ((r = sshbuf_get_cstring(b, &sigtype, NULL)) != 0) in sshkey_get_sigtype()
2608 if ((r = sshbuf_get_cstring(buf, &k->sk_application, NULL)) != 0 || in sshkey_private_deserialize_sk()
2629 if ((r = sshbuf_get_cstring(buf, &tname, NULL)) != 0) in sshkey_private_deserialize()
3058 (r = sshbuf_get_cstring(decoded, &ciphername, NULL)) != 0 || in private2_decrypt()
3059 (r = sshbuf_get_cstring(decoded, &kdfname, NULL)) != 0 || in private2_decrypt()
3206 (r = sshbuf_get_cstring(decrypted, &comment, NULL)) != 0) in sshkey_parse_private2()
H A Dssh-ed25519-sk.c155 if (sshbuf_get_cstring(b, &ktype, NULL) != 0 || in ssh_ed25519_sk_verify()
H A Dsftp-common.c141 if ((r = sshbuf_get_cstring(b, &type, NULL)) != 0 || in decode_attrib()
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 Dsshsig.c288 (r = sshbuf_get_cstring(buf, &hashalg, NULL)) != 0 || in sshsig_peek_hashalg()
341 (r = sshbuf_get_cstring(signature, &got_namespace, NULL)) != 0 || in sshsig_wrap_verify()
343 (r = sshbuf_get_cstring(signature, &sig_hashalg, NULL)) != 0 || in sshsig_wrap_verify()
H A Dssh-ed25519.c249 if ((r = sshbuf_get_cstring(b, &ktype, NULL)) != 0 || in ssh_ed25519_verify()
H A Dsshbuf.h212 int sshbuf_get_cstring(struct sshbuf *buf, char **valp, size_t *lenp);
H A Dsshd-session.c676 if ((r = sshbuf_get_cstring(inc, &item->selector, NULL)) != 0 || in recv_rexec_state()
677 (r = sshbuf_get_cstring(inc, &item->filename, NULL)) != 0 || in recv_rexec_state()
/freebsd/crypto/openssh/regress/unittests/sshbuf/
H A Dtest_sshbuf_fixed.c58 ASSERT_INT_EQ(sshbuf_get_cstring(p1, &s, &l), 0); in sshbuf_fixed()
89 ASSERT_INT_EQ(sshbuf_get_cstring(p2, &s, &l), 0); in sshbuf_fixed()
H A Dtest_sshbuf_getput_basic.c346 r = sshbuf_get_cstring(p1, &s2, &s); in sshbuf_getput_basic_tests()
358 r = sshbuf_get_cstring(p1, &s2, NULL); in sshbuf_getput_basic_tests()
369 ASSERT_INT_EQ(sshbuf_get_cstring(p1, &s2, &s), 0); in sshbuf_getput_basic_tests()
/freebsd/crypto/openssh/regress/misc/ssh-verify-attestation/
H A Dssh-verify-attestation.c91 if ((r = sshbuf_get_cstring(b, &magic, NULL)) != 0) { in prepare_fido_cred()

12