Public Member Functions | Public Attributes | List of all members
TestConfig Struct Reference

#include <test_config.h>

Public Member Functions

bssl::UniquePtr< SSLNewSSL (SSL_CTX *ssl_ctx, SSL_SESSION *session, std::unique_ptr< TestState > test_state) const
 
bssl::UniquePtr< SSL_CTXSetupCtx (SSL_CTX *old_ctx) const
 

Public Attributes

std::string advertise_alpn
 
std::string advertise_npn
 
bool allow_false_start_without_alpn = false
 
bool allow_hint_mismatch = false
 
bool allow_unknown_alpn_protos = false
 
std::vector< std::pair< std::string, std::string > > application_settings
 
int argc
 
char ** argv
 
bool async = false
 
bool cbc_record_splitting = false
 
std::string cert_file
 
bool check_close_notify = false
 
std::string cipher
 
std::vector< intcurves
 
bool custom_extension_fail_add = false
 
bool custom_extension_skip = false
 
bool decline_alpn = false
 
bool decline_ocsp_callback = false
 
bool defer_alps = false
 
std::string delegated_credential
 
int early_write_after_message = 0
 
std::string ech_config_list
 
std::vector< intech_is_retry_config
 
std::vector< std::string > ech_server_configs
 
std::vector< std::string > ech_server_keys
 
bool enable_channel_id = false
 
bool enable_client_custom_extension = false
 
bool enable_early_data = false
 
bool enable_ech_grease = false
 
bool enable_grease = false
 
bool enable_ocsp_stapling = false
 
bool enable_server_custom_extension = false
 
bool enable_signed_cert_timestamps = false
 
bool enforce_rsa_key_usage = false
 
bool expect_accept_early_data = false
 
std::string expect_advertised_alpn
 
std::string expect_alpn
 
std::string expect_certificate_types
 
std::string expect_channel_id
 
int expect_cipher = 0
 
int expect_cipher_aes = 0
 
int expect_cipher_no_aes = 0
 
std::string expect_client_ca_list
 
int expect_curve_id = 0
 
bool expect_delegated_credential_used = false
 
std::string expect_early_data_reason
 
bool expect_ech_accept = false
 
std::string expect_ech_name_override
 
std::string expect_ech_retry_configs
 
bool expect_extended_master_secret = false
 
bool expect_hrr = false
 
std::string expect_late_alpn
 
std::string expect_msg_callback
 
std::string expect_next_proto
 
bool expect_no_ech_name_override = false
 
bool expect_no_ech_retry_configs = false
 
bool expect_no_hrr = false
 
bool expect_no_offer_early_data = false
 
bool expect_no_secure_renegotiation = false
 
bool expect_no_session = false
 
bool expect_no_session_id = false
 
std::string expect_ocsp_response
 
std::unique_ptr< std::string > expect_peer_application_settings
 
std::string expect_peer_cert_file
 
int expect_peer_signature_algorithm = 0
 
std::vector< intexpect_peer_verify_prefs
 
std::string expect_quic_transport_params
 
bool expect_reject_early_data = false
 
bool expect_secure_renegotiation = false
 
std::string expect_server_name
 
bool expect_session_id = false
 
bool expect_session_miss = false
 
bool expect_sha256_client_cert = false
 
std::string expect_signed_cert_timestamps
 
int expect_ticket_age_skew = 0
 
bool expect_ticket_renewal = false
 
bool expect_ticket_supports_early_data = false
 
int expect_total_renegotiations = 0
 
bool expect_verify_result = false
 
int expect_version = 0
 
std::string export_context
 
int export_keying_material = 0
 
std::string export_label
 
bool export_traffic_secrets = false
 
bool fail_cert_callback = false
 
bool fail_ddos_callback = false
 
bool fail_early_callback = false
 
bool fail_ocsp_callback = false
 
bool fallback_scsv = false
 
bool false_start = false
 
bool forbid_renegotiation_after_handshake = false
 
bool handoff = false
 
bool handshake_hints = false
 
bool handshake_never_done = false
 
bool handshake_twice = false
 
