Functions | Variables
tls_method.cc File Reference
#include <openssl/ssl.h>
#include <assert.h>
#include <string.h>
#include <openssl/err.h>
#include "../crypto/internal.h"
#include "internal.h"
Include dependency graph for tls_method.cc:

Go to the source code of this file.

Functions

static bool ssl_noop_x509_check_client_CA_names (STACK_OF(CRYPTO_BUFFER) *names)
 
static void ssl_noop_x509_clear (CERT *cert)
 
static void ssl_noop_x509_dup (CERT *new_cert, const CERT *cert)
 
static void ssl_noop_x509_flush_cached_chain (CERT *cert)
 
static void ssl_noop_x509_flush_cached_leaf (CERT *cert)
 
static void ssl_noop_x509_free (CERT *cert)
 
static void ssl_noop_x509_hs_flush_cached_ca_names (SSL_HANDSHAKE *hs)
 
static bool ssl_noop_x509_session_cache_objects (SSL_SESSION *sess)
 
static void ssl_noop_x509_session_clear (SSL_SESSION *session)
 
static bool ssl_noop_x509_session_dup (SSL_SESSION *new_session, const SSL_SESSION *session)
 
static bool ssl_noop_x509_session_verify_cert_chain (SSL_SESSION *session, SSL_HANDSHAKE *hs, uint8_t *out_alert)
 
static bool ssl_noop_x509_ssl_auto_chain_if_needed (SSL_HANDSHAKE *hs)
 
static void ssl_noop_x509_ssl_config_free (SSL_CONFIG *cfg)
 
static void ssl_noop_x509_ssl_ctx_flush_cached_client_CA (SSL_CTX *ctx)
 
static void ssl_noop_x509_ssl_ctx_free (SSL_CTX *ctx)
 
static bool ssl_noop_x509_ssl_ctx_new (SSL_CTX *ctx)
 
static void ssl_noop_x509_ssl_flush_cached_client_CA (SSL_CONFIG *cfg)
 
static bool ssl_noop_x509_ssl_new (SSL_HANDSHAKE *hs)
 
const SSL_METHODSSLv23_client_method (void)
 
const SSL_METHODSSLv23_method (void)
 
const SSL_METHODSSLv23_server_method (void)
 
const SSL_METHODTLS_client_method (void)
 
const SSL_METHODTLS_method (void)
 
static BSSL_NAMESPACE_BEGIN void tls_on_handshake_complete (SSL *ssl)
 
const SSL_METHODTLS_server_method (void)
 
static bool tls_set_read_state (SSL *ssl, ssl_encryption_level_t level, UniquePtr< SSLAEADContext > aead_ctx, Span< const uint8_t > secret_for_quic)
 
static bool tls_set_write_state (SSL *ssl, ssl_encryption_level_t level, UniquePtr< SSLAEADContext > aead_ctx, Span< const uint8_t > secret_for_quic)
 
const SSL_METHODTLS_with_buffers_method (void)
 
const SSL_METHODTLSv1_1_client_method (void)
 
const SSL_METHODTLSv1_1_method (void)
 
const SSL_METHODTLSv1_1_server_method (void)
 
const SSL_METHODTLSv1_2_client_method (void)
 
const SSL_METHODTLSv1_2_method (void)
 
const SSL_METHODTLSv1_2_server_method (void)
 
const SSL_METHODTLSv1_client_method (void)
 
const SSL_METHODTLSv1_method (void)
 
const SSL_METHODTLSv1_server_method (void)
 

Variables

static const SSL_PROTOCOL_METHOD kTLSProtocolMethod
 
const SSL_X509_METHOD ssl_noop_x509_method
 

Function Documentation

◆ ssl_noop_x509_check_client_CA_names()

static bool ssl_noop_x509_check_client_CA_names ( STACK_OF(CRYPTO_BUFFER) *  names)
static

Definition at line 168 of file tls_method.cc.

◆ ssl_noop_x509_clear()

static void ssl_noop_x509_clear ( CERT cert)
static

Definition at line 173 of file tls_method.cc.

◆ ssl_noop_x509_dup()

static void ssl_noop_x509_dup ( CERT new_cert,
const CERT cert 
)
static

