| /freebsd-12.1/crypto/openssh/regress/unittests/sshbuf/ |
| H A D | test_sshbuf_misc.c | 66 ASSERT_INT_EQ(sshbuf_put_u8(p1, 0x11), 0); in sshbuf_misc_tests() 77 ASSERT_INT_EQ(sshbuf_put_u8(p1, 0x11), 0); in sshbuf_misc_tests() 78 ASSERT_INT_EQ(sshbuf_put_u8(p1, 0x22), 0); in sshbuf_misc_tests() 89 ASSERT_INT_EQ(sshbuf_put_u8(p1, 0x11), 0); in sshbuf_misc_tests() 90 ASSERT_INT_EQ(sshbuf_put_u8(p1, 0x22), 0); in sshbuf_misc_tests() 91 ASSERT_INT_EQ(sshbuf_put_u8(p1, 0x33), 0); in sshbuf_misc_tests()
|
| H A D | test_sshbuf_getput_crypto.c | 311 ASSERT_INT_EQ(sshbuf_put_u8(p1, 0x00), 0); in sshbuf_getput_crypto_tests() 329 ASSERT_INT_EQ(sshbuf_put_u8(p1, 0x00), 0); in sshbuf_getput_crypto_tests() 386 ASSERT_INT_EQ(sshbuf_put_u8(p1, 0x00), 0); in sshbuf_getput_crypto_tests()
|
| H A D | test_sshbuf_fixed.c | 105 ASSERT_INT_EQ(sshbuf_put_u8(p1, 0x01), 0); in sshbuf_fixed()
|
| /freebsd-12.1/crypto/openssh/ |
| H A D | authfd.c | 188 if ((r = sshbuf_put_u8(msg, type)) != 0 || in ssh_lock_agent() 243 if ((r = sshbuf_put_u8(msg, SSH2_AGENTC_REQUEST_IDENTITIES)) != 0) in ssh_fetch_identitylist() 359 if ((r = sshbuf_put_u8(msg, SSH2_AGENTC_SIGN_REQUEST)) != 0 || in ssh_agent_sign() 401 if ((r = sshbuf_put_u8(m, SSH_AGENT_CONSTRAIN_LIFETIME)) != 0 || in encode_constraints() 406 if ((r = sshbuf_put_u8(m, SSH_AGENT_CONSTRAIN_CONFIRM)) != 0) in encode_constraints() 410 if ((r = sshbuf_put_u8(m, SSH_AGENT_CONSTRAIN_MAXSIGN)) != 0 || in encode_constraints() 450 if ((r = sshbuf_put_u8(msg, type)) != 0 || in ssh_add_identity_constrained() 491 if ((r = sshbuf_put_u8(msg, in ssh_remove_identity() 534 if ((r = sshbuf_put_u8(msg, type)) != 0 || in ssh_update_card() 570 if ((r = sshbuf_put_u8(msg, type)) != 0) in ssh_remove_all_identities()
|
| H A D | ttymodes.c | 303 if ((r = sshbuf_put_u8(buf, TTY_OP_OSPEED)) != 0 || in ssh_tty_make_modes() 305 (r = sshbuf_put_u8(buf, TTY_OP_ISPEED)) != 0 || in ssh_tty_make_modes() 311 if ((r = sshbuf_put_u8(buf, OP)) != 0 || \ in ssh_tty_make_modes() 321 } else if ((r = sshbuf_put_u8(buf, OP)) != 0 || \ in ssh_tty_make_modes() 332 if ((r = sshbuf_put_u8(buf, TTY_OP_END)) != 0 || in ssh_tty_make_modes()
|
| H A D | ssh-pkcs11-helper.c | 125 if ((r = sshbuf_put_u8(msg, in process_add() 144 if ((r = sshbuf_put_u8(msg, SSH_AGENT_FAILURE)) != 0) in process_add() 166 if ((r = sshbuf_put_u8(msg, pkcs11_del_provider(name) == 0 ? in process_del() 211 if ((r = sshbuf_put_u8(msg, SSH2_AGENT_SIGN_RESPONSE)) != 0 || in process_sign() 215 if ((r = sshbuf_put_u8(msg, SSH2_AGENT_FAILURE)) != 0) in process_sign()
|
| H A D | gss-genr.c | 132 (r = sshbuf_put_u8(b, '\n')) != 0) in ssh_gssapi_last_error() 144 (r = sshbuf_put_u8(b, '\n')) != 0) in ssh_gssapi_last_error() 150 if ((r = sshbuf_put_u8(b, '\n')) != 0) in ssh_gssapi_last_error() 268 (r = sshbuf_put_u8(b, SSH2_MSG_USERAUTH_REQUEST)) != 0 || in ssh_gssapi_buildmic()
|
| H A D | auth-options.c | 807 if ((r = sshbuf_put_u8(m, s == NULL)) != 0 || in serialise_nullable_string() 833 if ((r = sshbuf_put_u8(m, opts->permit_port_forwarding_flag)) != 0 || in sshauthopt_serialise() 834 (r = sshbuf_put_u8(m, opts->permit_agent_forwarding_flag)) != 0 || in sshauthopt_serialise() 835 (r = sshbuf_put_u8(m, opts->permit_x11_forwarding_flag)) != 0 || in sshauthopt_serialise() 836 (r = sshbuf_put_u8(m, opts->permit_pty_flag)) != 0 || in sshauthopt_serialise() 837 (r = sshbuf_put_u8(m, opts->permit_user_rc)) != 0 || in sshauthopt_serialise() 838 (r = sshbuf_put_u8(m, opts->restricted)) != 0 || in sshauthopt_serialise() 839 (r = sshbuf_put_u8(m, opts->cert_authority)) != 0 || in sshauthopt_serialise() 844 if ((r = sshbuf_put_u8(m, opts->force_tun_device == -1)) != 0 || in sshauthopt_serialise()
|
| H A D | kexecdh.c | 74 (r = sshbuf_put_u8(b, SSH2_MSG_KEXINIT)) != 0 || in kex_ecdh_hash() 77 (r = sshbuf_put_u8(b, SSH2_MSG_KEXINIT)) != 0 || in kex_ecdh_hash()
|
| H A D | kexdh.c | 70 (r = sshbuf_put_u8(b, SSH2_MSG_KEXINIT)) != 0 || in kex_dh_hash() 73 (r = sshbuf_put_u8(b, SSH2_MSG_KEXINIT)) != 0 || in kex_dh_hash()
|
| H A D | kexgex.c | 73 (r = sshbuf_put_u8(b, SSH2_MSG_KEXINIT)) != 0 || in kexgex_hash() 76 (r = sshbuf_put_u8(b, SSH2_MSG_KEXINIT)) != 0 || in kexgex_hash()
|
| H A D | sftp-client.c | 185 if ((r = sshbuf_put_u8(msg, code)) != 0 || in send_string_request() 203 if ((r = sshbuf_put_u8(msg, code)) != 0 || in send_string_attrs_request() 412 if ((r = sshbuf_put_u8(msg, SSH2_FXP_INIT)) != 0 || in do_init() 511 if ((r = sshbuf_put_u8(msg, SSH2_FXP_CLOSE)) != 0 || in do_close() 546 if ((r = sshbuf_put_u8(msg, SSH2_FXP_OPENDIR)) != 0 || in do_lsreaddir() 571 if ((r = sshbuf_put_u8(msg, SSH2_FXP_READDIR)) != 0 || in do_lsreaddir() 902 if ((r = sshbuf_put_u8(msg, SSH2_FXP_RENAME)) != 0 || in do_rename() 976 if ((r = sshbuf_put_u8(msg, SSH2_FXP_SYMLINK)) != 0 || in do_symlink() 1151 if ((r = sshbuf_put_u8(msg, SSH2_FXP_READ)) != 0 || in send_read_request() 1216 if ((r = sshbuf_put_u8(msg, SSH2_FXP_OPEN)) != 0 || in do_download() [all …]
|
| H A D | ssh-pkcs11-client.c | 135 if ((r = sshbuf_put_u8(msg, SSH2_AGENTC_SIGN_REQUEST)) != 0 || in pkcs11_rsa_private_encrypt() 218 if ((r = sshbuf_put_u8(msg, SSH_AGENTC_ADD_SMARTCARD_KEY)) != 0 || in pkcs11_add_provider() 256 if ((r = sshbuf_put_u8(msg, SSH_AGENTC_REMOVE_SMARTCARD_KEY)) != 0 || in pkcs11_del_provider()
|
| H A D | kexc25519.c | 108 (r = sshbuf_put_u8(b, SSH2_MSG_KEXINIT)) < 0 || in kex_c25519_hash() 111 (r = sshbuf_put_u8(b, SSH2_MSG_KEXINIT)) < 0 || in kex_c25519_hash()
|
| H A D | krl.c | 606 if ((r = sshbuf_put_u8(buf, state)) != 0 || in revoked_certs_generate() 679 if ((r = sshbuf_put_u8(buf, state)) != 0 || in revoked_certs_generate() 693 if ((r = sshbuf_put_u8(buf, KRL_SECTION_CERT_KEY_ID)) != 0 || in revoked_certs_generate() 736 if ((r = sshbuf_put_u8(buf, KRL_SECTION_CERTIFICATES)) != 0 || in ssh_krl_to_blob() 749 if ((r = sshbuf_put_u8(buf, KRL_SECTION_EXPLICIT_KEY)) != 0 || in ssh_krl_to_blob() 760 if ((r = sshbuf_put_u8(buf, in ssh_krl_to_blob() 769 if ((r = sshbuf_put_u8(buf, KRL_SECTION_SIGNATURE)) != 0 || in ssh_krl_to_blob()
|
| H A D | ssh-agent.c | 249 (r = sshbuf_put_u8(e->output, success ? in send_status() 264 if ((r = sshbuf_put_u8(msg, SSH2_AGENT_IDENTITIES_ANSWER)) != 0 || in process_request_identities() 334 if ((r = sshbuf_put_u8(msg, SSH2_AGENT_SIGN_RESPONSE)) != 0 || in process_sign_request2() 337 } else if ((r = sshbuf_put_u8(msg, SSH_AGENT_FAILURE)) != 0) in process_sign_request2() 561 if ((r = sshbuf_put_u8(msg, SSH2_AGENT_IDENTITIES_ANSWER)) != 0 || in no_identities()
|
| H A D | misc.c | 1698 r = sshbuf_put_u8(arg, c); in argv_assemble() 1703 if ((r = sshbuf_put_u8(arg, '\\')) != 0) in argv_assemble() 1707 r = sshbuf_put_u8(arg, c); in argv_assemble() 1714 if ((i != 0 && (r = sshbuf_put_u8(buf, ' ')) != 0) || in argv_assemble() 1715 (ws != 0 && (r = sshbuf_put_u8(buf, '"')) != 0) || in argv_assemble() 1717 (ws != 0 && (r = sshbuf_put_u8(buf, '"')) != 0)) in argv_assemble()
|
| H A D | auth2.c | 804 if ((r = sshbuf_put_u8(authctxt->session_info, ' ')) != 0 || in auth2_update_session_info() 814 if ((r = sshbuf_put_u8(authctxt->session_info, ' ')) != 0 || in auth2_update_session_info() 821 if ((r = sshbuf_put_u8(authctxt->session_info, '\n')) != 0) in auth2_update_session_info()
|
| H A D | sftp-server.c | 522 if ((r = sshbuf_put_u8(msg, SSH2_FXP_STATUS)) != 0 || in send_status() 543 if ((r = sshbuf_put_u8(msg, type)) != 0 || in send_data_or_handle() 578 if ((r = sshbuf_put_u8(msg, SSH2_FXP_NAME)) != 0 || in send_names() 602 if ((r = sshbuf_put_u8(msg, SSH2_FXP_ATTRS)) != 0 || in send_attrib() 622 if ((r = sshbuf_put_u8(msg, SSH2_FXP_EXTENDED_REPLY)) != 0 || in send_statvfs() 653 if ((r = sshbuf_put_u8(msg, SSH2_FXP_VERSION)) != 0 || in process_init()
|
| H A D | sshkey-xmss.c | 336 if ((r = sshbuf_put_u8(b, have_info)) != 0 || in sshkey_xmss_serialize_pk_info() 706 (r = sshbuf_put_u8(b, th->completed)) != 0 || in sshkey_xmss_serialize_state() 722 if ((r = sshbuf_put_u8(b, opts)) != 0) in sshkey_xmss_serialize_state_opt() 883 if ((r = sshbuf_put_u8(padded, ++i & 0xff)) != 0) in sshkey_xmss_encrypt_state()
|
| H A D | monitor.c | 597 if ((r = sshbuf_put_u8(m, 0)) != 0) in mm_answer_moduli() 603 if ((r = sshbuf_put_u8(m, 1)) != 0 || in mm_answer_moduli() 736 if (r = sshbuf_put_u8(m, 0) != 0) in mm_answer_login_getpwclass() 741 if ((r = sshbuf_put_u8(m, 1)) != 0 || in mm_answer_login_getpwclass() 786 if ((r = sshbuf_put_u8(m, 0)) != 0) in mm_answer_pwnamallow() 796 if ((r = sshbuf_put_u8(m, 1)) != 0 || in mm_answer_pwnamallow()
|
| H A D | auth2-hostbased.c | 125 (r = sshbuf_put_u8(b, SSH2_MSG_USERAUTH_REQUEST)) != 0 || in userauth_hostbased()
|
| H A D | clientloop.c | 1093 if ((r = sshbuf_put_u8(bin, 4)) != 0) in process_escapes() 1123 if ((r = sshbuf_put_u8(bin, in process_escapes() 1152 if ((r = sshbuf_put_u8(bin, ch)) != 0) in process_escapes() 1500 if ((r = sshbuf_put_u8(b, 0)) != 0 || /* padlen */ in client_request_forwarded_tcpip() 1501 (r = sshbuf_put_u8(b, SSH2_MSG_CHANNEL_OPEN)) != 0 || in client_request_forwarded_tcpip()
|
| H A D | sshbuf.h | 177 int sshbuf_put_u8(struct sshbuf *buf, u_char val);
|
| /freebsd-12.1/crypto/openssh/regress/unittests/sshkey/ |
| H A D | common.c | 69 ASSERT_INT_EQ(sshbuf_put_u8(ret, 0), 0); in load_text_file()
|