crypto/openssh/auth-options.c
717
if ((r = sshbuf_put_cstring(b, a[i])) != 0)
crypto/openssh/auth-options.c
777
(r = sshbuf_put_cstring(m, s)) != 0)
crypto/openssh/auth-pam.c
404
if ((r = sshbuf_put_cstring(buffer,
crypto/openssh/auth-pam.c
429
if ((r = sshbuf_put_cstring(buffer,
crypto/openssh/auth-pam.c
552
if ((r = sshbuf_put_cstring(buffer, "OK")) != 0)
crypto/openssh/auth-pam.c
570
if ((r = sshbuf_put_cstring(buffer, environ[i])) != 0)
crypto/openssh/auth-pam.c
583
if ((r = sshbuf_put_cstring(buffer, env_from_pam[i])) != 0)
crypto/openssh/auth-pam.c
594
if ((r = sshbuf_put_cstring(buffer,
crypto/openssh/auth-pam.c
990
if ((r = sshbuf_put_cstring(buffer, *resp)) != 0)
crypto/openssh/auth-pam.c
994
if ((r = sshbuf_put_cstring(buffer, fake)) != 0)
crypto/openssh/auth.c
605
if ((r = sshbuf_put_cstring(auth_debug, buf)) != 0)
crypto/openssh/auth2-hostbased.c
133
(r = sshbuf_put_cstring(b, authctxt->user)) != 0 ||
crypto/openssh/auth2-hostbased.c
134
(r = sshbuf_put_cstring(b, authctxt->service)) != 0 ||
crypto/openssh/auth2-hostbased.c
135
(r = sshbuf_put_cstring(b, method)) != 0 ||
crypto/openssh/auth2-hostbased.c
138
(r = sshbuf_put_cstring(b, chost)) != 0 ||
crypto/openssh/auth2-hostbased.c
139
(r = sshbuf_put_cstring(b, cuser)) != 0)
crypto/openssh/auth2-pubkey.c
208
(r = sshbuf_put_cstring(b, userstyle)) != 0 ||
crypto/openssh/auth2-pubkey.c
209
(r = sshbuf_put_cstring(b, authctxt->service)) != 0 ||
crypto/openssh/auth2-pubkey.c
210
(r = sshbuf_put_cstring(b, method)) != 0 ||
crypto/openssh/auth2-pubkey.c
212
(r = sshbuf_put_cstring(b, pkalg)) != 0 ||
crypto/openssh/authfd.c
223
(r = sshbuf_put_cstring(msg, password)) != 0 ||
crypto/openssh/authfd.c
473
if ((r = sshbuf_put_cstring(b, dch->user)) != 0 ||
crypto/openssh/authfd.c
474
(r = sshbuf_put_cstring(b, dch->hostname)) != 0 ||
crypto/openssh/authfd.c
534
(r = sshbuf_put_cstring(m,
crypto/openssh/authfd.c
536
(r = sshbuf_put_cstring(m, provider)) != 0)
crypto/openssh/authfd.c
551
(r = sshbuf_put_cstring(m,
crypto/openssh/authfd.c
569
(r = sshbuf_put_cstring(m,
crypto/openssh/authfd.c
620
(r = sshbuf_put_cstring(msg, comment)) != 0)
crypto/openssh/authfd.c
701
(r = sshbuf_put_cstring(msg, reader_id)) != 0 ||
crypto/openssh/authfd.c
702
(r = sshbuf_put_cstring(msg, pin)) != 0)
crypto/openssh/authfd.c
762
(r = sshbuf_put_cstring(msg, "session-bind@openssh.com")) != 0 ||
crypto/openssh/authfd.c
791
(r = sshbuf_put_cstring(msg, "query")) != 0)
crypto/openssh/channels.c
3267
if ((r = sshbuf_put_cstring(modified, ctype)) != 0 ||
crypto/openssh/clientloop.c
1758
(r = sshbuf_put_cstring(b, request_type)) != 0 ||
crypto/openssh/clientloop.c
1762
(r = sshbuf_put_cstring(b, listen_address)) != 0 ||
crypto/openssh/clientloop.c
1764
(r = sshbuf_put_cstring(b, originator_address)) != 0 ||
crypto/openssh/clientloop.c
2399
if ( (r = sshbuf_put_cstring(signdata,
crypto/openssh/gss-genr.c
267
(r = sshbuf_put_cstring(b, user)) != 0 ||
crypto/openssh/gss-genr.c
268
(r = sshbuf_put_cstring(b, service)) != 0 ||
crypto/openssh/gss-genr.c
269
(r = sshbuf_put_cstring(b, context)) != 0)
crypto/openssh/kex.c
162
if ((r = sshbuf_put_cstring(b, proposal[i])) != 0)
crypto/openssh/kex.c
301
(r = sshbuf_put_cstring(m, "server-sig-algs")) != 0 ||
crypto/openssh/kex.c
302
(r = sshbuf_put_cstring(m, ssh->kex->server_sig_algs)) != 0 ||
crypto/openssh/kex.c
303
(r = sshbuf_put_cstring(m,
crypto/openssh/kex.c
305
(r = sshbuf_put_cstring(m, "0")) != 0 ||
crypto/openssh/kex.c
306
(r = sshbuf_put_cstring(m, "ping@openssh.com")) != 0 ||
crypto/openssh/kex.c
307
(r = sshbuf_put_cstring(m, "0")) != 0 ||
crypto/openssh/kex.c
308
(r = sshbuf_put_cstring(m, "agent-forward")) != 0 ||
crypto/openssh/kex.c
309
(r = sshbuf_put_cstring(m, "0")) != 0) {
crypto/openssh/kex.c
322
(r = sshbuf_put_cstring(m, "ext-info-in-auth@openssh.com")) != 0 ||
crypto/openssh/kex.c
323
(r = sshbuf_put_cstring(m, "0")) != 0) {
crypto/openssh/krl.c
716
if ((r = sshbuf_put_cstring(sect, rki->key_id)) != 0)
crypto/openssh/krl.c
753
(r = sshbuf_put_cstring(buf, krl->comment)) != 0)
crypto/openssh/monitor.c
1063
if ((r = sshbuf_put_cstring(m, prompts[0])) != 0)
crypto/openssh/monitor.c
1198
(r = sshbuf_put_cstring(m, name)) != 0 ||
crypto/openssh/monitor.c
1199
(r = sshbuf_put_cstring(m, info)) != 0 ||
crypto/openssh/monitor.c
1206
if ((r = sshbuf_put_cstring(m, prompts[i])) != 0 ||
crypto/openssh/monitor.c
1698
(r = sshbuf_put_cstring(m, s->tty)) != 0)
crypto/openssh/monitor.c
769
if ((r = sshbuf_put_cstring(sigbuf, proof_req)) != 0 ||
crypto/openssh/monitor.c
890
if ((r = sshbuf_put_cstring(m, pwent->pw_name)) != 0 ||
crypto/openssh/monitor.c
891
(r = sshbuf_put_cstring(m, "*")) != 0 ||
crypto/openssh/monitor.c
893
(r = sshbuf_put_cstring(m, pwent->pw_gecos)) != 0 ||
crypto/openssh/monitor.c
896
(r = sshbuf_put_cstring(m, pwent->pw_class)) != 0 ||
crypto/openssh/monitor.c
898
(r = sshbuf_put_cstring(m, pwent->pw_dir)) != 0 ||
crypto/openssh/monitor.c
899
(r = sshbuf_put_cstring(m, pwent->pw_shell)) != 0)
crypto/openssh/monitor.c
950
if ((r = sshbuf_put_cstring(m, banner != NULL ? banner : "")) != 0)
crypto/openssh/monitor_wrap.c
1003
if ((r = sshbuf_put_cstring(m, command)) != 0)
crypto/openssh/monitor_wrap.c
103
(r = sshbuf_put_cstring(log_msg, msg)) != 0)
crypto/openssh/monitor_wrap.c
285
(r = sshbuf_put_cstring(m, hostkey_alg)) != 0 ||
crypto/openssh/monitor_wrap.c
344
if ((r = sshbuf_put_cstring(m, username)) != 0)
crypto/openssh/monitor_wrap.c
432
if ((r = sshbuf_put_cstring(m, service)) != 0 ||
crypto/openssh/monitor_wrap.c
433
(r = sshbuf_put_cstring(m, style ? style : "")) != 0)
crypto/openssh/monitor_wrap.c
455
if ((r = sshbuf_put_cstring(m, password)) != 0)
crypto/openssh/monitor_wrap.c
510
(r = sshbuf_put_cstring(m, user ? user : "")) != 0 ||
crypto/openssh/monitor_wrap.c
511
(r = sshbuf_put_cstring(m, host ? host : "")) != 0 ||
crypto/openssh/monitor_wrap.c
564
(r = sshbuf_put_cstring(m, sigalg == NULL ? "" : sigalg)) != 0)
crypto/openssh/monitor_wrap.c
671
if ((r = sshbuf_put_cstring(m, s->tty)) != 0)
crypto/openssh/monitor_wrap.c
806
if ((r = sshbuf_put_cstring(m, resp[i])) != 0)
crypto/openssh/monitor_wrap.c
961
if ((r = sshbuf_put_cstring(m, responses[0])) != 0)
crypto/openssh/mux.c
1217
if ((r = sshbuf_put_cstring(out, "info")) != 0 ||
crypto/openssh/mux.c
1218
(r = sshbuf_put_cstring(out, "0")) != 0)
crypto/openssh/mux.c
1771
(r = sshbuf_put_cstring(m, name)) != 0)
crypto/openssh/mux.c
1899
(r = sshbuf_put_cstring(m, lhost)) != 0 ||
crypto/openssh/mux.c
1901
(r = sshbuf_put_cstring(m, chost)) != 0 ||
crypto/openssh/mux.c
2024
(r = sshbuf_put_cstring(m, term == NULL ? "" : term)) != 0 ||
crypto/openssh/mux.c
2033
if ((r = sshbuf_put_cstring(m, environ[i])) != 0)
crypto/openssh/mux.c
2038
if ((r = sshbuf_put_cstring(m, options.setenv[i])) != 0)
crypto/openssh/mux.c
2240
(r = sshbuf_put_cstring(m, options.stdio_forward_host)) != 0 ||
crypto/openssh/mux.c
323
(r = sshbuf_put_cstring(reply, msg)) != 0)
crypto/openssh/mux.c
533
(r = sshbuf_put_cstring(reply, msg)) != 0)
crypto/openssh/packet.c
2424
(r = sshbuf_put_cstring(m, kex->hostkey_alg)) != 0 ||
crypto/openssh/packet.c
2462
if ((r = sshbuf_put_cstring(b, enc->name)) != 0 ||
crypto/openssh/packet.c
2469
if ((r = sshbuf_put_cstring(b, mac->name)) != 0 ||
crypto/openssh/packet.c
2475
(r = sshbuf_put_cstring(b, comp->name)) != 0)
crypto/openssh/packet.c
2736
return sshbuf_put_cstring(ssh->state->outgoing_packet, v);
crypto/openssh/regress/unittests/sshbuf/test_sshbuf_fixed.c
104
ASSERT_INT_EQ(sshbuf_put_cstring(p1, "hello"), 0);
crypto/openssh/regress/unittests/sshkey/test_sshkey.c
46
ASSERT_INT_EQ(sshbuf_put_cstring(b, name), 0);
crypto/openssh/regress/unittests/sshkey/test_sshkey.c
48
ASSERT_INT_EQ(sshbuf_put_cstring(sect, value), 0);
crypto/openssh/regress/unittests/sshkey/test_sshkey.c
78
ASSERT_INT_EQ(sshbuf_put_cstring(principals, "gsamsa"), 0);
crypto/openssh/regress/unittests/sshkey/test_sshkey.c
79
ASSERT_INT_EQ(sshbuf_put_cstring(principals, "gregor"), 0);
crypto/openssh/regress/unittests/sshkey/test_sshkey.c
90
ASSERT_INT_EQ(sshbuf_put_cstring(b, type), 0);
crypto/openssh/regress/unittests/sshkey/test_sshkey.c
91
ASSERT_INT_EQ(sshbuf_put_cstring(b, "noncenoncenonce!"), 0); /* nonce */
crypto/openssh/regress/unittests/sshkey/test_sshkey.c
95
ASSERT_INT_EQ(sshbuf_put_cstring(b, "gregor"), 0); /* key ID */
crypto/openssh/servconf.c
2797
return sshbuf_put_cstring(buf, s);
crypto/openssh/servconf.c
2866
if ((r = sshbuf_put_cstring(buf, qla->addr)) != 0 ||
crypto/openssh/servconf.c
3054
if ((r = sshbuf_put_cstring(buf,
crypto/openssh/servconf.c
3056
(r = sshbuf_put_cstring(buf,
crypto/openssh/servconf.c
3058
(r = sshbuf_put_cstring(buf,
crypto/openssh/serverloop.c
730
if ((r = sshbuf_put_cstring(sigbuf,
crypto/openssh/sftp-client.c
1012
(r = sshbuf_put_cstring(msg,
crypto/openssh/sftp-client.c
1014
(r = sshbuf_put_cstring(msg, path)) != 0)
crypto/openssh/sftp-client.c
1134
(r = sshbuf_put_cstring(msg, oldpath)) != 0 ||
crypto/openssh/sftp-client.c
1154
(r = sshbuf_put_cstring(msg, newpath)) != 0 ||
crypto/openssh/sftp-client.c
1176
(r = sshbuf_put_cstring(msg, "copy-data")) != 0 ||
crypto/openssh/sftp-client.c
1220
(r = sshbuf_put_cstring(msg,
crypto/openssh/sftp-client.c
1230
if ((r = sshbuf_put_cstring(msg, oldpath)) != 0 ||
crypto/openssh/sftp-client.c
1231
(r = sshbuf_put_cstring(msg, newpath)) != 0)
crypto/openssh/sftp-client.c
1268
(r = sshbuf_put_cstring(msg, "hardlink@openssh.com")) != 0 ||
crypto/openssh/sftp-client.c
1269
(r = sshbuf_put_cstring(msg, oldpath)) != 0 ||
crypto/openssh/sftp-client.c
1270
(r = sshbuf_put_cstring(msg, newpath)) != 0)
crypto/openssh/sftp-client.c
1305
(r = sshbuf_put_cstring(msg, oldpath)) != 0 ||
crypto/openssh/sftp-client.c
1306
(r = sshbuf_put_cstring(msg, newpath)) != 0)
crypto/openssh/sftp-client.c
1339
(r = sshbuf_put_cstring(msg, "fsync@openssh.com")) != 0 ||
crypto/openssh/sftp-client.c
1433
(r = sshbuf_put_cstring(msg, "statvfs@openssh.com")) != 0 ||
crypto/openssh/sftp-client.c
1434
(r = sshbuf_put_cstring(msg, path)) != 0)
crypto/openssh/sftp-client.c
1463
(r = sshbuf_put_cstring(msg, "fstatvfs@openssh.com")) != 0 ||
crypto/openssh/sftp-client.c
1492
(r = sshbuf_put_cstring(msg, "lsetstat@openssh.com")) != 0 ||
crypto/openssh/sftp-client.c
1493
(r = sshbuf_put_cstring(msg, path)) != 0 ||
crypto/openssh/sftp-client.c
1551
(r = sshbuf_put_cstring(msg, path)) != 0 ||
crypto/openssh/sftp-client.c
2882
(r = sshbuf_put_cstring(msg,
crypto/openssh/sftp-client.c
624
(r = sshbuf_put_cstring(msg, "limits@openssh.com")) != 0)
crypto/openssh/sftp-client.c
707
(r = sshbuf_put_cstring(msg, path)) != 0)
crypto/openssh/sftp-server.c
1766
if ((r = sshbuf_put_cstring(usernames, name)) != 0)
crypto/openssh/sftp-server.c
1776
if ((r = sshbuf_put_cstring(groupnames, name)) != 0)
crypto/openssh/sftp-server.c
557
if ((r = sshbuf_put_cstring(msg, errmsg == NULL ?
crypto/openssh/sftp-server.c
559
(r = sshbuf_put_cstring(msg, "")) != 0)
crypto/openssh/sftp-server.c
621
if ((r = sshbuf_put_cstring(msg, stats[i].name)) != 0 ||
crypto/openssh/sftp-server.c
622
(r = sshbuf_put_cstring(msg, stats[i].long_name)) != 0 ||
crypto/openssh/sftp-server.c
693
if ((r = sshbuf_put_cstring(msg, name)) != 0 ||
crypto/openssh/sftp-server.c
694
(r = sshbuf_put_cstring(msg, ver)) != 0)
crypto/openssh/ssh-agent.c
1800
(r = sshbuf_put_cstring(msg, "query")) != 0 ||
crypto/openssh/ssh-agent.c
1802
(r = sshbuf_put_cstring(msg, "session-bind@openssh.com")) != 0)
crypto/openssh/ssh-agent.c
665
(r = sshbuf_put_cstring(keys, id->comment)) != 0) {
crypto/openssh/ssh-ecdsa.c
141
if ((r = sshbuf_put_cstring(b,
crypto/openssh/ssh-ecdsa.c
386
if ((ret = sshbuf_put_cstring(b, sshkey_ssh_name_plain(key))) != 0 ||
crypto/openssh/ssh-ed25519.c
206
if ((r = sshbuf_put_cstring(b, "ssh-ed25519")) != 0 ||
crypto/openssh/ssh-keygen.c
1632
if ((r = sshbuf_put_cstring(c, ext->key)) != 0 ||
crypto/openssh/ssh-keygen.c
1639
if ((r = sshbuf_put_cstring(c, ext->key)) != 0 ||
crypto/openssh/ssh-keygen.c
1640
(r = sshbuf_put_cstring(b, ext->val)) != 0 ||
crypto/openssh/ssh-mldsa-eddsa.c
400
if ((r = sshbuf_put_cstring(b, SSH_MLDSA44_ED25519_ALG_NAME)) != 0 ||
crypto/openssh/ssh-pkcs11-client.c
253
(r = sshbuf_put_cstring(msg, alg == NULL ? "" : alg)) != 0 ||
crypto/openssh/ssh-pkcs11-client.c
402
(r = sshbuf_put_cstring(msg, name)) != 0 ||
crypto/openssh/ssh-pkcs11-client.c
403
(r = sshbuf_put_cstring(msg, pin)) != 0)
crypto/openssh/ssh-pkcs11-helper.c
85
(r = sshbuf_put_cstring(msg, labels[i])) != 0)
crypto/openssh/ssh-rsa.c
471
if ((ret = sshbuf_put_cstring(b,
crypto/openssh/ssh-sk-client.c
273
(r = sshbuf_put_cstring(req, provider)) != 0 ||
crypto/openssh/ssh-sk-client.c
275
(r = sshbuf_put_cstring(req, NULL)) != 0 || /* alg */
crypto/openssh/ssh-sk-client.c
277
(r = sshbuf_put_cstring(req, pin)) != 0) {
crypto/openssh/ssh-sk-client.c
340
(r = sshbuf_put_cstring(req, provider_path)) != 0 ||
crypto/openssh/ssh-sk-client.c
341
(r = sshbuf_put_cstring(req, device)) != 0 ||
crypto/openssh/ssh-sk-client.c
342
(r = sshbuf_put_cstring(req, application)) != 0 ||
crypto/openssh/ssh-sk-client.c
343
(r = sshbuf_put_cstring(req, userid)) != 0 ||
crypto/openssh/ssh-sk-client.c
345
(r = sshbuf_put_cstring(req, pin)) != 0 ||
crypto/openssh/ssh-sk-client.c
434
if ((r = sshbuf_put_cstring(req, provider_path)) != 0 ||
crypto/openssh/ssh-sk-client.c
435
(r = sshbuf_put_cstring(req, device)) != 0 ||
crypto/openssh/ssh-sk-client.c
436
(r = sshbuf_put_cstring(req, pin)) != 0 ||
crypto/openssh/ssh-sk-helper.c
274
(r = sshbuf_put_cstring(resp, "")) != 0 || /* comment */
crypto/openssh/ssh-sk.c
459
if ((r = sshbuf_put_cstring(attest, "ssh-sk-attest-v01")) != 0 ||
crypto/openssh/ssh-sk.c
710
if ((r = sshbuf_put_cstring(sig, sshkey_ssh_name_plain(key))) != 0) {
crypto/openssh/sshbuf.h
215
int sshbuf_put_cstring(struct sshbuf *buf, const char *v);
crypto/openssh/sshconnect2.c
1419
(r = sshbuf_put_cstring(b, authctxt->server_user)) != 0 ||
crypto/openssh/sshconnect2.c
1420
(r = sshbuf_put_cstring(b, authctxt->service)) != 0 ||
crypto/openssh/sshconnect2.c
1421
(r = sshbuf_put_cstring(b, method)) != 0 ||
crypto/openssh/sshconnect2.c
1423
(r = sshbuf_put_cstring(b, alg)) != 0 ||
crypto/openssh/sshconnect2.c
2230
(r = sshbuf_put_cstring(b, authctxt->server_user)) != 0 ||
crypto/openssh/sshconnect2.c
2231
(r = sshbuf_put_cstring(b, authctxt->service)) != 0 ||
crypto/openssh/sshconnect2.c
2232
(r = sshbuf_put_cstring(b, authctxt->method->name)) != 0 ||
crypto/openssh/sshconnect2.c
2233
(r = sshbuf_put_cstring(b, authctxt->active_ktype)) != 0 ||
crypto/openssh/sshconnect2.c
2235
(r = sshbuf_put_cstring(b, chost)) != 0 ||
crypto/openssh/sshconnect2.c
2236
(r = sshbuf_put_cstring(b, authctxt->local_user)) != 0) {
crypto/openssh/sshd.c
747
if ((r = sshbuf_put_cstring(inc, item->selector)) != 0 ||
crypto/openssh/sshd.c
748
(r = sshbuf_put_cstring(inc, item->filename)) != 0 ||
crypto/openssh/sshkey.c
2326
if ((ret = sshbuf_put_cstring(cert, sshkey_ssh_name(k))) != 0)
crypto/openssh/sshkey.c
2342
(ret = sshbuf_put_cstring(cert, k->cert->key_id)) != 0)
crypto/openssh/sshkey.c
2350
if ((ret = sshbuf_put_cstring(principals,
crypto/openssh/sshkey.c
2538
if ((r = sshbuf_put_cstring(b, key->sk_application)) != 0 ||
crypto/openssh/sshkey.c
2562
if ((r = sshbuf_put_cstring(b, sshkey_ssh_name(key))) != 0)
crypto/openssh/sshkey.c
2892
(r = sshbuf_put_cstring(encoded, ciphername)) != 0 ||
crypto/openssh/sshkey.c
2893
(r = sshbuf_put_cstring(encoded, kdfname)) != 0 ||
crypto/openssh/sshkey.c
2910
(r = sshbuf_put_cstring(encrypted, comment)) != 0)
crypto/openssh/sshkey.c
867
if ((r = sshbuf_put_cstring(b, key->sk_application)) != 0)
crypto/openssh/sshkey.c
900
if ((ret = sshbuf_put_cstring(b, typename)) != 0)
crypto/openssh/sshsig.c
184
(r = sshbuf_put_cstring(tosign, sig_namespace)) != 0 ||
crypto/openssh/sshsig.c
186
(r = sshbuf_put_cstring(tosign, hashalg)) != 0 ||
crypto/openssh/sshsig.c
220
(r = sshbuf_put_cstring(blob, sig_namespace)) != 0 ||
crypto/openssh/sshsig.c
222
(r = sshbuf_put_cstring(blob, hashalg)) != 0 ||
crypto/openssh/sshsig.c
329
(r = sshbuf_put_cstring(toverify, expect_namespace)) != 0 ||
crypto/openssh/sshsig.c
331
(r = sshbuf_put_cstring(toverify, hashalg)) != 0 ||