Definition at line 175 of file tls_method.cc.

◆ ssl_noop_x509_flush_cached_chain()

static void ssl_noop_x509_flush_cached_chain ( CERT cert)
static

Definition at line 177 of file tls_method.cc.

◆ ssl_noop_x509_flush_cached_leaf()

static void ssl_noop_x509_flush_cached_leaf ( CERT cert)
static

Definition at line 176 of file tls_method.cc.

◆ ssl_noop_x509_free()

static void ssl_noop_x509_free ( CERT cert)
static

Definition at line 174 of file tls_method.cc.

◆ ssl_noop_x509_hs_flush_cached_ca_names()

static void ssl_noop_x509_hs_flush_cached_ca_names ( SSL_HANDSHAKE hs)
static

Definition at line 192 of file tls_method.cc.

◆ ssl_noop_x509_session_cache_objects()

static bool ssl_noop_x509_session_cache_objects ( SSL_SESSION sess)
static

Definition at line 178 of file tls_method.cc.

◆ ssl_noop_x509_session_clear()

static void ssl_noop_x509_session_clear ( SSL_SESSION session)
static

Definition at line 185 of file tls_method.cc.

◆ ssl_noop_x509_session_dup()

static bool ssl_noop_x509_session_dup ( SSL_SESSION new_session,
const SSL_SESSION session 
)
static

Definition at line 181 of file tls_method.cc.

◆ ssl_noop_x509_session_verify_cert_chain()

static bool ssl_noop_x509_session_verify_cert_chain ( SSL_SESSION session,
SSL_HANDSHAKE hs,
uint8_t out_alert 
)
static

Definition at line 186 of file tls_method.cc.

◆ ssl_noop_x509_ssl_auto_chain_if_needed()

static bool ssl_noop_x509_ssl_auto_chain_if_needed ( SSL_HANDSHAKE hs)
static

Definition at line 196 of file tls_method.cc.

◆ ssl_noop_x509_ssl_config_free()

static void ssl_noop_x509_ssl_config_free ( SSL_CONFIG cfg)
static

Definition at line 194 of file tls_method.cc.

◆ ssl_noop_x509_ssl_ctx_flush_cached_client_CA()

static void ssl_noop_x509_ssl_ctx_flush_cached_client_CA ( SSL_CTX ctx)
static

Definition at line 201 of file tls_method.cc.

◆ ssl_noop_x509_ssl_ctx_free()

static void ssl_noop_x509_ssl_ctx_free ( SSL_CTX ctx)
static

Definition at line 200 of file tls_method.cc.

◆ ssl_noop_x509_ssl_ctx_new()

static bool ssl_noop_x509_ssl_ctx_new ( SSL_CTX ctx)
static

Definition at line 199 of file tls_method.cc.

◆ ssl_noop_x509_ssl_flush_cached_client_CA()

static void ssl_noop_x509_ssl_flush_cached_client_CA ( SSL_CONFIG cfg)
static

Definition at line 195 of file tls_method.cc.

◆ ssl_noop_x509_ssl_new()

static bool ssl_noop_x509_ssl_new ( SSL_HANDSHAKE hs)
static

Definition at line 193 of file tls_method.cc.

◆ SSLv23_client_method()

const SSL_METHOD* SSLv23_client_method ( void  )

Definition at line 309 of file tls_method.cc.

◆ SSLv23_method()

const SSL_METHOD* SSLv23_method ( void  )

Definition at line 237 of file tls_method.cc.

◆ SSLv23_server_method()

const SSL_METHOD* SSLv23_server_method ( void  )

Definition at line 305 of file tls_method.cc.

◆ TLS_client_method()

const SSL_METHOD* TLS_client_method ( void  )

Definition at line 317 of file tls_method.cc.

◆ TLS_method()

const SSL_METHOD* TLS_method ( void  )

Definition at line 228 of file tls_method.cc.

◆ tls_on_handshake_complete()

static BSSL_NAMESPACE_BEGIN void tls_on_handshake_complete ( SSL ssl)
static

Definition at line 70 of file tls_method.cc.

◆ TLS_server_method()

const SSL_METHOD* TLS_server_method ( void  )

Definition at line 313 of file tls_method.cc.

◆ tls_set_read_state()

