Home
last modified time | relevance | path

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

12

/openbsd-src/usr.bin/ssh/
H A Dssh-sk-client.c249 (r = sshbuf_put_cstring(req, provider)) != 0 || in sshsk_sign()
251 (r = sshbuf_put_cstring(req, NULL)) != 0 || /* alg */ in sshsk_sign()
253 (r = sshbuf_put_cstring(req, pin)) != 0) { in sshsk_sign()
312 (r = sshbuf_put_cstring(req, provider_path)) != 0 || in sshsk_enroll()
313 (r = sshbuf_put_cstring(req, device)) != 0 || in sshsk_enroll()
314 (r = sshbuf_put_cstring(req, application)) != 0 || in sshsk_enroll()
315 (r = sshbuf_put_cstring(req, userid)) != 0 || in sshsk_enroll()
317 (r = sshbuf_put_cstring(req, pin)) != 0 || in sshsk_enroll()
406 if ((r = sshbuf_put_cstring(req, provider_path)) != 0 || in sshsk_load_resident()
407 (r = sshbuf_put_cstring(req, device)) != 0 || in sshsk_load_resident()
[all …]
H A Dauthfd.c223 (r = sshbuf_put_cstring(msg, password)) != 0 || in ssh_lock_agent()
466 if ((r = sshbuf_put_cstring(b, dch->user)) != 0 || in encode_dest_constraint_hop()
467 (r = sshbuf_put_cstring(b, dch->hostname)) != 0 || in encode_dest_constraint_hop()
532 (r = sshbuf_put_cstring(m, in encode_constraints()
534 (r = sshbuf_put_cstring(m, provider)) != 0) in encode_constraints()
549 (r = sshbuf_put_cstring(m, in encode_constraints()
567 (r = sshbuf_put_cstring(m, in encode_constraints()
622 (r = sshbuf_put_cstring(msg, comment)) != 0) in ssh_add_identity_constrained()
703 (r = sshbuf_put_cstring(msg, reader_id)) != 0 || in ssh_update_card()
704 (r = sshbuf_put_cstring(msg, pin)) != 0) in ssh_update_card()
[all …]
H A Dauth2-hostbased.c131 (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 Dmonitor_wrap.c99 (r = sshbuf_put_cstring(log_msg, msg)) != 0) in mm_log_handler()
261 (r = sshbuf_put_cstring(m, hostkey_alg)) != 0 || in mm_sshkey_sign()
344 if ((r = sshbuf_put_cstring(m, username)) != 0) in mm_getpwnamallow()
423 if ((r = sshbuf_put_cstring(m, service)) != 0 ||
424 (r = sshbuf_put_cstring(m, style ? style : "")) != 0) in mm_inform_authserv()
443 if ((r = sshbuf_put_cstring(m, password)) != 0)
491 (r = sshbuf_put_cstring(m, user ? user : "")) != 0 || in mm_key_allowed()
492 (r = sshbuf_put_cstring(m, host ? host : "")) != 0 || in mm_key_allowed()
545 (r = sshbuf_put_cstring(m, sigalg == NULL ? "" : sigalg)) != 0) in mm_sshkey_verify()
652 if ((r = sshbuf_put_cstring(
[all...]
H A Dsftp-client.c619 (r = sshbuf_put_cstring(msg, "limits@openssh.com")) != 0) in sftp_get_limits()
702 (r = sshbuf_put_cstring(msg, path)) != 0) in sftp_lsreaddir()
1007 (r = sshbuf_put_cstring(msg, in sftp_realpath_expand()
1009 (r = sshbuf_put_cstring(msg, path)) != 0) in sftp_realpath_expand()
1129 (r = sshbuf_put_cstring(msg, oldpath)) != 0 || in sftp_copy()
1149 (r = sshbuf_put_cstring(msg, newpath)) != 0 || in sftp_copy()
1171 (r = sshbuf_put_cstring(msg, "copy-data")) != 0 || in sftp_copy()
1215 (r = sshbuf_put_cstring(msg, in sftp_rename()
1225 if ((r = sshbuf_put_cstring(msg, oldpath)) != 0 || in sftp_rename()
1226 (r = sshbuf_put_cstring(msg, newpath)) != 0) in sftp_rename()
[all …]
H A Dmonitor.c535 if ((r = sshbuf_put_cstring(inc, item->selector)) != 0 || in mm_answer_moduli()
536 (r = sshbuf_put_cstring(inc, item->filename)) != 0 || in mm_answer_moduli()
678 if ((r = sshbuf_put_cstring(sigbuf, proof_req)) != 0 || in mm_answer_pwnamallow()
748 (r = sshbuf_put_cstring(m, options.x)) != 0) \
753 if ((r = sshbuf_put_cstring(m, options.x[i])) != 0) \ in mm_answer_auth2_read_banner()
802 if ((r = sshbuf_put_cstring(m, pwent->pw_name)) != 0 || in mm_answer_authpassword()
803 (r = sshbuf_put_cstring(m, "*")) != 0 || in mm_answer_authpassword()
804 (r = sshbuf_put_cstring(m, pwent->pw_gecos)) != 0 || in mm_answer_authpassword()
805 (r = sshbuf_put_cstring(m, pwent->pw_class)) != 0 || in mm_answer_authpassword()
806 (r = sshbuf_put_cstring( in mm_answer_authpassword()
[all...]
H A Dgss-genr.c261 (r = sshbuf_put_cstring(b, user)) != 0 || in ssh_gssapi_buildmic()
262 (r = sshbuf_put_cstring(b, service)) != 0 || in ssh_gssapi_buildmic()
263 (r = sshbuf_put_cstring(b, context)) != 0) in ssh_gssapi_buildmic()
H A Dssh-xmss.c72 if ((r = sshbuf_put_cstring(b, key->xmss_name)) != 0 || in ssh_xmss_serialize_public()
90 if ((r = sshbuf_put_cstring(b, key->xmss_name)) != 0 || in ssh_xmss_serialize_private()
236 if ((r = sshbuf_put_cstring(b, "ssh-xmss@openssh.com")) != 0 || in ssh_xmss_sign()
H A Dkex.c161 if ((r = sshbuf_put_cstring(b, proposal[i])) != 0) in kex_prop2buf()
300 (r = sshbuf_put_cstring(m, "server-sig-algs")) != 0 || in kex_compose_ext_info_server()
301 (r = sshbuf_put_cstring(m, ssh->kex->server_sig_algs)) != 0 || in kex_compose_ext_info_server()
302 (r = sshbuf_put_cstring(m, in kex_compose_ext_info_server()
304 (r = sshbuf_put_cstring(m, "0")) != 0 || in kex_compose_ext_info_server()
305 (r = sshbuf_put_cstring(m, "ping@openssh.com")) != 0 || in kex_compose_ext_info_server()
306 (r = sshbuf_put_cstring(m, "0")) != 0) { in kex_compose_ext_info_server()
319 (r = sshbuf_put_cstring(m, "ext-info-in-auth@openssh.com")) != 0 || in kex_compose_ext_info_client()
320 (r = sshbuf_put_cstring(m, "0")) != 0) { in kex_compose_ext_info_client()
H A Dsshsig.c182 (r = sshbuf_put_cstring(tosign, sig_namespace)) != 0 || in sshsig_wrap_sign()
184 (r = sshbuf_put_cstring(tosign, hashalg)) != 0 || in sshsig_wrap_sign()
218 (r = sshbuf_put_cstring(blob, sig_namespace)) != 0 || in sshsig_wrap_sign()
220 (r = sshbuf_put_cstring(blob, hashalg)) != 0 || in sshsig_wrap_sign()
327 (r = sshbuf_put_cstring(toverify, expect_namespace)) != 0 || in sshsig_wrap_verify()
329 (r = sshbuf_put_cstring(toverify, hashalg)) != 0 || in sshsig_wrap_verify()
H A Dauth2-pubkey.c206 (r = sshbuf_put_cstring(b, userstyle)) != 0 || in userauth_pubkey()
207 (r = sshbuf_put_cstring(b, authctxt->service)) != 0 || in userauth_pubkey()
208 (r = sshbuf_put_cstring(b, method)) != 0 || in userauth_pubkey()
210 (r = sshbuf_put_cstring(b, pkalg)) != 0 || in userauth_pubkey()
H A Dsshconnect2.c1402 (r = sshbuf_put_cstring(b, authctxt->server_user)) != 0 || in sign_and_send_pubkey()
1403 (r = sshbuf_put_cstring(b, authctxt->service)) != 0 || in sign_and_send_pubkey()
1404 (r = sshbuf_put_cstring(b, method)) != 0 || in sign_and_send_pubkey()
1406 (r = sshbuf_put_cstring(b, alg)) != 0 || in sign_and_send_pubkey()
2204 (r = sshbuf_put_cstring(b, authctxt->server_user)) != 0 || in userauth_hostbased()
2205 (r = sshbuf_put_cstring(b, authctxt->service)) != 0 || in userauth_hostbased()
2206 (r = sshbuf_put_cstring(b, authctxt->method->name)) != 0 || in userauth_hostbased()
2207 (r = sshbuf_put_cstring(b, authctxt->active_ktype)) != 0 || in userauth_hostbased()
2209 (r = sshbuf_put_cstring(b, chost)) != 0 || in userauth_hostbased()
2210 (r = sshbuf_put_cstring( in userauth_hostbased()
[all...]
H A Dssh-ecdsa.c133 if ((r = sshbuf_put_cstring(b, in ssh_ecdsa_generate()
353 if ((ret = sshbuf_put_cstring(b, sshkey_ssh_name_plain(key))) != 0 || in ssh_ecdsa_verify()
H A Dsftp-server.c555 if ((r = sshbuf_put_cstring(msg, errmsg == NULL ? in send_status_errmsg()
557 (r = sshbuf_put_cstring(msg, "")) != 0) in send_status_errmsg()
619 if ((r = sshbuf_put_cstring(msg, stats[i].name)) != 0 || in send_names()
620 (r = sshbuf_put_cstring(msg, stats[i].long_name)) != 0 || in send_names()
691 if ((r = sshbuf_put_cstring(msg, name)) != 0 || in compose_extension()
692 (r = sshbuf_put_cstring(msg, ver)) != 0) in compose_extension()
1716 if ((r = sshbuf_put_cstring(usernames, name)) != 0) in process_extended_get_users_groups_by_id()
1726 if ((r = sshbuf_put_cstring(groupnames, name)) != 0) in process_extended_get_users_groups_by_id()
H A Dmux.c314 (r = sshbuf_put_cstring(reply, msg)) != 0) in reply_error()
1778 (r = sshbuf_put_cstring(m, lhost)) != 0 || in mux_client_forward()
1780 (r = sshbuf_put_cstring(m, chost)) != 0 || in mux_client_forward()
1903 (r = sshbuf_put_cstring(m, term == NULL ? "" : term)) != 0 || in mux_client_request_session()
1912 if ((r = sshbuf_put_cstring(m, environ[i])) != 0) in mux_client_request_session()
1917 if ((r = sshbuf_put_cstring(m, options.setenv[i])) != 0) in mux_client_request_session()
2118 (r = sshbuf_put_cstring(m, options.stdio_forward_host)) != 0 || in mux_client_request_stdio_fwd()
H A Dsshkey.c831 if ((r = sshbuf_put_cstring(b, key->sk_application)) != 0) in sshkey_fingerprint_raw()
864 if ((ret = sshbuf_put_cstring(b, typename)) != 0) in fingerprint_b64()
2282 if ((ret = sshbuf_put_cstring(cert, sshkey_ssh_name(k))) != 0) in sshkey_cert_check_authority()
2298 (ret = sshbuf_put_cstring(cert, k->cert->key_id)) != 0) in sshkey_cert_check_authority()
2306 if ((ret = sshbuf_put_cstring(principals, in sshkey_cert_check_authority()
2497 if ((r = sshbuf_put_cstring(b, key->sk_application)) != 0 || in sshkey_private_deserialize()
2521 if ((r = sshbuf_put_cstring(b, sshkey_ssh_name(key))) != 0) in sshkey_private_deserialize()
2860 (r = sshbuf_put_cstring(encoded, ciphername)) != 0 || in private2_uudecode()
2861 (r = sshbuf_put_cstring(encoded, kdfname)) != 0 || in private2_uudecode()
2879 (r = sshbuf_put_cstring(encrypte in private2_uudecode()
[all...]
H A Dssh-pkcs11-client.c616 (r = sshbuf_put_cstring(msg, name)) != 0 || in pkcs11_del_provider()
617 (r = sshbuf_put_cstring(msg, pin)) != 0) in pkcs11_del_provider()
H A Dssh-ed25519.c178 if ((r = sshbuf_put_cstring(b, "ssh-ed25519")) != 0 || in ssh_ed25519_sign()
H A Dsshkey-xmss.c295 if ((r = sshbuf_put_cstring(b, state->enc_ciphername)) != 0 || in sshkey_xmss_serialize_enc_key()
684 if ((r = sshbuf_put_cstring(b, SSH_XMSS_K2_MAGIC)) != 0 || in sshkey_xmss_serialize_state()
743 (r = sshbuf_put_cstring(b, k->xmss_filename)) != 0) in sshkey_xmss_serialize_state_opt()
H A Dsshbuf.h200 int sshbuf_put_cstring(struct sshbuf *buf, const char *v);
H A Dauth-options.c714 if ((r = sshbuf_put_cstring(b, a[i])) != 0) in serialise_array()
774 (r = sshbuf_put_cstring(m, s)) != 0) in serialise_nullable_string()
H A Dssh-sk.c442 if ((r = sshbuf_put_cstring(attest, "ssh-sk-attest-v01")) != 0 ||
693 if ((r = sshbuf_put_cstring(sig, sshkey_ssh_name_plain(key))) != 0) { in sshsk_sign()
H A Dssh-pkcs11-helper.c138 (r = sshbuf_put_cstring(msg, labels[i])) != 0) in process_add()
/openbsd-src/regress/usr.bin/ssh/unittests/sshkey/
H A Dtest_sshkey.c39 ASSERT_INT_EQ(sshbuf_put_cstring(b, name), 0); in put_opt()
41 ASSERT_INT_EQ(sshbuf_put_cstring(sect, value), 0); in put_opt()
70 ASSERT_INT_EQ(sshbuf_put_cstring(principals, "gsamsa"), 0); in build_cert()
71 ASSERT_INT_EQ(sshbuf_put_cstring(principals, "gregor"), 0); in build_cert()
82 ASSERT_INT_EQ(sshbuf_put_cstring(b, type), 0); in build_cert()
83 ASSERT_INT_EQ(sshbuf_put_cstring(b, "noncenoncenonce!"), 0); /* nonce */ in build_cert()
87 ASSERT_INT_EQ(sshbuf_put_cstring(b, "gregor"), 0); /* key ID */ in build_cert()
/openbsd-src/regress/usr.bin/ssh/unittests/sshbuf/
H A Dtest_sshbuf_fixed.c102 ASSERT_INT_EQ(sshbuf_put_cstring(p1, "hello"), 0); in sshbuf_fixed()

12