std::string handshaker_path
 
bool handshaker_resume = false
 
std::string host_name
 
bool implicit_handshake = false
 
int initial_timeout_duration_ms = 0
 
bool install_cert_compression_algs = false
 
bool install_ddos_callback = false
 
int install_one_cert_compression_alg = 0
 
bool is_dtls = false
 
bool is_handshaker_supported = false
 
bool is_quic = false
 
bool is_server = false
 
bool jdk11_workaround = false
 
std::string key_file
 
bool key_update = false
 
int max_cert_list = 0
 
int max_send_fragment = 0
 
int max_version = 0
 
int min_version = 0
 
int mtu = 0
 
bool no_op_extra_handshake = false
 
bool no_ticket = false
 
bool no_tls1 = false
 
bool no_tls11 = false
 
bool no_tls12 = false
 
bool no_tls13 = false
 
std::string ocsp_response
 
bool partial_write = false
 
bool peek_then_read = false
 
bool permute_extensions = false
 
int port = 0
 
std::string psk
 
std::string psk_identity
 
std::string quic_early_data_context
 
std::string quic_transport_params
 
int quic_use_legacy_codepoint = -1
 
int read_size = 0
 
bool read_with_unfinished_write = false
 
bool reject_alpn = false
 
bool renegotiate_explicit = false
 
bool renegotiate_freely = false
 
bool renegotiate_ignore = false
 
bool renegotiate_once = false
 
bool renew_ticket = false
 
bool require_any_client_certificate = false
 
int resume_count = 0
 
int resumption_delay = 0
 
bool retain_only_sha256_client_cert = false
 
bool reverify_on_resume = false
 
std::string select_alpn
 
bool select_empty_alpn = false
 
std::string select_next_proto
 
bool send_alert = false
 
std::string send_channel_id
 
bool server_preference = false
 
bool set_ocsp_in_callback = false
 
bool shim_shuts_down = false
 
bool shim_writes_first = false
 
std::string signed_cert_timestamps
 
std::vector< intsigning_prefs
 
std::string srtp_profiles
 
std::string ticket_key
 
bool tls_unique = false
 
std::string use_client_ca_list
 
bool use_custom_verify_callback = false
 
bool use_early_callback = false
 
bool use_export_context = false
 
bool use_exporter_between_reads = false
 
bool use_ocsp_callback = false
 
bool use_old_client_cert_callback = false
 
bool use_ticket_callback = false
 
bool verify_fail = false
 
bool verify_peer = false
 
bool verify_peer_if_no_obc = false
 
std::vector< intverify_prefs
 
bool wait_for_debugger = false
 
bool write_different_record_sizes = false
 
std::string write_settings
 

Detailed Description

Definition at line 27 of file third_party/boringssl-with-bazel/src/ssl/test/test_config.h.

Member Function Documentation

◆ NewSSL()

bssl::UniquePtr< SSL > TestConfig::NewSSL ( SSL_CTX ssl_ctx,
SSL_SESSION session,
std::unique_ptr< TestState test_state 
) const

◆ SetupCtx()

bssl::UniquePtr< SSL_CTX > TestConfig::SetupCtx ( SSL_CTX old_ctx) const

Member Data Documentation

◆ advertise_alpn

std::string TestConfig::advertise_alpn

◆ advertise_npn

std::string TestConfig::advertise_npn

◆ allow_false_start_without_alpn

bool TestConfig::allow_false_start_without_alpn = false

◆ allow_hint_mismatch

bool TestConfig::allow_hint_mismatch = false

◆ allow_unknown_alpn_protos

bool TestConfig::allow_unknown_alpn_protos = false

◆ application_settings

std::vector<std::pair<std::string, std::string> > TestConfig::application_settings

◆ argc

int TestConfig::argc

◆ argv

char** TestConfig::argv

◆ async

bool TestConfig::async = false

◆ cbc_record_splitting

bool TestConfig::cbc_record_splitting = false

◆ cert_file

std::string TestConfig::cert_file

◆ check_close_notify

bool TestConfig::check_close_notify = false

◆ cipher