static bool tls_set_read_state ( SSL ssl,
ssl_encryption_level_t  level,
UniquePtr< SSLAEADContext aead_ctx,
Span< const uint8_t secret_for_quic 
)
static

Definition at line 85 of file tls_method.cc.

◆ tls_set_write_state()

static bool tls_set_write_state ( SSL ssl,
ssl_encryption_level_t  level,
UniquePtr< SSLAEADContext aead_ctx,
Span< const uint8_t secret_for_quic 
)
static

Definition at line 117 of file tls_method.cc.

◆ TLS_with_buffers_method()

const SSL_METHOD* TLS_with_buffers_method ( void  )

Definition at line 241 of file tls_method.cc.

◆ TLSv1_1_client_method()

const SSL_METHOD* TLSv1_1_client_method ( void  )

Definition at line 297 of file tls_method.cc.

◆ TLSv1_1_method()

const SSL_METHOD* TLSv1_1_method ( void  )

Definition at line 261 of file tls_method.cc.

◆ TLSv1_1_server_method()

const SSL_METHOD* TLSv1_1_server_method ( void  )

Definition at line 285 of file tls_method.cc.

◆ TLSv1_2_client_method()

const SSL_METHOD* TLSv1_2_client_method ( void  )

Definition at line 293 of file tls_method.cc.

◆ TLSv1_2_method()

const SSL_METHOD* TLSv1_2_method ( void  )

Definition at line 252 of file tls_method.cc.

◆ TLSv1_2_server_method()

const SSL_METHOD* TLSv1_2_server_method ( void  )

Definition at line 281 of file tls_method.cc.

◆ TLSv1_client_method()

const SSL_METHOD* TLSv1_client_method ( void  )

Definition at line 301 of file tls_method.cc.

◆ TLSv1_method()

const SSL_METHOD* TLSv1_method ( void  )

Definition at line 270 of file tls_method.cc.

◆ TLSv1_server_method()

const SSL_METHOD* TLSv1_server_method ( void  )

Definition at line 289 of file tls_method.cc.

Variable Documentation

◆ kTLSProtocolMethod

const SSL_PROTOCOL_METHOD kTLSProtocolMethod
static

◆ ssl_noop_x509_method

