Home
last modified time | relevance | path

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

12

/openbsd-src/usr.bin/ssh/
H A Dssh-sk-helper.c100 (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 Dssh-keysign.c99 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 Dmonitor_wrap.c296 (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()
365 (r = sshbuf_get_cstring(m, &pw->pw_passwd, 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( in mm_pty_allocate()
[all...]
H A Dsftp-server.c739 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()
1252 if ((r = sshbuf_get_cstring(iqueue, &oldpath, NULL)) != 0 || in process_rename()
1253 (r = sshbuf_get_cstring(iqueue, &newpath, NULL)) != 0) in process_rename()
[all …]
H A Dmonitor.c400 (r = sshbuf_get_cstring(logmsg, &msg, NULL)) != 0) in monitor_read_log()
647 (r = sshbuf_get_cstring(m, &alg, NULL)) != 0 ||
775 if ((r = sshbuf_get_cstring(m, &authctxt->user, NULL)) != 0) in mm_answer_authserv()
868 if ((r = sshbuf_get_cstring(m, &authctxt->service, NULL)) != 0 || in mm_answer_bsdauthrespond()
869 (r = sshbuf_get_cstring(m, &authctxt->style, NULL)) != 0) in mm_answer_bsdauthrespond()
891 if ((r = sshbuf_get_cstring(m, &passwd, &plen)) != 0) in key_base_type_match()
960 if ((r = sshbuf_get_cstring(m, &response, NULL)) != 0) in mm_answer_keyallowed()
1022 (r = sshbuf_get_cstring(m, &cuser, NULL)) != 0 || in monitor_valid_userblob()
1023 (r = sshbuf_get_cstring(m, &chost, NULL)) != 0 || in monitor_valid_userblob()
1137 if ((r = sshbuf_get_cstring( in monitor_valid_hostbasedblob()
[all...]
H A Dmux.c282 if ((r = sshbuf_get_cstring(m, &name, NULL)) != 0 || in mux_master_process_hello()
341 (r = sshbuf_get_cstring(m, &cctx->term, NULL)) != 0 || in mux_master_process_new_session()
342 (r = sshbuf_get_cstring(m, &cmd, NULL)) != 0) { in mux_master_process_new_session()
356 if ((r = sshbuf_get_cstring(m, &cp, NULL)) != 0) in mux_master_process_new_session()
683 (r = sshbuf_get_cstring(m, &listen_addr, NULL)) != 0 || in mux_master_process_open_fwd()
685 (r = sshbuf_get_cstring(m, &connect_addr, NULL)) != 0 || in mux_master_process_open_fwd()
848 (r = sshbuf_get_cstring(m, &listen_addr, NULL)) != 0 || in mux_master_process_close_fwd()
850 (r = sshbuf_get_cstring(m, &connect_addr, NULL)) != 0 || in mux_master_process_close_fwd()
956 (r = sshbuf_get_cstring(m, &chost, NULL)) != 0 || in mux_master_process_stdio_fwd()
1621 if ((r = sshbuf_get_cstring( in mux_client_hello_exchange()
[all...]
H A Dssh-pkcs11-helper.c124 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 Dssh-agent.c706 (r = sshbuf_get_cstring(b, &user, NULL)) != 0 || /* server user */ in parse_userauth_request()
707 (r = sshbuf_get_cstring(b, &service, NULL)) != 0 || /* service */ in parse_userauth_request()
708 (r = sshbuf_get_cstring(b, &method, NULL)) != 0 || /* method */ in parse_userauth_request()
710 (r = sshbuf_get_cstring(b, &pkalg, NULL)) != 0 || /* alg */ in parse_userauth_request()
774 (r = sshbuf_get_cstring(b, NULL, NULL)) != 0 || /* namespace */ in parse_sshsig_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( in parse_key_constraint_extension()
[all...]
H A Dssh-xmss.c135 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 Dauth-options.c88 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 Dssh-ecdsa-sk.c254 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 Dssh-ecdsa.c231 if ((r = sshbuf_get_cstring(b, &curve, NULL)) != 0) in ssh_ecdsa_sign()
400 if (sshbuf_get_cstring(b, &ktype, NULL) != 0 ||
H A Dsftp-client.c487 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 Dsshkey.c1842 (ret = sshbuf_get_cstring(b, &key->cert->key_id, &kidlen)) != 0 || in cert_parse()
1878 if ((ret = sshbuf_get_cstring(principals, &principal, in sshkey_from_blob_internal()
1956 if (sshbuf_get_cstring(b, &key->sk_application, NULL) != 0) in sshkey_froms()
1980 if (sshbuf_get_cstring(b, &ktype, NULL) != 0) { in sshkey_get_sigtype()
2071 if ((r = sshbuf_get_cstring(b, &sigtype, NULL)) != 0) in sshkey_sign()
2566 if ((r = sshbuf_get_cstring(buf, &k->sk_application, NULL)) != 0 || in sshkey_ec_validate_public()
2587 if ((r = sshbuf_get_cstring(buf, &tname, NULL)) != 0) in sshkey_ec_validate_public()
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(decrypte
[all...]
H A Dsftp-common.c138 if ((r = sshbuf_get_cstring(b, &type, NULL)) != 0 || in decode_attrib()
H A Dssh-ed25519-sk.c155 if (sshbuf_get_cstring(b, &ktype, NULL) != 0 || in ssh_ed25519_sk_verify()
H A Dkrl.c831 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 Dssh-ed25519.c224 if ((r = sshbuf_get_cstring(b, &ktype, NULL)) != 0 || in ssh_ed25519_verify()
H A Dsshsig.c286 (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 Dsshkey-xmss.c311 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 Dsshbuf.h197 int sshbuf_get_cstring(struct sshbuf *buf, char **valp, size_t *lenp);
H A Dpacket.c2428 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_getb_froms()
H A Dsshd-session.c663 if ((r = sshbuf_get_cstring(inc, &item->selector, NULL)) != 0 || in parse_hostkeys()
664 (r = sshbuf_get_cstring(inc, &item->filename, NULL)) != 0 || in parse_hostkeys()
/openbsd-src/regress/usr.bin/ssh/unittests/sshbuf/
H A Dtest_sshbuf_fixed.c56 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 Dtest_sshbuf_getput_basic.c344 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()

12