std::string TestConfig::cipher

◆ curves

std::vector<int> TestConfig::curves

◆ custom_extension_fail_add

bool TestConfig::custom_extension_fail_add = false

◆ custom_extension_skip

bool TestConfig::custom_extension_skip = false

◆ decline_alpn

bool TestConfig::decline_alpn = false

◆ decline_ocsp_callback

bool TestConfig::decline_ocsp_callback = false

◆ defer_alps

bool TestConfig::defer_alps = false

◆ delegated_credential

std::string TestConfig::delegated_credential

◆ early_write_after_message

int TestConfig::early_write_after_message = 0

◆ ech_config_list

std::string TestConfig::ech_config_list

◆ ech_is_retry_config

std::vector<int> TestConfig::ech_is_retry_config

◆ ech_server_configs

std::vector<std::string> TestConfig::ech_server_configs

◆ ech_server_keys

std::vector<std::string> TestConfig::ech_server_keys

◆ enable_channel_id

bool TestConfig::enable_channel_id = false

◆ enable_client_custom_extension

bool TestConfig::enable_client_custom_extension = false

◆ enable_early_data

bool TestConfig::enable_early_data = false

◆ enable_ech_grease

bool TestConfig::enable_ech_grease = false

◆ enable_grease

bool TestConfig::enable_grease = false

◆ enable_ocsp_stapling

bool TestConfig::enable_ocsp_stapling = false

◆ enable_server_custom_extension

bool TestConfig::enable_server_custom_extension = false

◆ enable_signed_cert_timestamps

bool TestConfig::enable_signed_cert_timestamps = false

◆ enforce_rsa_key_usage

bool TestConfig::enforce_rsa_key_usage = false

◆ expect_accept_early_data

bool TestConfig::expect_accept_early_data = false

◆ expect_advertised_alpn

std::string TestConfig::expect_advertised_alpn

◆ expect_alpn

std::string TestConfig::expect_alpn

◆ expect_certificate_types

std::string TestConfig::expect_certificate_types

◆ expect_channel_id

std::string TestConfig::expect_channel_id

◆ expect_cipher

int TestConfig::expect_cipher = 0

◆ expect_cipher_aes

int TestConfig::expect_cipher_aes = 0

◆ expect_cipher_no_aes

int TestConfig::expect_cipher_no_aes = 0

◆ expect_client_ca_list

std::string TestConfig::expect_client_ca_list

◆ expect_curve_id

int TestConfig::expect_curve_id = 0

◆ expect_delegated_credential_used

bool TestConfig::expect_delegated_credential_used = false

◆ expect_early_data_reason

std::string TestConfig::expect_early_data_reason

◆ expect_ech_accept

bool TestConfig::expect_ech_accept = false

◆ expect_ech_name_override

std::string TestConfig::expect_ech_name_override

◆ expect_ech_retry_configs

std::string TestConfig::expect_ech_retry_configs

◆ expect_extended_master_secret

bool TestConfig::expect_extended_master_secret = false

◆ expect_hrr

bool TestConfig::expect_hrr = false

◆ expect_late_alpn

std::string TestConfig::expect_late_alpn

◆ expect_msg_callback

std::string TestConfig::expect_msg_callback

◆ expect_next_proto

std::string TestConfig::expect_next_proto

◆ expect_no_ech_name_override

bool TestConfig::expect_no_ech_name_override = false

◆ expect_no_ech_retry_configs

bool TestConfig::expect_no_ech_retry_configs = false

◆ expect_no_hrr

bool TestConfig::expect_no_hrr = false

◆ expect_no_offer_early_data

bool TestConfig::expect_no_offer_early_data = false

◆ expect_no_secure_renegotiation

bool TestConfig::expect_no_secure_renegotiation = false

◆ expect_no_session

bool TestConfig::expect_no_session = false

◆ expect_no_session_id

bool TestConfig::expect_no_session_id = false

◆ expect_ocsp_response

std::string TestConfig::expect_ocsp_response

◆ expect_peer_application_settings

std::unique_ptr<std::string> TestConfig::expect_peer_application_settings