const SSL_X509_METHOD ssl_noop_x509_method
tls_write_app_data
int tls_write_app_data(SSL *ssl, bool *out_needs_handshake, const uint8_t *buf, int len)
Definition: s3_pkt.cc:131
ssl_noop_x509_ssl_ctx_free
static void ssl_noop_x509_ssl_ctx_free(SSL_CTX *ctx)
Definition: tls_method.cc:200
tls_set_read_state
static bool tls_set_read_state(SSL *ssl, ssl_encryption_level_t level, UniquePtr< SSLAEADContext > aead_ctx, Span< const uint8_t > secret_for_quic)
Definition: tls_method.cc:85
tls_free
void tls_free(SSL *ssl)
Definition: s3_lib.cc:210
false
#define false
Definition: setup_once.h:323
ssl_noop_x509_flush_cached_leaf
static void ssl_noop_x509_flush_cached_leaf(CERT *cert)
Definition: tls_method.cc:176
tls_set_write_state
static bool tls_set_write_state(SSL *ssl, ssl_encryption_level_t level, UniquePtr< SSLAEADContext > aead_ctx, Span< const uint8_t > secret_for_quic)
Definition: tls_method.cc:117
tls_flush_flight
int tls_flush_flight(SSL *ssl)
Definition: s3_both.cc:284
ssl_noop_x509_ssl_new
static bool ssl_noop_x509_ssl_new(SSL_HANDSHAKE *hs)
Definition: tls_method.cc:193
ssl_noop_x509_ssl_flush_cached_client_CA
static void ssl_noop_x509_ssl_flush_cached_client_CA(SSL_CONFIG *cfg)
Definition: tls_method.cc:195
ssl_noop_x509_session_dup
static bool ssl_noop_x509_session_dup(SSL_SESSION *new_session, const SSL_SESSION *session)
Definition: tls_method.cc:181
tls_get_message
bool tls_get_message(const SSL *ssl, SSLMessage *out)
Definition: s3_both.cc:505
tls_open_handshake
ssl_open_record_t tls_open_handshake(SSL *ssl, size_t *out_consumed, uint8_t *out_alert, Span< uint8_t > in)
Definition: s3_both.cc:561
tls_add_message
bool tls_add_message(SSL *ssl, Array< uint8_t > msg)
Definition: s3_both.cc:188
ssl_noop_x509_session_cache_objects
static bool ssl_noop_x509_session_cache_objects(SSL_SESSION *sess)
Definition: tls_method.cc:178
ssl_noop_x509_ssl_ctx_flush_cached_client_CA
static void ssl_noop_x509_ssl_ctx_flush_cached_client_CA(SSL_CTX *ctx)
Definition: tls_method.cc:201
ssl_noop_x509_check_client_CA_names
static bool ssl_noop_x509_check_client_CA_names(STACK_OF(CRYPTO_BUFFER) *names)
Definition: tls_method.cc:168
ssl_noop_x509_session_clear
static void ssl_noop_x509_session_clear(SSL_SESSION *session)
Definition: tls_method.cc:185
ssl_noop_x509_ssl_auto_chain_if_needed
static bool ssl_noop_x509_ssl_auto_chain_if_needed(SSL_HANDSHAKE *hs)
Definition: tls_method.cc:196
tls_init_message
bool tls_init_message(const SSL *ssl, CBB *cbb, CBB *body, uint8_t type)
Definition: s3_both.cc:171
tls_on_handshake_complete
static BSSL_NAMESPACE_BEGIN void tls_on_handshake_complete(SSL *ssl)
Definition: tls_method.cc:70
ssl_noop_x509_ssl_ctx_new
static bool ssl_noop_x509_ssl_ctx_new(SSL_CTX *ctx)
Definition: tls_method.cc:199
ssl_noop_x509_flush_cached_chain
static void ssl_noop_x509_flush_cached_chain(CERT *cert)
Definition: tls_method.cc:177
ssl_noop_x509_hs_flush_cached_ca_names
static void ssl_noop_x509_hs_flush_cached_ca_names(SSL_HANDSHAKE *hs)
Definition: tls_method.cc:192
ssl_noop_x509_clear
static void ssl_noop_x509_clear(CERT *cert)
Definition: tls_method.cc:173
tls_dispatch_alert
int tls_dispatch_alert(SSL *ssl)
Definition: s3_pkt.cc:424
tls_finish_message
bool tls_finish_message(const SSL *ssl, CBB *cbb, Array< uint8_t > *out_msg)
Definition: s3_both.cc:184
ssl_noop_x509_free
static void ssl_noop_x509_free(CERT *cert)
Definition: tls_method.cc:174
tls_has_unprocessed_handshake_data
bool tls_has_unprocessed_handshake_data(const SSL *ssl)
Definition: s3_both.cc:539
ssl_noop_x509_session_verify_cert_chain
static bool ssl_noop_x509_session_verify_cert_chain(SSL_SESSION *session, SSL_HANDSHAKE *hs, uint8_t *out_alert)
Definition: tls_method.cc:186
tls_add_change_cipher_spec
bool tls_add_change_cipher_spec(SSL *ssl)
Definition: s3_both.cc:266
tls_new
bool tls_new(SSL *ssl)
Definition: s3_lib.cc:186
ssl_noop_x509_ssl_config_free
static void ssl_noop_x509_ssl_config_free(SSL_CONFIG *cfg)
Definition: tls_method.cc:194
tls_open_change_cipher_spec
ssl_open_record_t tls_open_change_cipher_spec(SSL *ssl, size_t *out_consumed, uint8_t *out_alert, Span< uint8_t > in)
Definition: s3_pkt.cc:353
tls_open_app_data
ssl_open_record_t tls_open_app_data(SSL *ssl, Span< uint8_t > *out, size_t *out_consumed, uint8_t *out_alert, Span< uint8_t > in)
Definition: s3_pkt.cc:297
ssl_noop_x509_dup
static void ssl_noop_x509_dup(CERT *new_cert, const CERT *cert)
Definition: tls_method.cc:175
tls_next_message
void tls_next_message(SSL *ssl)
Definition: s3_both.cc:640


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:02:28