| /freebsd/crypto/openssh/ |
| H A D | ssh-sk-client.c | 273 (r = sshbuf_put_cstring(req, provider)) != 0 || in sshsk_sign() 275 (r = sshbuf_put_cstring(req, NULL)) != 0 || /* alg */ in sshsk_sign() 277 (r = sshbuf_put_cstring(req, pin)) != 0) { in sshsk_sign() 340 (r = sshbuf_put_cstring(req, provider_path)) != 0 || in sshsk_enroll() 341 (r = sshbuf_put_cstring(req, device)) != 0 || in sshsk_enroll() 342 (r = sshbuf_put_cstring(req, application)) != 0 || in sshsk_enroll() 343 (r = sshbuf_put_cstring(req, userid)) != 0 || in sshsk_enroll() 345 (r = sshbuf_put_cstring(req, pin)) != 0 || in sshsk_enroll() 434 if ((r = sshbuf_put_cstring(req, provider_path)) != 0 || in sshsk_load_resident() 435 (r = sshbuf_put_cstring(req, device)) != 0 || in sshsk_load_resident() [all …]
|
| H A D | authfd.c | 223 (r = sshbuf_put_cstring(msg, password)) != 0 || in ssh_lock_agent() 473 if ((r = sshbuf_put_cstring(b, dch->user)) != 0 || in encode_dest_constraint_hop() 474 (r = sshbuf_put_cstring(b, dch->hostname)) != 0 || in encode_dest_constraint_hop() 534 (r = sshbuf_put_cstring(m, in encode_constraints() 536 (r = sshbuf_put_cstring(m, provider)) != 0) in encode_constraints() 551 (r = sshbuf_put_cstring(m, in encode_constraints() 569 (r = sshbuf_put_cstring(m, in encode_constraints() 620 (r = sshbuf_put_cstring(msg, comment)) != 0) in ssh_add_identity_constrained() 701 (r = sshbuf_put_cstring(msg, reader_id)) != 0 || in ssh_update_card() 702 (r = sshbuf_put_cstring(msg, pin)) != 0) in ssh_update_card() [all …]
|
| H A D | auth2-hostbased.c | 133 (r = sshbuf_put_cstring(b, authctxt->user)) != 0 || in userauth_hostbased() 134 (r = sshbuf_put_cstring(b, authctxt->service)) != 0 || in userauth_hostbased() 135 (r = sshbuf_put_cstring(b, method)) != 0 || in userauth_hostbased() 138 (r = sshbuf_put_cstring(b, chost)) != 0 || in userauth_hostbased() 139 (r = sshbuf_put_cstring(b, cuser)) != 0) in userauth_hostbased()
|
| H A D | monitor_wrap.c | 103 (r = sshbuf_put_cstring(log_msg, msg)) != 0) in mm_log_handler() 285 (r = sshbuf_put_cstring(m, hostkey_alg)) != 0 || in mm_sshkey_sign() 344 if ((r = sshbuf_put_cstring(m, username)) != 0) in mm_getpwnamallow() 432 if ((r = sshbuf_put_cstring(m, service)) != 0 || in mm_inform_authserv() 433 (r = sshbuf_put_cstring(m, style ? style : "")) != 0) in mm_inform_authserv() 455 if ((r = sshbuf_put_cstring(m, password)) != 0) in mm_auth_password() 510 (r = sshbuf_put_cstring(m, user ? user : "")) != 0 || in mm_key_allowed() 511 (r = sshbuf_put_cstring(m, host ? host : "")) != 0 || in mm_key_allowed() 564 (r = sshbuf_put_cstring(m, sigalg == NULL ? "" : sigalg)) != 0) in mm_sshkey_verify() 671 if ((r = sshbuf_put_cstring(m, s->tty)) != 0) in mm_session_pty_cleanup2() [all …]
|
| H A D | sftp-client.c | 624 (r = sshbuf_put_cstring(msg, "limits@openssh.com")) != 0) in sftp_get_limits() 707 (r = sshbuf_put_cstring(msg, path)) != 0) in sftp_lsreaddir() 1012 (r = sshbuf_put_cstring(msg, in sftp_realpath_expand() 1014 (r = sshbuf_put_cstring(msg, path)) != 0) in sftp_realpath_expand() 1134 (r = sshbuf_put_cstring(msg, oldpath)) != 0 || in sftp_copy() 1154 (r = sshbuf_put_cstring(msg, newpath)) != 0 || in sftp_copy() 1176 (r = sshbuf_put_cstring(msg, "copy-data")) != 0 || in sftp_copy() 1220 (r = sshbuf_put_cstring(msg, in sftp_rename() 1230 if ((r = sshbuf_put_cstring(msg, oldpath)) != 0 || in sftp_rename() 1231 (r = sshbuf_put_cstring(msg, newpath)) != 0) in sftp_rename() [all …]
|
| H A D | kex.c | 162 if ((r = sshbuf_put_cstring(b, proposal[i])) != 0) in kex_prop2buf() 301 (r = sshbuf_put_cstring(m, "server-sig-algs")) != 0 || in kex_compose_ext_info_server() 302 (r = sshbuf_put_cstring(m, ssh->kex->server_sig_algs)) != 0 || in kex_compose_ext_info_server() 303 (r = sshbuf_put_cstring(m, in kex_compose_ext_info_server() 305 (r = sshbuf_put_cstring(m, "0")) != 0 || in kex_compose_ext_info_server() 306 (r = sshbuf_put_cstring(m, "ping@openssh.com")) != 0 || in kex_compose_ext_info_server() 307 (r = sshbuf_put_cstring(m, "0")) != 0 || in kex_compose_ext_info_server() 308 (r = sshbuf_put_cstring(m, "agent-forward")) != 0 || in kex_compose_ext_info_server() 309 (r = sshbuf_put_cstring(m, "0")) != 0) { in kex_compose_ext_info_server() 322 (r = sshbuf_put_cstring(m, "ext-info-in-auth@openssh.com")) != 0 || in kex_compose_ext_info_client() [all …]
|
| H A D | auth-pam.c | 404 if ((r = sshbuf_put_cstring(buffer, in sshpam_thread_conv() 429 if ((r = sshbuf_put_cstring(buffer, in sshpam_thread_conv() 552 if ((r = sshbuf_put_cstring(buffer, "OK")) != 0) in sshpam_thread() 570 if ((r = sshbuf_put_cstring(buffer, environ[i])) != 0) in sshpam_thread() 583 if ((r = sshbuf_put_cstring(buffer, env_from_pam[i])) != 0) in sshpam_thread() 594 if ((r = sshbuf_put_cstring(buffer, in sshpam_thread() 990 if ((r = sshbuf_put_cstring(buffer, *resp)) != 0) in sshpam_respond() 994 if ((r = sshbuf_put_cstring(buffer, fake)) != 0) in sshpam_respond()
|
| 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 | monitor.c | 769 if ((r = sshbuf_put_cstring(sigbuf, proof_req)) != 0 || in mm_answer_sign() 890 if ((r = sshbuf_put_cstring(m, pwent->pw_name)) != 0 || in mm_answer_pwnamallow() 891 (r = sshbuf_put_cstring(m, "*")) != 0 || in mm_answer_pwnamallow() 893 (r = sshbuf_put_cstring(m, pwent->pw_gecos)) != 0 || in mm_answer_pwnamallow() 896 (r = sshbuf_put_cstring(m, pwent->pw_class)) != 0 || in mm_answer_pwnamallow() 898 (r = sshbuf_put_cstring(m, pwent->pw_dir)) != 0 || in mm_answer_pwnamallow() 899 (r = sshbuf_put_cstring(m, pwent->pw_shell)) != 0) in mm_answer_pwnamallow() 950 if ((r = sshbuf_put_cstring(m, banner != NULL ? banner : "")) != 0) in mm_answer_auth2_read_banner() 1063 if ((r = sshbuf_put_cstring(m, prompts[0])) != 0) in mm_answer_bsdauthquery() 1198 (r = sshbuf_put_cstring(m, name)) != 0 || in mm_answer_pam_query() [all …]
|
| 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() 220 (r = sshbuf_put_cstring(blob, sig_namespace)) != 0 || in sshsig_wrap_sign() 222 (r = sshbuf_put_cstring(blob, hashalg)) != 0 || in sshsig_wrap_sign() 329 (r = sshbuf_put_cstring(toverify, expect_namespace)) != 0 || in sshsig_wrap_verify() 331 (r = sshbuf_put_cstring(toverify, hashalg)) != 0 || in sshsig_wrap_verify()
|
| H A D | ssh-pkcs11-client.c | 253 (r = sshbuf_put_cstring(msg, alg == NULL ? "" : alg)) != 0 || in pkcs11_sign() 402 (r = sshbuf_put_cstring(msg, name)) != 0 || in pkcs11_add_provider() 403 (r = sshbuf_put_cstring(msg, pin)) != 0) in pkcs11_add_provider()
|
| H A D | mux.c | 323 (r = sshbuf_put_cstring(reply, msg)) != 0) in reply_error() 533 (r = sshbuf_put_cstring(reply, msg)) != 0) in mux_master_process_ext_info() 1217 if ((r = sshbuf_put_cstring(out, "info")) != 0 || in mux_master_read_cb() 1218 (r = sshbuf_put_cstring(out, "0")) != 0) in mux_master_read_cb() 1771 (r = sshbuf_put_cstring(m, name)) != 0) in mux_client_request_info() 1899 (r = sshbuf_put_cstring(m, lhost)) != 0 || in mux_client_forward() 1901 (r = sshbuf_put_cstring(m, chost)) != 0 || in mux_client_forward() 2024 (r = sshbuf_put_cstring(m, term == NULL ? "" : term)) != 0 || in mux_client_request_session() 2033 if ((r = sshbuf_put_cstring(m, environ[i])) != 0) in mux_client_request_session() 2038 if ((r = sshbuf_put_cstring(m, options.setenv[i])) != 0) in mux_client_request_session() [all …]
|
| H A D | auth2-pubkey.c | 208 (r = sshbuf_put_cstring(b, userstyle)) != 0 || in userauth_pubkey() 209 (r = sshbuf_put_cstring(b, authctxt->service)) != 0 || in userauth_pubkey() 210 (r = sshbuf_put_cstring(b, method)) != 0 || in userauth_pubkey() 212 (r = sshbuf_put_cstring(b, pkalg)) != 0 || in userauth_pubkey()
|
| H A D | sshconnect2.c | 1419 (r = sshbuf_put_cstring(b, authctxt->server_user)) != 0 || in sign_and_send_pubkey() 1420 (r = sshbuf_put_cstring(b, authctxt->service)) != 0 || in sign_and_send_pubkey() 1421 (r = sshbuf_put_cstring(b, method)) != 0 || in sign_and_send_pubkey() 1423 (r = sshbuf_put_cstring(b, alg)) != 0 || in sign_and_send_pubkey() 2230 (r = sshbuf_put_cstring(b, authctxt->server_user)) != 0 || in userauth_hostbased() 2231 (r = sshbuf_put_cstring(b, authctxt->service)) != 0 || in userauth_hostbased() 2232 (r = sshbuf_put_cstring(b, authctxt->method->name)) != 0 || in userauth_hostbased() 2233 (r = sshbuf_put_cstring(b, authctxt->active_ktype)) != 0 || in userauth_hostbased() 2235 (r = sshbuf_put_cstring(b, chost)) != 0 || in userauth_hostbased() 2236 (r = sshbuf_put_cstring(b, authctxt->local_user)) != 0) { in userauth_hostbased()
|
| H A D | sftp-server.c | 557 if ((r = sshbuf_put_cstring(msg, errmsg == NULL ? in send_status_errmsg() 559 (r = sshbuf_put_cstring(msg, "")) != 0) in send_status_errmsg() 621 if ((r = sshbuf_put_cstring(msg, stats[i].name)) != 0 || in send_names() 622 (r = sshbuf_put_cstring(msg, stats[i].long_name)) != 0 || in send_names() 693 if ((r = sshbuf_put_cstring(msg, name)) != 0 || in compose_extension() 694 (r = sshbuf_put_cstring(msg, ver)) != 0) in compose_extension() 1766 if ((r = sshbuf_put_cstring(usernames, name)) != 0) in process_extended_get_users_groups_by_id() 1776 if ((r = sshbuf_put_cstring(groupnames, name)) != 0) in process_extended_get_users_groups_by_id()
|
| H A D | ssh-ecdsa.c | 141 if ((r = sshbuf_put_cstring(b, in ssh_ecdsa_serialize_public() 386 if ((ret = sshbuf_put_cstring(b, sshkey_ssh_name_plain(key))) != 0 || in ssh_ecdsa_encode_store_sig()
|
| H A D | sshkey.c | 867 if ((r = sshbuf_put_cstring(b, key->sk_application)) != 0) in sshkey_serialize_sk() 900 if ((ret = sshbuf_put_cstring(b, typename)) != 0) in to_blob_buf() 2326 if ((ret = sshbuf_put_cstring(cert, sshkey_ssh_name(k))) != 0) in sshkey_certify_custom() 2342 (ret = sshbuf_put_cstring(cert, k->cert->key_id)) != 0) in sshkey_certify_custom() 2350 if ((ret = sshbuf_put_cstring(principals, in sshkey_certify_custom() 2538 if ((r = sshbuf_put_cstring(b, key->sk_application)) != 0 || in sshkey_serialize_private_sk() 2562 if ((r = sshbuf_put_cstring(b, sshkey_ssh_name(key))) != 0) in sshkey_private_serialize_opt() 2892 (r = sshbuf_put_cstring(encoded, ciphername)) != 0 || in sshkey_private_to_blob2() 2893 (r = sshbuf_put_cstring(encoded, kdfname)) != 0 || in sshkey_private_to_blob2() 2910 (r = sshbuf_put_cstring(encrypted, comment)) != 0) in sshkey_private_to_blob2()
|
| H A D | ssh-pkcs11-helper.c | 85 (r = sshbuf_put_cstring(msg, labels[i])) != 0) in process_add()
|
| H A D | ssh-ed25519.c | 206 if ((r = sshbuf_put_cstring(b, "ssh-ed25519")) != 0 || in ssh_ed25519_encode_store_sig()
|
| H A D | sshbuf.h | 215 int sshbuf_put_cstring(struct sshbuf *buf, const char *v);
|
| H A D | auth-options.c | 717 if ((r = sshbuf_put_cstring(b, a[i])) != 0) in serialise_array() 777 (r = sshbuf_put_cstring(m, s)) != 0) in serialise_nullable_string()
|
| H A D | ssh-sk.c | 459 if ((r = sshbuf_put_cstring(attest, "ssh-sk-attest-v01")) != 0 || in fill_attestation_blob() 710 if ((r = sshbuf_put_cstring(sig, sshkey_ssh_name_plain(key))) != 0) { in sshsk_sign()
|
| H A D | ssh-sk-helper.c | 274 (r = sshbuf_put_cstring(resp, "")) != 0 || /* comment */ in process_load_resident()
|
| /freebsd/crypto/openssh/regress/unittests/sshkey/ |
| H A D | test_sshkey.c | 46 ASSERT_INT_EQ(sshbuf_put_cstring(b, name), 0); in put_opt() 48 ASSERT_INT_EQ(sshbuf_put_cstring(sect, value), 0); in put_opt() 78 ASSERT_INT_EQ(sshbuf_put_cstring(principals, "gsamsa"), 0); in build_cert() 79 ASSERT_INT_EQ(sshbuf_put_cstring(principals, "gregor"), 0); in build_cert() 90 ASSERT_INT_EQ(sshbuf_put_cstring(b, type), 0); in build_cert() 91 ASSERT_INT_EQ(sshbuf_put_cstring(b, "noncenoncenonce!"), 0); /* nonce */ in build_cert() 95 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 | 104 ASSERT_INT_EQ(sshbuf_put_cstring(p1, "hello"), 0); in sshbuf_fixed()
|