Home
last modified time | relevance | path

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

12

/freebsd-12.1/crypto/openssh/
H A Dssh-keysign.c100 if ((r = sshbuf_get_cstring(b, &p, NULL)) != 0) in valid_request()
107 if ((r = sshbuf_get_cstring(b, &p, NULL)) != 0) in valid_request()
114 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()
142 if ((r = sshbuf_get_cstring(b, &luser, NULL)) != 0) in valid_request()
H A Dsshbuf-getput-basic.c182 sshbuf_get_cstring(struct sshbuf *buf, char **valp, size_t *lenp) in sshbuf_get_cstring() function
521 if (sshbuf_get_cstring(buf, &pw->pw_name, NULL) != 0 || in sshbuf_get_passwd()
522 sshbuf_get_cstring(buf, &pw->pw_passwd, NULL) != 0 || in sshbuf_get_passwd()
529 sshbuf_get_cstring(buf, &pw->pw_gecos, NULL) != 0 || in sshbuf_get_passwd()
532 sshbuf_get_cstring(buf, &pw->pw_class, NULL) != 0 || in sshbuf_get_passwd()
534 sshbuf_get_cstring(buf, &pw->pw_dir, NULL) != 0 || in sshbuf_get_passwd()
535 sshbuf_get_cstring(buf, &pw->pw_shell, NULL) != 0 || in sshbuf_get_passwd()
H A Dmonitor_wrap.c281 (r = sshbuf_get_cstring(m, &lc->lc_cap, NULL)) != 0 || in mm_login_getpwclass()
282 (r = sshbuf_get_cstring(m, &lc->lc_style, NULL)) != 0) in mm_login_getpwclass()
352 if ((r = sshbuf_get_cstring(m, \ in mm_getpwnamallow()
362 if ((r = sshbuf_get_cstring(m, \ in mm_getpwnamallow()
399 if ((r = sshbuf_get_cstring(m, &banner, NULL)) != 0) in mm_auth2_read_banner()
624 if ((r = sshbuf_get_cstring(m, &p, NULL)) != 0 || in mm_pty_allocate()
625 (r = sshbuf_get_cstring(m, &msg, NULL)) != 0) in mm_pty_allocate()
704 (r = sshbuf_get_cstring(m, &msg, &msglen)) != 0 || in mm_do_pam_account()
755 (r = sshbuf_get_cstring(m, name, NULL)) != 0 || in mm_sshpam_query()
756 (r = sshbuf_get_cstring(m, info, NULL)) != 0 || in mm_sshpam_query()
[all …]
H A Dsftp-server.c683 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0 || in process_open()
824 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0) in process_do_stat()
899 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0 || in process_setstat()
1011 if ((r = sshbuf_get_cstring(iqueue, &path, NULL)) != 0) in process_opendir()
1096 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0) in process_remove()
1114 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0 || in process_mkdir()
1134 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0) in process_rmdir()
1152 if ((r = sshbuf_get_cstring(iqueue, &path, NULL)) != 0) in process_realpath()
1180 (r = sshbuf_get_cstring(iqueue, &newpath, NULL)) != 0) in process_rename()
1239 if ((r = sshbuf_get_cstring(iqueue, &path, NULL)) != 0) in process_readlink()
[all …]
H A Dmonitor.c457 (r = sshbuf_get_cstring(logmsg, &msg, NULL)) != 0) in monitor_read_log()
897 if ((r = sshbuf_get_cstring(m, &passwd, &plen)) != 0) in mm_answer_authpassword()
1293 if ((r = sshbuf_get_cstring(b, &cp, NULL)) != 0) in monitor_valid_userblob()
1306 (r = sshbuf_get_cstring(b, &cp, NULL)) != 0) in monitor_valid_userblob()
1350 if ((r = sshbuf_get_cstring(b, &cp, NULL)) != 0) in monitor_valid_hostbasedblob()
1363 (r = sshbuf_get_cstring(b, &cp, NULL)) != 0) in monitor_valid_hostbasedblob()
1373 if ((r = sshbuf_get_cstring(b, &cp, NULL)) != 0) in monitor_valid_hostbasedblob()
1382 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()
1584 if ((r = sshbuf_get_cstring(m, &tty, NULL)) != 0) in mm_answer_pty_cleanup()
[all …]
H A Dmux.c384 if ((r = sshbuf_get_cstring(m, &cp, NULL)) != 0) in process_mux_new_session()
1699 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_request_alive()
1762 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_request_terminate()
1766 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_request_terminate()
1853 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_forward()
1859 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_forward()
1994 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_request_session()
2000 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_request_session()
2124 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_proxy()
2207 if ((r = sshbuf_get_cstring(m, &e, NULL)) != 0) in mux_client_request_stdio_fwd()
[all …]
H A Dssh-pkcs11-helper.c121 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0 || in process_add()
122 (r = sshbuf_get_cstring(iqueue, &pin, NULL)) != 0) in process_add()
162 if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0 || in process_del()
163 (r = sshbuf_get_cstring(iqueue, &pin, NULL)) != 0) in process_del()
H A Dauth-options.c157 if ((r = sshbuf_get_cstring(c, &name, NULL)) != 0 || in cert_option_list()
188 if ((r = sshbuf_get_cstring(data, &command, in cert_option_list()
204 if ((r = sshbuf_get_cstring(data, &allowed, in cert_option_list()
785 if ((r = sshbuf_get_cstring(b, &a[i], NULL)) != 0) in deserialise_array()
821 (r = sshbuf_get_cstring(m, flag ? NULL : sp, NULL)) != 0) in deserialise_nullable_string()
H A Dssh-agent.c435 (r = sshbuf_get_cstring(e->request, &comment, NULL)) != 0) { in process_add_identity()
515 if ((r = sshbuf_get_cstring(e->request, &passwd, &pwlen)) != 0) in process_lock_agent()
580 if ((r = sshbuf_get_cstring(e->request, &provider, NULL)) != 0 || in process_add_smartcard_key()
581 (r = sshbuf_get_cstring(e->request, &pin, NULL)) != 0) { in process_add_smartcard_key()
654 if ((r = sshbuf_get_cstring(e->request, &provider, NULL)) != 0 || in process_remove_smartcard_key()
655 (r = sshbuf_get_cstring(e->request, &pin, NULL)) != 0) { in process_remove_smartcard_key()
H A Dsftp-client.c443 if ((r = sshbuf_get_cstring(msg, &name, NULL)) != 0 || in do_init()
616 if ((r = sshbuf_get_cstring(msg, &filename, in do_lsreaddir()
618 (r = sshbuf_get_cstring(msg, &longname, in do_lsreaddir()
867 if ((r = sshbuf_get_cstring(msg, &filename, NULL)) != 0 || in do_realpath()
868 (r = sshbuf_get_cstring(msg, &longname, NULL)) != 0 || in do_realpath()
1067 if ((r = sshbuf_get_cstring(msg, &filename, NULL)) != 0 || in do_readlink()
1068 (r = sshbuf_get_cstring(msg, &longname, NULL)) != 0 || in do_readlink()
H A Dauth-pam.c349 if ((r = sshbuf_get_cstring(b, &(sshpam_env[i]), NULL)) != 0) in import_environments()
359 if ((r = sshbuf_get_cstring(b, &env, NULL)) != 0) in import_environments()
423 if ((r = sshbuf_get_cstring(buffer, in sshpam_thread_conv()
811 (r = sshbuf_get_cstring(buffer, &msg, &mlen)) != 0) in sshpam_query()
H A Dsshkey.c1924 if ((ret = sshbuf_get_cstring(principals, &principal, in cert_parse()
2035 if (sshbuf_get_cstring(b, &ktype, NULL) != 0) { in sshkey_from_blob_internal()
2134 if (sshbuf_get_cstring(b, &curve, NULL) != 0) { in sshkey_from_blob_internal()
2202 if ((ret = sshbuf_get_cstring(b, &xmss_name, NULL)) != 0) in sshkey_from_blob_internal()
2306 if ((r = sshbuf_get_cstring(b, &sigtype, NULL)) != 0) in get_sigtype()
2891 if ((r = sshbuf_get_cstring(buf, &tname, NULL)) != 0) in sshkey_private_deserialize()
2950 if ((r = sshbuf_get_cstring(buf, &curve, NULL)) != 0) in sshkey_private_deserialize()
3092 if ((r = sshbuf_get_cstring(buf, &xmss_name, NULL)) != 0 || in sshkey_private_deserialize()
3111 (r = sshbuf_get_cstring(buf, &xmss_name, NULL)) != 0 || in sshkey_private_deserialize()
3577 (r = sshbuf_get_cstring(decoded, &kdfname, NULL)) != 0 || in sshkey_parse_private2()
[all …]
H A Dssh-ed25519.c116 if ((r = sshbuf_get_cstring(b, &ktype, NULL)) != 0 || in ssh_ed25519_verify()
H A Dssh-ecdsa.c139 if (sshbuf_get_cstring(b, &ktype, NULL) != 0 || in ssh_ecdsa_verify()
H A Dssh-dss.c142 if (sshbuf_get_cstring(b, &ktype, NULL) != 0 || in ssh_dss_verify()
H A Dssh-xmss.c140 if ((r = sshbuf_get_cstring(b, &ktype, NULL)) != 0 || in ssh_xmss_verify()
H A Dpacket.c2284 if ((r = sshbuf_get_cstring(b, &enc->name, NULL)) != 0 || in newkeys_from_blob()
2295 if ((r = sshbuf_get_cstring(b, &mac->name, NULL)) != 0) in newkeys_from_blob()
2309 (r = sshbuf_get_cstring(b, &comp->name, NULL)) != 0) in newkeys_from_blob()
2341 (r = sshbuf_get_cstring(m, &kex->hostkey_alg, NULL)) != 0 || in kex_from_blob()
2348 (r = sshbuf_get_cstring(m, &kex->client_version_string, NULL)) != 0 || in kex_from_blob()
2349 (r = sshbuf_get_cstring(m, &kex->server_version_string, NULL)) != 0) in kex_from_blob()
2538 return sshbuf_get_cstring(ssh->state->incoming_packet, valp, lenp); in sshpkt_get_cstring()
H A Dsftp-common.c141 if ((r = sshbuf_get_cstring(b, &type, NULL)) != 0 || in decode_attrib()
H A Dsshbuf.h193 int sshbuf_get_cstring(struct sshbuf *buf, char **valp, size_t *lenp);
H A Dssh-rsa.c266 if (sshbuf_get_cstring(b, &sigtype, NULL) != 0) { in ssh_rsa_verify()
H A Dauthfd.c211 (r = sshbuf_get_cstring(ids, &comment, NULL)) != 0) in deserialise_identity2()
H A Dssh-keygen.c469 (r = sshbuf_get_cstring(b, &type, NULL)) != 0 || in do_convert_private_ssh2_from_blob()
470 (r = sshbuf_get_cstring(b, &cipher, NULL)) != 0 || in do_convert_private_ssh2_from_blob()
1958 if ((r = sshbuf_get_cstring(options, &name, NULL)) != 0 || in show_options()
1972 if ((r = sshbuf_get_cstring(option, &arg, NULL)) != 0) in show_options()
H A Dsshkey-xmss.c315 if ((r = sshbuf_get_cstring(b, &state->enc_ciphername, NULL)) != 0 || in sshkey_xmss_deserialize_enc_key()
760 if ((r = sshbuf_get_cstring(b, &magic, NULL)) != 0 || in sshkey_xmss_deserialize_state()
/freebsd-12.1/crypto/openssh/regress/unittests/sshbuf/
H A Dtest_sshbuf_fixed.c61 ASSERT_INT_EQ(sshbuf_get_cstring(p1, &s, &l), 0); in sshbuf_fixed()
92 ASSERT_INT_EQ(sshbuf_get_cstring(p2, &s, &l), 0); in sshbuf_fixed()
H A Dtest_sshbuf_getput_basic.c349 r = sshbuf_get_cstring(p1, &s2, &s); in sshbuf_getput_basic_tests()
361 r = sshbuf_get_cstring(p1, &s2, NULL); in sshbuf_getput_basic_tests()
372 ASSERT_INT_EQ(sshbuf_get_cstring(p1, &s2, &s), 0); in sshbuf_getput_basic_tests()

12