◆ expect_peer_cert_file

std::string TestConfig::expect_peer_cert_file

◆ expect_peer_signature_algorithm

int TestConfig::expect_peer_signature_algorithm = 0

◆ expect_peer_verify_prefs

std::vector<int> TestConfig::expect_peer_verify_prefs

◆ expect_quic_transport_params

std::string TestConfig::expect_quic_transport_params

◆ expect_reject_early_data

bool TestConfig::expect_reject_early_data = false

◆ expect_secure_renegotiation

bool TestConfig::expect_secure_renegotiation = false

◆ expect_server_name

std::string TestConfig::expect_server_name

◆ expect_session_id

bool TestConfig::expect_session_id = false

◆ expect_session_miss

bool TestConfig::expect_session_miss = false

◆ expect_sha256_client_cert

bool TestConfig::expect_sha256_client_cert = false

◆ expect_signed_cert_timestamps

std::string TestConfig::expect_signed_cert_timestamps

◆ expect_ticket_age_skew

int TestConfig::expect_ticket_age_skew = 0

◆ expect_ticket_renewal

bool TestConfig::expect_ticket_renewal = false

◆ expect_ticket_supports_early_data

bool TestConfig::expect_ticket_supports_early_data = false

◆ expect_total_renegotiations

int TestConfig::expect_total_renegotiations = 0

◆ expect_verify_result

bool TestConfig::expect_verify_result = false

◆ expect_version

int TestConfig::expect_version = 0

◆ export_context

std::string TestConfig::export_context

◆ export_keying_material

int TestConfig::export_keying_material = 0

◆ export_label

std::string TestConfig::export_label

◆ export_traffic_secrets

bool TestConfig::export_traffic_secrets = false

◆ fail_cert_callback

bool TestConfig::fail_cert_callback = false

◆ fail_ddos_callback

bool TestConfig::fail_ddos_callback = false

◆ fail_early_callback

bool TestConfig::fail_early_callback = false

◆ fail_ocsp_callback

bool TestConfig::fail_ocsp_callback = false

◆ fallback_scsv

bool TestConfig::fallback_scsv = false

◆ false_start

bool TestConfig::false_start = false

◆ forbid_renegotiation_after_handshake

bool TestConfig::forbid_renegotiation_after_handshake = false

◆ handoff

bool TestConfig::handoff = false

◆ handshake_hints

bool TestConfig::handshake_hints = false

◆ handshake_never_done

bool TestConfig::handshake_never_done = false

◆ handshake_twice

bool TestConfig::handshake_twice = false

◆ handshaker_path

std::string TestConfig::handshaker_path

◆ handshaker_resume

bool TestConfig::handshaker_resume = false

◆ host_name

std::string TestConfig::host_name

◆ implicit_handshake

bool TestConfig::implicit_handshake = false

◆ initial_timeout_duration_ms

int TestConfig::initial_timeout_duration_ms = 0

◆ install_cert_compression_algs

bool TestConfig::install_cert_compression_algs = false

◆ install_ddos_callback

bool TestConfig::install_ddos_callback = false

◆ install_one_cert_compression_alg

int TestConfig::install_one_cert_compression_alg = 0

◆ is_dtls

bool TestConfig::is_dtls = false

◆ is_handshaker_supported

bool TestConfig::is_handshaker_supported = false

◆ is_quic

bool TestConfig::is_quic = false

◆ is_server

bool TestConfig::is_server = false

◆ jdk11_workaround

bool TestConfig::jdk11_workaround = false

◆ key_file

std::string TestConfig::key_file

◆ key_update

bool TestConfig::key_update = false

◆ max_cert_list

int TestConfig::max_cert_list = 0

◆ max_send_fragment

int TestConfig::max_send_fragment = 0

◆ max_version

int TestConfig::max_version = 0

◆ min_version

int TestConfig::min_version = 0

◆ mtu

int TestConfig::mtu = 0

◆ no_op_extra_handshake

bool TestConfig::no_op_extra_handshake = false

◆ no_ticket

bool TestConfig::no_ticket = false

◆ no_tls1

