Home
last modified time | relevance | path

Searched refs:sshbuf_put_cstring (Results 1 – 25 of 40) sorted by relevance

12

/freebsd/crypto/openssh/
H A Dssh-sk-client.c255 (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 Dauthfd.c224 (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 Dauth2-hostbased.c132 (r = sshbuf_put_cstring(b, authctxt->user)) != 0 || in userauth_hostbased()
133 (r = sshbuf_put_cstring(b, authctxt->service)) != 0 || in userauth_hostbased()
134 (r = sshbuf_put_cstring(b, method)) != 0 || in userauth_hostbased()
137 (r = sshbuf_put_cstring(b, chost)) != 0 || in userauth_hostbased()
138 (r = sshbuf_put_cstring(b, cuser)) != 0) in userauth_hostbased()
H A Dmonitor_wrap.c103 (r = sshbuf_put_cstring(log_msg, msg)) != 0) in mm_log_handler()
277 (r = sshbuf_put_cstring(m, hostkey_alg)) != 0 || in mm_sshkey_sign()
358 if ((r = sshbuf_put_cstring(m, username)) != 0) in mm_getpwnamallow()
446 if ((r = sshbuf_put_cstring(m, service)) != 0 || in mm_inform_authserv()
447 (r = sshbuf_put_cstring(m, style ? style : "")) != 0) in mm_inform_authserv()
469 if ((r = sshbuf_put_cstring(m, password)) != 0) in mm_auth_password()
524 (r = sshbuf_put_cstring(m, user ? user : "")) != 0 || in mm_key_allowed()
525 (r = sshbuf_put_cstring(m, host ? host : "")) != 0 || in mm_key_allowed()
578 (r = sshbuf_put_cstring(m, sigalg == NULL ? "" : sigalg)) != 0) in mm_sshkey_verify()
685 if ((r = sshbuf_put_cstring(m, s->tty)) != 0) in mm_session_pty_cleanup2()
[all …]
H A Dmonitor.c657 if ((r = sshbuf_put_cstring(sigbuf, proof_req)) != 0 || in mm_answer_sign()
727 (r = sshbuf_put_cstring(m, options.x)) != 0) \ in mm_encode_server_options()
732 if ((r = sshbuf_put_cstring(m, options.x[i])) != 0) \ in mm_encode_server_options()
785 if ((r = sshbuf_put_cstring(m, pwent->pw_name)) != 0 || in mm_answer_pwnamallow()
786 (r = sshbuf_put_cstring(m, "*")) != 0 || in mm_answer_pwnamallow()
788 (r = sshbuf_put_cstring(m, pwent->pw_gecos)) != 0 || in mm_answer_pwnamallow()
791 (r = sshbuf_put_cstring(m, pwent->pw_class)) != 0 || in mm_answer_pwnamallow()
793 (r = sshbuf_put_cstring(m, pwent->pw_dir)) != 0 || in mm_answer_pwnamallow()
794 (r = sshbuf_put_cstring(m, pwent->pw_shell)) != 0) in mm_answer_pwnamallow()
845 if ((r = sshbuf_put_cstring(m, banner != NULL ? banner : "")) != 0) in mm_answer_auth2_read_banner()
[all …]
H A Dsftp-client.c639 (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 Dgss-genr.c267 (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 Dauth-pam.c423 if ((r = sshbuf_put_cstring(buffer, in sshpam_thread_conv()
445 if ((r = sshbuf_put_cstring(buffer, in sshpam_thread_conv()
538 if ((r = sshbuf_put_cstring(buffer, "OK")) != 0) in sshpam_thread()
556 if ((r = sshbuf_put_cstring(buffer, environ[i])) != 0) in sshpam_thread()
569 if ((r = sshbuf_put_cstring(buffer, env_from_pam[i])) != 0) in sshpam_thread()
580 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 Dkex.c166 if ((r = sshbuf_put_cstring(b, proposal[i])) != 0) in kex_prop2buf()
305 (r = sshbuf_put_cstring(m, "server-sig-algs")) != 0 || in kex_compose_ext_info_server()
306 (r = sshbuf_put_cstring(m, ssh->kex->server_sig_algs)) != 0 || in kex_compose_ext_info_server()
307 (r = sshbuf_put_cstring(m, in kex_compose_ext_info_server()
309 (r = sshbuf_put_cstring(m, "0")) != 0 || in kex_compose_ext_info_server()
310 (r = sshbuf_put_cstring(m, "ping@openssh.com")) != 0 || in kex_compose_ext_info_server()
311 (r = sshbuf_put_cstring(m, "0")) != 0) { in kex_compose_ext_info_server()
324 (r = sshbuf_put_cstring(m, "ext-info-in-auth@openssh.com")) != 0 || in kex_compose_ext_info_client()
325 (r = sshbuf_put_cstring(m, "0")) != 0) { in kex_compose_ext_info_client()
H A Dssh-xmss.c77 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 Dsshsig.c184 (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 Dauth2-pubkey.c208 (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 Dsshconnect2.c1412 (r = sshbuf_put_cstring(b, authctxt->server_user)) != 0 || in sign_and_send_pubkey()
1413 (r = sshbuf_put_cstring(b, authctxt->service)) != 0 || in sign_and_send_pubkey()
1414 (r = sshbuf_put_cstring(b, method)) != 0 || in sign_and_send_pubkey()
1416 (r = sshbuf_put_cstring(b, alg)) != 0 || in sign_and_send_pubkey()
2216 (r = sshbuf_put_cstring(b, authctxt->server_user)) != 0 || in userauth_hostbased()
2217 (r = sshbuf_put_cstring(b, authctxt->service)) != 0 || in userauth_hostbased()
2218 (r = sshbuf_put_cstring(b, authctxt->method->name)) != 0 || in userauth_hostbased()
2219 (r = sshbuf_put_cstring(b, authctxt->active_ktype)) != 0 || in userauth_hostbased()
2221 (r = sshbuf_put_cstring(b, chost)) != 0 || in userauth_hostbased()
2222 (r = sshbuf_put_cstring(b, authctxt->local_user)) != 0) { in userauth_hostbased()
H A Dsftp-server.c565 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()
1749 if ((r = sshbuf_put_cstring(usernames, name)) != 0) in process_extended_get_users_groups_by_id()
1759 if ((r = sshbuf_put_cstring(groupnames, name)) != 0) in process_extended_get_users_groups_by_id()
H A Dssh-ecdsa.c143 if ((r = sshbuf_put_cstring(b, in ssh_ecdsa_serialize_public()
363 if ((ret = sshbuf_put_cstring(b, sshkey_ssh_name_plain(key))) != 0 || in ssh_ecdsa_sign()
H A Dmux.c328 (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 Dsshkey.c874 if ((r = sshbuf_put_cstring(b, key->sk_application)) != 0) in sshkey_serialize_sk()
907 if ((ret = sshbuf_put_cstring(b, typename)) != 0) in to_blob_buf()
2325 if ((ret = sshbuf_put_cstring(cert, sshkey_ssh_name(k))) != 0) in sshkey_certify_custom()
2341 (ret = sshbuf_put_cstring(cert, k->cert->key_id)) != 0) in sshkey_certify_custom()
2349 if ((ret = sshbuf_put_cstring(principals, in sshkey_certify_custom()
2540 if ((r = sshbuf_put_cstring(b, key->sk_application)) != 0 || in sshkey_serialize_private_sk()
2564 if ((r = sshbuf_put_cstring(b, sshkey_ssh_name(key))) != 0) in sshkey_private_serialize_opt()
2916 (r = sshbuf_put_cstring(encoded, ciphername)) != 0 || in sshkey_private_to_blob2()
2917 (r = sshbuf_put_cstring(encoded, kdfname)) != 0 || in sshkey_private_to_blob2()
2935 (r = sshbuf_put_cstring(encrypted, comment)) != 0) in sshkey_private_to_blob2()
H A Dssh-ed25519.c181 if ((r = sshbuf_put_cstring(b, "ssh-ed25519")) != 0 || in ssh_ed25519_sign()
H A Dssh-pkcs11-client.c645 (r = sshbuf_put_cstring(msg, name)) != 0 || in pkcs11_add_provider()
646 (r = sshbuf_put_cstring(msg, pin)) != 0) in pkcs11_add_provider()
H A Dsshkey-xmss.c301 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 Dsshbuf.h194 int sshbuf_put_cstring(struct sshbuf *buf, const char *v);
H A Dauth-options.c719 if ((r = sshbuf_put_cstring(b, a[i])) != 0) in serialise_array()
779 (r = sshbuf_put_cstring(m, s)) != 0) in serialise_nullable_string()
H A Dssh-sk.c461 if ((r = sshbuf_put_cstring(attest, "ssh-sk-attest-v01")) != 0 || in fill_attestation_blob()
712 if ((r = sshbuf_put_cstring(sig, sshkey_ssh_name_plain(key))) != 0) { in sshsk_sign()
/freebsd/crypto/openssh/regress/unittests/sshkey/
H A Dtest_sshkey.c48 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 Dtest_sshbuf_fixed.c106 ASSERT_INT_EQ(sshbuf_put_cstring(p1, "hello"), 0); in sshbuf_fixed()

12