/freebsd/crypto/openssh/ |
H A D | ssh-sk-client.c | 255 (r = sshbuf_put_cstring(req, provider)) != 0 || in sshsk_sign() 257 (r = sshbuf_put_cstring(req, NULL)) != 0 || /* alg */ in sshsk_sign() 259 (r = sshbuf_put_cstring(req, pin)) != 0) { in sshsk_sign() 322 (r = sshbuf_put_cstring(req, provider_path)) != 0 || in sshsk_enroll() 323 (r = sshbuf_put_cstring(req, device)) != 0 || in sshsk_enroll() 324 (r = sshbuf_put_cstring(req, application)) != 0 || in sshsk_enroll() 325 (r = sshbuf_put_cstring(req, userid)) != 0 || in sshsk_enroll() 327 (r = sshbuf_put_cstring(req, pin)) != 0 || in sshsk_enroll() 416 if ((r = sshbuf_put_cstring(req, provider_path)) != 0 || in sshsk_load_resident() 417 (r = sshbuf_put_cstring(req, device)) != 0 || in sshsk_load_resident() [all …]
|
H A D | authfd.c | 224 (r = sshbuf_put_cstring(msg, password)) != 0 || in ssh_lock_agent() 467 if ((r = sshbuf_put_cstring(b, dch->user)) != 0 || in encode_dest_constraint_hop() 468 (r = sshbuf_put_cstring(b, dch->hostname)) != 0 || in encode_dest_constraint_hop() 533 (r = sshbuf_put_cstring(m, in encode_constraints() 535 (r = sshbuf_put_cstring(m, provider)) != 0) in encode_constraints() 550 (r = sshbuf_put_cstring(m, in encode_constraints() 568 (r = sshbuf_put_cstring(m, in encode_constraints() 623 (r = sshbuf_put_cstring(msg, comment)) != 0) in ssh_add_identity_constrained() 704 (r = sshbuf_put_cstring(msg, reader_id)) != 0 || in ssh_update_card() 705 (r = sshbuf_put_cstring(msg, pin)) != 0) in ssh_update_card() [all …]
|
H A D | auth2-hostbased.c | 131 (r = sshbuf_put_cstring(b, authctxt->user)) != 0 || in userauth_hostbased() 132 (r = sshbuf_put_cstring(b, authctxt->service)) != 0 || in userauth_hostbased() 133 (r = sshbuf_put_cstring(b, method)) != 0 || in userauth_hostbased() 136 (r = sshbuf_put_cstring(b, chost)) != 0 || in userauth_hostbased() 137 (r = sshbuf_put_cstring(b, cuser)) != 0) in userauth_hostbased()
|
H A D | monitor_wrap.c | 101 (r = sshbuf_put_cstring(log_msg, msg)) != 0) in mm_log_handler() 231 (r = sshbuf_put_cstring(m, hostkey_alg)) != 0 || in mm_sshkey_sign() 271 if ((r = sshbuf_put_cstring(m, username)) != 0) in mm_getpwnamallow() 390 if ((r = sshbuf_put_cstring(m, service)) != 0 || in mm_inform_authserv() 391 (r = sshbuf_put_cstring(m, style ? style : "")) != 0) in mm_inform_authserv() 413 if ((r = sshbuf_put_cstring(m, password)) != 0) in mm_auth_password() 468 (r = sshbuf_put_cstring(m, user ? user : "")) != 0 || in mm_key_allowed() 469 (r = sshbuf_put_cstring(m, host ? host : "")) != 0 || in mm_key_allowed() 522 (r = sshbuf_put_cstring(m, sigalg == NULL ? "" : sigalg)) != 0) in mm_sshkey_verify() 629 if ((r = sshbuf_put_cstring(m, s->tty)) != 0) in mm_session_pty_cleanup2() [all …]
|
H A D | monitor.c | 652 if ((r = sshbuf_put_cstring(sigbuf, proof_req)) != 0 || in mm_answer_sign() 754 if ((r = sshbuf_put_cstring(m, pwent->pw_name)) != 0 || in mm_answer_pwnamallow() 755 (r = sshbuf_put_cstring(m, "*")) != 0 || in mm_answer_pwnamallow() 757 (r = sshbuf_put_cstring(m, pwent->pw_gecos)) != 0 || in mm_answer_pwnamallow() 760 (r = sshbuf_put_cstring(m, pwent->pw_class)) != 0 || in mm_answer_pwnamallow() 762 (r = sshbuf_put_cstring(m, pwent->pw_dir)) != 0 || in mm_answer_pwnamallow() 763 (r = sshbuf_put_cstring(m, pwent->pw_shell)) != 0) in mm_answer_pwnamallow() 774 (r = sshbuf_put_cstring(m, options.x)) != 0) \ in mm_answer_pwnamallow() 779 if ((r = sshbuf_put_cstring(m, options.x[i])) != 0) \ in mm_answer_pwnamallow() 820 if ((r = sshbuf_put_cstring(m, banner != NULL ? banner : "")) != 0) in mm_answer_auth2_read_banner() [all …]
|
H A D | sftp-client.c | 639 (r = sshbuf_put_cstring(msg, "limits@openssh.com")) != 0) in sftp_get_limits() 722 (r = sshbuf_put_cstring(msg, path)) != 0) in sftp_lsreaddir() 1027 (r = sshbuf_put_cstring(msg, in sftp_realpath_expand() 1029 (r = sshbuf_put_cstring(msg, path)) != 0) in sftp_realpath_expand() 1149 (r = sshbuf_put_cstring(msg, oldpath)) != 0 || in sftp_copy() 1169 (r = sshbuf_put_cstring(msg, newpath)) != 0 || in sftp_copy() 1191 (r = sshbuf_put_cstring(msg, "copy-data")) != 0 || in sftp_copy() 1235 (r = sshbuf_put_cstring(msg, in sftp_rename() 1245 if ((r = sshbuf_put_cstring(msg, oldpath)) != 0 || in sftp_rename() 1246 (r = sshbuf_put_cstring(msg, newpath)) != 0) in sftp_rename() [all …]
|
H A D | gss-genr.c | 267 (r = sshbuf_put_cstring(b, user)) != 0 || in ssh_gssapi_buildmic() 268 (r = sshbuf_put_cstring(b, service)) != 0 || in ssh_gssapi_buildmic() 269 (r = sshbuf_put_cstring(b, context)) != 0) in ssh_gssapi_buildmic()
|
H A D | auth-pam.c | 427 if ((r = sshbuf_put_cstring(buffer, in sshpam_thread_conv() 449 if ((r = sshbuf_put_cstring(buffer, in sshpam_thread_conv() 542 if ((r = sshbuf_put_cstring(buffer, "OK")) != 0) in sshpam_thread() 560 if ((r = sshbuf_put_cstring(buffer, environ[i])) != 0) in sshpam_thread() 573 if ((r = sshbuf_put_cstring(buffer, env_from_pam[i])) != 0) in sshpam_thread() 584 if ((r = sshbuf_put_cstring(buffer, in sshpam_thread() 1011 if ((r = sshbuf_put_cstring(buffer, *resp)) != 0) in sshpam_respond() 1015 if ((r = sshbuf_put_cstring(buffer, fake)) != 0) in sshpam_respond()
|
H A D | ssh-xmss.c | 77 if ((r = sshbuf_put_cstring(b, key->xmss_name)) != 0 || in ssh_xmss_serialize_public() 95 if ((r = sshbuf_put_cstring(b, key->xmss_name)) != 0 || in ssh_xmss_serialize_private() 241 if ((r = sshbuf_put_cstring(b, "ssh-xmss@openssh.com")) != 0 || in ssh_xmss_sign()
|
H A D | kex.c | 414 if ((r = sshbuf_put_cstring(b, proposal[i])) != 0) in kex_prop2buf() 553 (r = sshbuf_put_cstring(m, "server-sig-algs")) != 0 || in kex_compose_ext_info_server() 554 (r = sshbuf_put_cstring(m, ssh->kex->server_sig_algs)) != 0 || in kex_compose_ext_info_server() 555 (r = sshbuf_put_cstring(m, in kex_compose_ext_info_server() 557 (r = sshbuf_put_cstring(m, "0")) != 0 || in kex_compose_ext_info_server() 558 (r = sshbuf_put_cstring(m, "ping@openssh.com")) != 0 || in kex_compose_ext_info_server() 559 (r = sshbuf_put_cstring(m, "0")) != 0) { in kex_compose_ext_info_server() 572 (r = sshbuf_put_cstring(m, "ext-info-in-auth@openssh.com")) != 0 || in kex_compose_ext_info_client() 573 (r = sshbuf_put_cstring(m, "0")) != 0) { in kex_compose_ext_info_client()
|
H A D | sshsig.c | 184 (r = sshbuf_put_cstring(tosign, sig_namespace)) != 0 || in sshsig_wrap_sign() 186 (r = sshbuf_put_cstring(tosign, hashalg)) != 0 || in sshsig_wrap_sign() 215 (r = sshbuf_put_cstring(blob, sig_namespace)) != 0 || in sshsig_wrap_sign() 217 (r = sshbuf_put_cstring(blob, hashalg)) != 0 || in sshsig_wrap_sign() 324 (r = sshbuf_put_cstring(toverify, expect_namespace)) != 0 || in sshsig_wrap_verify() 326 (r = sshbuf_put_cstring(toverify, hashalg)) != 0 || in sshsig_wrap_verify()
|
H A D | auth2-pubkey.c | 207 (r = sshbuf_put_cstring(b, userstyle)) != 0 || in userauth_pubkey() 208 (r = sshbuf_put_cstring(b, authctxt->service)) != 0 || in userauth_pubkey() 209 (r = sshbuf_put_cstring(b, method)) != 0 || in userauth_pubkey() 211 (r = sshbuf_put_cstring(b, pkalg)) != 0 || in userauth_pubkey()
|
H A D | sshconnect2.c | 1410 (r = sshbuf_put_cstring(b, authctxt->server_user)) != 0 || in sign_and_send_pubkey() 1411 (r = sshbuf_put_cstring(b, authctxt->service)) != 0 || in sign_and_send_pubkey() 1412 (r = sshbuf_put_cstring(b, method)) != 0 || in sign_and_send_pubkey() 1414 (r = sshbuf_put_cstring(b, alg)) != 0 || in sign_and_send_pubkey() 2214 (r = sshbuf_put_cstring(b, authctxt->server_user)) != 0 || in userauth_hostbased() 2215 (r = sshbuf_put_cstring(b, authctxt->service)) != 0 || in userauth_hostbased() 2216 (r = sshbuf_put_cstring(b, authctxt->method->name)) != 0 || in userauth_hostbased() 2217 (r = sshbuf_put_cstring(b, authctxt->active_ktype)) != 0 || in userauth_hostbased() 2219 (r = sshbuf_put_cstring(b, chost)) != 0 || in userauth_hostbased() 2220 (r = sshbuf_put_cstring(b, authctxt->local_user)) != 0) { in userauth_hostbased()
|
H A D | ssh-ecdsa.c | 102 if ((r = sshbuf_put_cstring(b, in ssh_ecdsa_serialize_public() 268 if ((ret = sshbuf_put_cstring(b, sshkey_ssh_name_plain(key))) != 0 || in ssh_ecdsa_sign()
|
H A D | sftp-server.c | 565 if ((r = sshbuf_put_cstring(msg, errmsg == NULL ? in send_status_errmsg() 567 (r = sshbuf_put_cstring(msg, "")) != 0) in send_status_errmsg() 629 if ((r = sshbuf_put_cstring(msg, stats[i].name)) != 0 || in send_names() 630 (r = sshbuf_put_cstring(msg, stats[i].long_name)) != 0 || in send_names() 701 if ((r = sshbuf_put_cstring(msg, name)) != 0 || in compose_extension() 702 (r = sshbuf_put_cstring(msg, ver)) != 0) in compose_extension() 1747 if ((r = sshbuf_put_cstring(usernames, name)) != 0) in process_extended_get_users_groups_by_id() 1757 if ((r = sshbuf_put_cstring(groupnames, name)) != 0) in process_extended_get_users_groups_by_id()
|
H A D | mux.c | 328 (r = sshbuf_put_cstring(reply, msg)) != 0) in reply_error() 1798 (r = sshbuf_put_cstring(m, lhost)) != 0 || in mux_client_forward() 1800 (r = sshbuf_put_cstring(m, chost)) != 0 || in mux_client_forward() 1923 (r = sshbuf_put_cstring(m, term == NULL ? "" : term)) != 0 || in mux_client_request_session() 1932 if ((r = sshbuf_put_cstring(m, environ[i])) != 0) in mux_client_request_session() 1937 if ((r = sshbuf_put_cstring(m, options.setenv[i])) != 0) in mux_client_request_session() 2139 (r = sshbuf_put_cstring(m, options.stdio_forward_host)) != 0 || in mux_client_request_stdio_fwd()
|
H A D | sshkey.c | 735 if ((r = sshbuf_put_cstring(b, key->sk_application)) != 0) in sshkey_serialize_sk() 768 if ((ret = sshbuf_put_cstring(b, typename)) != 0) in to_blob_buf() 2217 if ((ret = sshbuf_put_cstring(cert, sshkey_ssh_name(k))) != 0) in sshkey_certify_custom() 2233 (ret = sshbuf_put_cstring(cert, k->cert->key_id)) != 0) in sshkey_certify_custom() 2241 if ((ret = sshbuf_put_cstring(principals, in sshkey_certify_custom() 2432 if ((r = sshbuf_put_cstring(b, key->sk_application)) != 0 || in sshkey_serialize_private_sk() 2456 if ((r = sshbuf_put_cstring(b, sshkey_ssh_name(key))) != 0) in sshkey_private_serialize_opt() 2808 (r = sshbuf_put_cstring(encoded, ciphername)) != 0 || in sshkey_private_to_blob2() 2809 (r = sshbuf_put_cstring(encoded, kdfname)) != 0 || in sshkey_private_to_blob2() 2827 (r = sshbuf_put_cstring(encrypted, comment)) != 0) in sshkey_private_to_blob2()
|
H A D | ssh-pkcs11-client.c | 604 (r = sshbuf_put_cstring(msg, name)) != 0 || in pkcs11_add_provider() 605 (r = sshbuf_put_cstring(msg, pin)) != 0) in pkcs11_add_provider()
|
H A D | ssh-ed25519.c | 181 if ((r = sshbuf_put_cstring(b, "ssh-ed25519")) != 0 || in ssh_ed25519_sign()
|
H A D | sshkey-xmss.c | 301 if ((r = sshbuf_put_cstring(b, state->enc_ciphername)) != 0 || in sshkey_xmss_serialize_enc_key() 690 if ((r = sshbuf_put_cstring(b, SSH_XMSS_K2_MAGIC)) != 0 || in sshkey_xmss_serialize_state() 749 (r = sshbuf_put_cstring(b, k->xmss_filename)) != 0) in sshkey_xmss_serialize_state_opt()
|
H A D | sshbuf.h | 193 int sshbuf_put_cstring(struct sshbuf *buf, const char *v);
|
H A D | ssh-sk.c | 446 if ((r = sshbuf_put_cstring(attest, "ssh-sk-attest-v01")) != 0 || in fill_attestation_blob() 697 if ((r = sshbuf_put_cstring(sig, sshkey_ssh_name_plain(key))) != 0) { in sshsk_sign()
|
H A D | auth-options.c | 719 if ((r = sshbuf_put_cstring(b, a[i])) != 0) in serialise_array() 779 (r = sshbuf_put_cstring(m, s)) != 0) in serialise_nullable_string()
|
/freebsd/crypto/openssh/regress/unittests/sshkey/ |
H A D | test_sshkey.c | 48 ASSERT_INT_EQ(sshbuf_put_cstring(b, name), 0); in put_opt() 50 ASSERT_INT_EQ(sshbuf_put_cstring(sect, value), 0); in put_opt() 80 ASSERT_INT_EQ(sshbuf_put_cstring(principals, "gsamsa"), 0); in build_cert() 81 ASSERT_INT_EQ(sshbuf_put_cstring(principals, "gregor"), 0); in build_cert() 92 ASSERT_INT_EQ(sshbuf_put_cstring(b, type), 0); in build_cert() 93 ASSERT_INT_EQ(sshbuf_put_cstring(b, "noncenoncenonce!"), 0); /* nonce */ in build_cert() 97 ASSERT_INT_EQ(sshbuf_put_cstring(b, "gregor"), 0); /* key ID */ in build_cert()
|
/freebsd/crypto/openssh/regress/unittests/sshbuf/ |
H A D | test_sshbuf_fixed.c | 106 ASSERT_INT_EQ(sshbuf_put_cstring(p1, "hello"), 0); in sshbuf_fixed()
|