bool TestConfig::no_tls1 = false

◆ no_tls11

bool TestConfig::no_tls11 = false

◆ no_tls12

bool TestConfig::no_tls12 = false

◆ no_tls13

bool TestConfig::no_tls13 = false

◆ ocsp_response

std::string TestConfig::ocsp_response

◆ partial_write

bool TestConfig::partial_write = false

◆ peek_then_read

bool TestConfig::peek_then_read = false

◆ permute_extensions

bool TestConfig::permute_extensions = false

◆ port

int TestConfig::port = 0

◆ psk

std::string TestConfig::psk

◆ psk_identity

std::string TestConfig::psk_identity

◆ quic_early_data_context

std::string TestConfig::quic_early_data_context

◆ quic_transport_params

std::string TestConfig::quic_transport_params

◆ quic_use_legacy_codepoint

int TestConfig::quic_use_legacy_codepoint = -1

◆ read_size

int TestConfig::read_size = 0

◆ read_with_unfinished_write

bool TestConfig::read_with_unfinished_write = false

◆ reject_alpn

bool TestConfig::reject_alpn = false

◆ renegotiate_explicit

bool TestConfig::renegotiate_explicit = false

◆ renegotiate_freely

bool TestConfig::renegotiate_freely = false

◆ renegotiate_ignore

bool TestConfig::renegotiate_ignore = false

◆ renegotiate_once

bool TestConfig::renegotiate_once = false

◆ renew_ticket

bool TestConfig::renew_ticket = false

◆ require_any_client_certificate

bool TestConfig::require_any_client_certificate = false

◆ resume_count

int TestConfig::resume_count = 0

◆ resumption_delay

int TestConfig::resumption_delay = 0

◆ retain_only_sha256_client_cert

bool TestConfig::retain_only_sha256_client_cert = false

◆ reverify_on_resume

bool TestConfig::reverify_on_resume = false

◆ select_alpn

std::string TestConfig::select_alpn

◆ select_empty_alpn

bool TestConfig::select_empty_alpn = false

◆ select_next_proto

std::string TestConfig::select_next_proto

◆ send_alert

bool TestConfig::send_alert = false

◆ send_channel_id

std::string TestConfig::send_channel_id

◆ server_preference

bool TestConfig::server_preference = false

◆ set_ocsp_in_callback

bool TestConfig::set_ocsp_in_callback = false

◆ shim_shuts_down

bool TestConfig::shim_shuts_down = false

◆ shim_writes_first

bool TestConfig::shim_writes_first = false

◆ signed_cert_timestamps

std::string TestConfig::signed_cert_timestamps

◆ signing_prefs

std::vector<int> TestConfig::signing_prefs

◆ srtp_profiles

std::string TestConfig::srtp_profiles

◆ ticket_key

std::string TestConfig::ticket_key

◆ tls_unique

bool TestConfig::tls_unique = false

◆ use_client_ca_list

std::string TestConfig::use_client_ca_list

◆ use_custom_verify_callback

bool TestConfig::use_custom_verify_callback = false

◆ use_early_callback

bool TestConfig::use_early_callback = false

◆ use_export_context

bool TestConfig::use_export_context = false

◆ use_exporter_between_reads

bool TestConfig::use_exporter_between_reads = false

◆ use_ocsp_callback

bool TestConfig::use_ocsp_callback = false

◆ use_old_client_cert_callback

bool TestConfig::use_old_client_cert_callback = false

◆ use_ticket_callback

bool TestConfig::use_ticket_callback = false

◆ verify_fail

bool TestConfig::verify_fail = false

◆ verify_peer

bool TestConfig::verify_peer = false

◆ verify_peer_if_no_obc

bool TestConfig::verify_peer_if_no_obc = false

◆ verify_prefs

std::vector<int> TestConfig::verify_prefs

◆ wait_for_debugger

bool TestConfig::wait_for_debugger = false

◆ write_different_record_sizes

bool TestConfig::write_different_record_sizes = false

◆ write_settings

std::string TestConfig::write_settings

The documentation for this struct was generated from the following files:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:49