Home
last modified time | relevance | path

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

12

/external/openssh/
Dssh-sk-client.c257 (r = sshbuf_put_cstring(req, provider)) != 0 || in sshsk_sign()
259 (r = sshbuf_put_cstring(req, NULL)) != 0 || /* alg */ in sshsk_sign()
261 (r = sshbuf_put_cstring(req, pin)) != 0) { in sshsk_sign()
330 (r = sshbuf_put_cstring(req, provider_path)) != 0 || in sshsk_enroll()
331 (r = sshbuf_put_cstring(req, device)) != 0 || in sshsk_enroll()
332 (r = sshbuf_put_cstring(req, application)) != 0 || in sshsk_enroll()
333 (r = sshbuf_put_cstring(req, userid)) != 0 || in sshsk_enroll()
335 (r = sshbuf_put_cstring(req, pin)) != 0 || in sshsk_enroll()
398 if ((r = sshbuf_put_cstring(req, provider_path)) != 0 || in sshsk_load_resident()
399 (r = sshbuf_put_cstring(req, device)) != 0 || in sshsk_load_resident()
[all …]
Dauth2-hostbased.c134 (r = sshbuf_put_cstring(b, authctxt->user)) != 0 || in userauth_hostbased()
135 (r = sshbuf_put_cstring(b, authctxt->service)) != 0 || in userauth_hostbased()
136 (r = sshbuf_put_cstring(b, "hostbased")) != 0 || in userauth_hostbased()
139 (r = sshbuf_put_cstring(b, chost)) != 0 || in userauth_hostbased()
140 (r = sshbuf_put_cstring(b, cuser)) != 0) in userauth_hostbased()
Dmonitor_wrap.c100 (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()
262 if ((r = sshbuf_put_cstring(m, username)) != 0) in mm_getpwnamallow()
379 if ((r = sshbuf_put_cstring(m, service)) != 0 || in mm_inform_authserv()
380 (r = sshbuf_put_cstring(m, style ? style : "")) != 0) in mm_inform_authserv()
402 if ((r = sshbuf_put_cstring(m, password)) != 0) in mm_auth_password()
458 (r = sshbuf_put_cstring(m, user ? user : "")) != 0 || in mm_key_allowed()
459 (r = sshbuf_put_cstring(m, host ? host : "")) != 0 || in mm_key_allowed()
514 (r = sshbuf_put_cstring(m, sigalg == NULL ? "" : sigalg)) != 0) in mm_sshkey_verify()
624 if ((r = sshbuf_put_cstring(m, s->tty)) != 0) in mm_session_pty_cleanup2()
[all …]
Dauthfd.c203 (r = sshbuf_put_cstring(msg, password)) != 0) in ssh_lock_agent()
462 (r = sshbuf_put_cstring(m, in encode_constraints()
464 (r = sshbuf_put_cstring(m, provider)) != 0) in encode_constraints()
511 (r = sshbuf_put_cstring(msg, comment)) != 0) in ssh_add_identity_constrained()
592 (r = sshbuf_put_cstring(msg, reader_id)) != 0 || in ssh_update_card()
593 (r = sshbuf_put_cstring(msg, pin)) != 0) in ssh_update_card()
Dsftp-server.c531 if ((r = sshbuf_put_cstring(msg, in send_status()
533 (r = sshbuf_put_cstring(msg, "")) != 0) in send_status()
588 if ((r = sshbuf_put_cstring(msg, stats[i].name)) != 0 || in send_names()
589 (r = sshbuf_put_cstring(msg, stats[i].long_name)) != 0 || in send_names()
660 (r = sshbuf_put_cstring(msg, "posix-rename@openssh.com")) != 0 || in process_init()
661 (r = sshbuf_put_cstring(msg, "1")) != 0 || /* version */ in process_init()
663 (r = sshbuf_put_cstring(msg, "statvfs@openssh.com")) != 0 || in process_init()
664 (r = sshbuf_put_cstring(msg, "2")) != 0 || /* version */ in process_init()
666 (r = sshbuf_put_cstring(msg, "fstatvfs@openssh.com")) != 0 || in process_init()
667 (r = sshbuf_put_cstring(msg, "2")) != 0 || /* version */ in process_init()
[all …]
Dsftp-client.c555 (r = sshbuf_put_cstring(msg, path)) != 0) in do_lsreaddir()
904 (r = sshbuf_put_cstring(msg, in do_rename()
912 if ((r = sshbuf_put_cstring(msg, oldpath)) != 0 || in do_rename()
913 (r = sshbuf_put_cstring(msg, newpath)) != 0) in do_rename()
948 (r = sshbuf_put_cstring(msg, "hardlink@openssh.com")) != 0 || in do_hardlink()
949 (r = sshbuf_put_cstring(msg, oldpath)) != 0 || in do_hardlink()
950 (r = sshbuf_put_cstring(msg, newpath)) != 0) in do_hardlink()
984 (r = sshbuf_put_cstring(msg, oldpath)) != 0 || in do_symlink()
985 (r = sshbuf_put_cstring(msg, newpath)) != 0) in do_symlink()
1017 (r = sshbuf_put_cstring(msg, "fsync@openssh.com")) != 0 || in do_fsync()
[all …]
Dssh-pkcs11-client.c332 (r = sshbuf_put_cstring(msg, name)) != 0 || in pkcs11_add_provider()
333 (r = sshbuf_put_cstring(msg, pin)) != 0) in pkcs11_add_provider()
380 (r = sshbuf_put_cstring(msg, name)) != 0 || in pkcs11_del_provider()
381 (r = sshbuf_put_cstring(msg, "")) != 0) in pkcs11_del_provider()
Dmonitor.c659 if ((r = sshbuf_put_cstring(sigbuf, proof_req)) != 0 || in mm_answer_sign()
754 (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 if ((r = sshbuf_put_cstring(m, options.x)) != 0) \ in mm_answer_pwnamallow()
781 if ((r = sshbuf_put_cstring(m, options.x[i])) != 0) \ in mm_answer_pwnamallow()
823 if ((r = sshbuf_put_cstring(m, banner != NULL ? banner : "")) != 0) in mm_answer_auth2_read_banner()
[all …]
Dgss-genr.c269 (r = sshbuf_put_cstring(b, user)) != 0 || in ssh_gssapi_buildmic()
270 (r = sshbuf_put_cstring(b, service)) != 0 || in ssh_gssapi_buildmic()
271 (r = sshbuf_put_cstring(b, context)) != 0) in ssh_gssapi_buildmic()
Dauth-pam.c418 if ((r = sshbuf_put_cstring(buffer, in sshpam_thread_conv()
440 if ((r = sshbuf_put_cstring(buffer, in sshpam_thread_conv()
533 if ((r = sshbuf_put_cstring(buffer, "OK")) != 0) in sshpam_thread()
551 if ((r = sshbuf_put_cstring(buffer, environ[i])) != 0) in sshpam_thread()
564 if ((r = sshbuf_put_cstring(buffer, env_from_pam[i])) != 0) in sshpam_thread()
575 if ((r = sshbuf_put_cstring(buffer, in sshpam_thread()
984 if ((r = sshbuf_put_cstring(buffer, *resp)) != 0) in sshpam_respond()
988 if ((r = sshbuf_put_cstring(buffer, fake)) != 0) in sshpam_respond()
Dsshkey.c841 if ((ret = sshbuf_put_cstring(b, typename)) != 0 || in to_blob_buf()
853 if ((ret = sshbuf_put_cstring(b, typename)) != 0 || in to_blob_buf()
854 (ret = sshbuf_put_cstring(b, in to_blob_buf()
859 if ((ret = sshbuf_put_cstring(b, in to_blob_buf()
869 if ((ret = sshbuf_put_cstring(b, typename)) != 0 || in to_blob_buf()
879 if ((ret = sshbuf_put_cstring(b, typename)) != 0 || in to_blob_buf()
884 if ((ret = sshbuf_put_cstring(b, in to_blob_buf()
894 if ((ret = sshbuf_put_cstring(b, typename)) != 0 || in to_blob_buf()
895 (ret = sshbuf_put_cstring(b, key->xmss_name)) != 0 || in to_blob_buf()
2931 if ((ret = sshbuf_put_cstring(cert, sshkey_ssh_name(k))) != 0) in sshkey_certify_custom()
[all …]
Dsshsig.c173 (r = sshbuf_put_cstring(tosign, sig_namespace)) != 0 || in sshsig_wrap_sign()
175 (r = sshbuf_put_cstring(tosign, hashalg)) != 0 || in sshsig_wrap_sign()
204 (r = sshbuf_put_cstring(blob, sig_namespace)) != 0 || in sshsig_wrap_sign()
206 (r = sshbuf_put_cstring(blob, hashalg)) != 0 || in sshsig_wrap_sign()
313 (r = sshbuf_put_cstring(toverify, expect_namespace)) != 0 || in sshsig_wrap_verify()
315 (r = sshbuf_put_cstring(toverify, hashalg)) != 0 || in sshsig_wrap_verify()
Dsshconnect2.c1345 (r = sshbuf_put_cstring(b, authctxt->server_user)) != 0 || in sign_and_send_pubkey()
1346 (r = sshbuf_put_cstring(b, authctxt->service)) != 0 || in sign_and_send_pubkey()
1347 (r = sshbuf_put_cstring(b, authctxt->method->name)) != 0 || in sign_and_send_pubkey()
1349 (r = sshbuf_put_cstring(b, alg)) != 0 || in sign_and_send_pubkey()
2109 (r = sshbuf_put_cstring(b, authctxt->server_user)) != 0 || in userauth_hostbased()
2110 (r = sshbuf_put_cstring(b, authctxt->service)) != 0 || in userauth_hostbased()
2111 (r = sshbuf_put_cstring(b, authctxt->method->name)) != 0 || in userauth_hostbased()
2112 (r = sshbuf_put_cstring(b, sshkey_ssh_name(private))) != 0 || in userauth_hostbased()
2114 (r = sshbuf_put_cstring(b, chost)) != 0 || in userauth_hostbased()
2115 (r = sshbuf_put_cstring(b, authctxt->local_user)) != 0) { in userauth_hostbased()
Dauth2-pubkey.c201 (r = sshbuf_put_cstring(b, userstyle)) != 0 || in userauth_pubkey()
202 (r = sshbuf_put_cstring(b, authctxt->service)) != 0 || in userauth_pubkey()
203 (r = sshbuf_put_cstring(b, "publickey")) != 0 || in userauth_pubkey()
205 (r = sshbuf_put_cstring(b, pkalg)) != 0 || in userauth_pubkey()
Dssh-ed25519.c69 if ((r = sshbuf_put_cstring(b, "ssh-ed25519")) != 0 || in ssh_ed25519_sign()
Dssh-ecdsa.c90 if ((ret = sshbuf_put_cstring(b, sshkey_ssh_name_plain(key))) != 0 || in ssh_ecdsa_sign()
Dssh-xmss.c77 if ((r = sshbuf_put_cstring(b, "ssh-xmss@openssh.com")) != 0 || in ssh_xmss_sign()
Dssh-dss.c97 if ((ret = sshbuf_put_cstring(b, "ssh-dss")) != 0 || in ssh_dss_sign()
Dmux.c330 (r = sshbuf_put_cstring(reply, msg)) != 0) in reply_error()
1811 (r = sshbuf_put_cstring(m, lhost)) != 0 || in mux_client_forward()
1813 (r = sshbuf_put_cstring(m, chost)) != 0 || in mux_client_forward()
1941 (r = sshbuf_put_cstring(m, term)) != 0 || in mux_client_request_session()
1950 if ((r = sshbuf_put_cstring(m, environ[i])) != 0) in mux_client_request_session()
1955 if ((r = sshbuf_put_cstring(m, options.setenv[i])) != 0) in mux_client_request_session()
2165 (r = sshbuf_put_cstring(m, options.stdio_forward_host)) != 0 || in mux_client_request_stdio_fwd()
Dsshkey-xmss.c299 if ((r = sshbuf_put_cstring(b, state->enc_ciphername)) != 0 || in sshkey_xmss_serialize_enc_key()
689 if ((r = sshbuf_put_cstring(b, SSH_XMSS_K2_MAGIC)) != 0 || in sshkey_xmss_serialize_state()
748 (r = sshbuf_put_cstring(b, k->xmss_filename)) != 0) in sshkey_xmss_serialize_state_opt()
Dssh-sk.c510 if ((r = sshbuf_put_cstring(attest, in sshsk_enroll()
664 if ((r = sshbuf_put_cstring(sig, sshkey_ssh_name_plain(key))) != 0) { in sshsk_sign()
Dsshbuf.h208 int sshbuf_put_cstring(struct sshbuf *buf, const char *v);
Dauth-options.c691 if ((r = sshbuf_put_cstring(b, a[i])) != 0) { in serialise_array()
752 (r = sshbuf_put_cstring(m, s)) != 0) in serialise_nullable_string()
/external/openssh/regress/unittests/sshkey/
Dtest_sshkey.c46 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()
/external/openssh/regress/unittests/sshbuf/
Dtest_sshbuf_fixed.c107 ASSERT_INT_EQ(sshbuf_put_cstring(p1, "hello"), 0); in sshbuf_fixed()

12