Home
last modified time | relevance | path

Searched refs:CBB_add_u16 (Results 1 – 22 of 22) sorted by relevance

/openbsd/lib/libssl/
H A Dssl_packet.c181 if (!CBB_add_u16(&cbb, 0x0301)) in ssl_convert_sslv2_client_hello()
189 if (!CBB_add_u16(&client_hello, client_version)) in ssl_convert_sslv2_client_hello()
202 if (!CBB_add_u16(&cipher_suites, cipher_spec & 0xffff)) in ssl_convert_sslv2_client_hello()
H A Dssl_ciphers.c75 if (!CBB_add_u16(cbb, ssl3_cipher_get_value(cipher))) in ssl_cipher_list_to_bytes()
83 if (!CBB_add_u16(cbb, SSL3_CK_SCSV & SSL3_CK_VALUE_MASK)) in ssl_cipher_list_to_bytes()
H A Dssl_tlsext.c220 if (!CBB_add_u16(&grouplist, groups[i])) in tlsext_supportedgroups_client_build()
1268 if (!CBB_add_u16(&profiles, prof->id)) in tlsext_srtp_client_build()
1374 if (!CBB_add_u16(&srtp, profile->id)) in tlsext_srtp_server_build()
1453 if (!CBB_add_u16(&client_shares, in tlsext_keyshare_client_build()
1644 return CBB_add_u16(cbb, s->s3->hs.tls13.server_group); in tlsext_keyshare_server_build()
1650 if (!CBB_add_u16(cbb, tls_key_share_group(s->s3->hs.key_share))) in tlsext_keyshare_server_build()
1728 if (!CBB_add_u16(&versions, version)) in tlsext_versions_client_build()
1782 return CBB_add_u16(cbb, TLS1_3_VERSION); in tlsext_versions_server_build()
2507 if (!CBB_add_u16(&extensions, tlsext->type)) in tlsext_build()
H A Dtls12_record_layer.c610 if (!CBB_add_u16(cbb, epoch)) in tls12_record_layer_build_seq_num()
637 if (!CBB_add_u16(&cbb, rl->version)) in tls12_record_layer_pseudo_header()
639 if (!CBB_add_u16(&cbb, record_len)) in tls12_record_layer_pseudo_header()
1273 if (!CBB_add_u16(cbb, rl->version)) in tls12_record_layer_seal_record()
H A Dbytestring.h495 int CBB_add_u16(CBB *cbb, size_t value);
H A Dtls13_server.c346 if (!CBB_add_u16(cbb, TLS1_2_VERSION)) in tls13_server_hello_build()
355 if (!CBB_add_u16(cbb, cipher)) in tls13_server_hello_build()
764 if (!CBB_add_u16(cbb, sigalg->value)) in tls13_server_certificate_verify_send()
H A Dtls13_record_layer.c659 if (!CBB_add_u16(&cbb, rl->legacy_version)) in tls13_record_layer_seal_record_plaintext()
725 if (!CBB_add_u16(&cbb, TLS1_2_VERSION)) in tls13_record_layer_seal_record_protected()
727 if (!CBB_add_u16(&cbb, enc_record_len)) in tls13_record_layer_seal_record_protected()
H A Dssl_sigalgs.c242 if (!CBB_add_u16(cbb, values[i])) in ssl_sigalgs_build()
H A Dssl_srvr.c1187 if (!CBB_add_u16(&verify, DTLS1_VERSION)) in ssl3_send_dtls_hello_verify_request()
1221 if (!CBB_add_u16(&server_hello, s->version)) in ssl3_send_server_hello()
1260 if (!CBB_add_u16(&server_hello, in ssl3_send_server_hello()
1395 if (!CBB_add_u16(cbb, tls_key_share_group(s->s3->hs.key_share))) in ssl3_send_server_kex_ecdhe()
1489 if (!CBB_add_u16(&server_kex, sigalg->value)) { in ssl3_send_server_key_exchange()
H A Dssl_seclevel.c457 if (!CBB_add_u16(&cbb, group_id)) in ssl_security_group()
H A Dbs_cbb.c394 CBB_add_u16(CBB *cbb, size_t value) in CBB_add_u16() function
H A Dssl_asn1.c79 if (!CBB_add_u16(&cipher_suite, cid)) in SSL_SESSION_encode()
H A Dtls13_client.c98 if (!CBB_add_u16(cbb, client_version)) in tls13_client_hello_build()
962 if (!CBB_add_u16(cbb, sigalg->value)) in tls13_client_certificate_verify_send()
H A Dtls13_legacy.c340 if (!CBB_add_u16(&cbb, TLS1_2_VERSION)) in tls13_use_legacy_stack()
H A Dtls13_key_schedule.c184 if (!CBB_add_u16(&cbb, out->len)) in tls13_hkdf_expand_label_with_length()
H A Dssl_clnt.c680 if (!CBB_add_u16(&client_hello, s->version)) in ssl3_send_client_hello()
2009 if (!CBB_add_u16(cert_verify, sigalg->value)) in ssl3_send_client_verify_sigalgs()
H A Dd1_both.c1133 if (!CBB_add_u16(&cbb, msg_hdr->seq)) in dtls1_write_message_header()
/openbsd/regress/lib/libssl/bytestring/
H A Dbytestringtest.c333 CHECK_GOTO(CBB_add_u16(&cbb, 0x203)); in test_cbb_basic()
363 CHECK_GOTO(CBB_add_u16(&cbb, 0x102)); in test_cbb_add_space()
365 CHECK_GOTO(CBB_add_u16(&cbb, 0x708)); in test_cbb_add_space()
374 CHECK_GOTO(CBB_add_u16(&cbb, 0x102)); in test_cbb_add_space()
376 CHECK_GOTO(CBB_add_u16(&cbb, 0x708)); in test_cbb_add_space()
454 CHECK_GOTO(CBB_add_u16(&contents, 0x203)); in test_cbb_prefixed()
502 CHECK_GOTO(CBB_add_u16(&contents, 0xcccc)); in test_cbb_discard_child()
547 CHECK_GOTO(!CBB_add_u16(&child, 1)); in test_cbb_misuse()
/openbsd/lib/libcrypto/ct/
H A Dct_vfy.c106 if (!CBB_add_u16(&cbb, sct->entry_type)) in sct_ctx_update()
/openbsd/lib/libcrypto/bytestring/
H A Dbytestring.h495 int CBB_add_u16(CBB *cbb, size_t value);
H A Dbs_cbb.c394 CBB_add_u16(CBB *cbb, size_t value) in CBB_add_u16() function
/openbsd/lib/libcrypto/x509/
H A Dx509_addr.c1070 if (!CBB_add_u16(&cbb, afi)) in make_IPAddressFamily()