|
static tsi_result | add_pem_certificate (X509 *cert, tsi_peer_property *property) |
|
static tsi_result | add_subject_alt_names_properties_to_peer (tsi_peer *peer, GENERAL_NAMES *subject_alt_names, size_t subject_alt_name_count, int *current_insert_index) |
|
static tsi_result | build_alpn_protocol_name_list (const char **alpn_protocols, uint16_t num_alpn_protocols, unsigned char **protocol_name_list, size_t *protocol_name_list_length) |
|
static int | client_handshaker_factory_npn_callback (SSL *, unsigned char **out, unsigned char *outlen, const unsigned char *in, unsigned int inlen, void *arg) |
|
static tsi_result | create_tsi_ssl_handshaker (SSL_CTX *ctx, int is_client, const char *server_name_indication, size_t network_bio_buf_size, size_t ssl_bio_buf_size, tsi_ssl_handshaker_factory *factory, tsi_handshaker **handshaker) |
|
static tsi_result | do_ssl_read (SSL *ssl, unsigned char *unprotected_bytes, size_t *unprotected_bytes_size) |
|
static tsi_result | do_ssl_write (SSL *ssl, unsigned char *unprotected_bytes, size_t unprotected_bytes_size) |
|
static int | does_entry_match_name (absl::string_view entry, absl::string_view name) |
|
static void | init_openssl (void) |
|
static void | log_ssl_error_stack (void) |
|
static int | looks_like_ip_address (absl::string_view name) |
|
static int | NullVerifyCallback (int, X509_STORE_CTX *) |
|
static void | openssl_locking_cb (int mode, int type, const char *file, int line) GRPC_UNUSED |
|
static unsigned long | openssl_thread_id_cb (void) GRPC_UNUSED |
|
static tsi_result | peer_from_x509 (X509 *cert, int include_certificate_type, tsi_peer *peer) |
|
static tsi_result | peer_property_from_x509_common_name (X509 *cert, tsi_peer_property *property) |
|
static tsi_result | peer_property_from_x509_subject (X509 *cert, tsi_peer_property *property) |
|
static tsi_result | populate_ssl_context (SSL_CTX *context, const tsi_ssl_pem_key_cert_pair *key_cert_pair, const char *cipher_list) |
|
static int | select_protocol_list (const unsigned char **out, unsigned char *outlen, const unsigned char *client_list, size_t client_list_len, const unsigned char *server_list, size_t server_list_len) |
|
static int | server_handshaker_factory_alpn_callback (SSL *, const unsigned char **out, unsigned char *outlen, const unsigned char *in, unsigned int inlen, void *arg) |
|
static int | server_handshaker_factory_new_session_callback (SSL *ssl, SSL_SESSION *session) |
|
static int | server_handshaker_factory_npn_advertised_callback (SSL *, const unsigned char **out, unsigned int *outlen, void *arg) |
|
static tsi_result | ssl_bytes_remaining (tsi_ssl_handshaker *impl, unsigned char **bytes_remaining, size_t *bytes_remaining_size) |
|
static tsi_result | ssl_ctx_load_verification_certs (SSL_CTX *context, const char *pem_roots, size_t pem_roots_size, STACK_OF(X509_NAME) **root_name) |
|
static tsi_result | ssl_ctx_use_certificate_chain (SSL_CTX *context, const char *pem_cert_chain, size_t pem_cert_chain_size) |
|
static tsi_result | ssl_ctx_use_engine_private_key (SSL_CTX *context, const char *pem_key, size_t pem_key_size) |
|
static tsi_result | ssl_ctx_use_pem_private_key (SSL_CTX *context, const char *pem_key, size_t pem_key_size) |
|
static tsi_result | ssl_ctx_use_private_key (SSL_CTX *context, const char *pem_key, size_t pem_key_size) |
|
static const char * | ssl_error_string (int error) |
|
static tsi_result | ssl_get_x509_common_name (X509 *cert, unsigned char **utf8, size_t *utf8_size) |
|
static void | ssl_handshaker_destroy (tsi_handshaker *self) |
|
static tsi_result | ssl_handshaker_do_handshake (tsi_ssl_handshaker *impl) |
|
static tsi_result | ssl_handshaker_get_bytes_to_send_to_peer (tsi_ssl_handshaker *impl, unsigned char *bytes, size_t *bytes_size) |
|
static tsi_result | ssl_handshaker_get_result (tsi_ssl_handshaker *impl) |
|
static tsi_result | ssl_handshaker_next (tsi_handshaker *self, const unsigned char *received_bytes, size_t received_bytes_size, const unsigned char **bytes_to_send, size_t *bytes_to_send_size, tsi_handshaker_result **handshaker_result, tsi_handshaker_on_next_done_cb, void *) |
|
static tsi_result | ssl_handshaker_process_bytes_from_peer (tsi_ssl_handshaker *impl, const unsigned char *bytes, size_t *bytes_size) |
|
static tsi_result | ssl_handshaker_result_create (tsi_ssl_handshaker *handshaker, unsigned char *unused_bytes, size_t unused_bytes_size, tsi_handshaker_result **handshaker_result) |
|
static tsi_result | ssl_handshaker_result_create_frame_protector (const tsi_handshaker_result *self, size_t *max_output_protected_frame_size, tsi_frame_protector **protector) |
|
static void | ssl_handshaker_result_destroy (tsi_handshaker_result *self) |
|
static tsi_result | ssl_handshaker_result_extract_peer (const tsi_handshaker_result *self, tsi_peer *peer) |
|
static tsi_result | ssl_handshaker_result_get_frame_protector_type (const tsi_handshaker_result *, tsi_frame_protector_type *frame_protector_type) |
|
static tsi_result | ssl_handshaker_result_get_unused_bytes (const tsi_handshaker_result *self, const unsigned char **bytes, size_t *bytes_size) |
|
static tsi_result | ssl_handshaker_write_output_buffer (tsi_handshaker *self, size_t *bytes_written) |
|
static void | ssl_info_callback (const SSL *ssl, int where, int ret) |
|
template<typename T > |
static void | ssl_keylogging_callback (const SSL *ssl, const char *info) |
|
static void | ssl_log_where_info (const SSL *ssl, int where, int flag, const char *msg) |
|
static void | ssl_protector_destroy (tsi_frame_protector *self) |
|
static tsi_result | ssl_protector_protect (tsi_frame_protector *self, const unsigned char *unprotected_bytes, size_t *unprotected_bytes_size, unsigned char *protected_output_frames, size_t *protected_output_frames_size) |
|
static tsi_result | ssl_protector_protect_flush (tsi_frame_protector *self, unsigned char *protected_output_frames, size_t *protected_output_frames_size, size_t *still_pending_size) |
|
static tsi_result | ssl_protector_unprotect (tsi_frame_protector *self, const unsigned char *protected_frames_bytes, size_t *protected_frames_bytes_size, unsigned char *unprotected_bytes, size_t *unprotected_bytes_size) |
|
static int | ssl_server_handshaker_factory_servername_callback (SSL *ssl, int *, void *arg) |
|
tsi_result | tsi_create_ssl_client_handshaker_factory (const tsi_ssl_pem_key_cert_pair *pem_key_cert_pair, const char *pem_root_certs, const char *cipher_suites, const char **alpn_protocols, uint16_t num_alpn_protocols, tsi_ssl_client_handshaker_factory **factory) |
|
tsi_result | tsi_create_ssl_client_handshaker_factory_with_options (const tsi_ssl_client_handshaker_options *options, tsi_ssl_client_handshaker_factory **factory) |
|
tsi_result | tsi_create_ssl_server_handshaker_factory (const tsi_ssl_pem_key_cert_pair *pem_key_cert_pairs, size_t num_key_cert_pairs, const char *pem_client_root_certs, int force_client_auth, const char *cipher_suites, const char **alpn_protocols, uint16_t num_alpn_protocols, tsi_ssl_server_handshaker_factory **factory) |
|
tsi_result | tsi_create_ssl_server_handshaker_factory_ex (const tsi_ssl_pem_key_cert_pair *pem_key_cert_pairs, size_t num_key_cert_pairs, const char *pem_client_root_certs, tsi_client_certificate_request_type client_certificate_request, const char *cipher_suites, const char **alpn_protocols, uint16_t num_alpn_protocols, tsi_ssl_server_handshaker_factory **factory) |
|
tsi_result | tsi_create_ssl_server_handshaker_factory_with_options (const tsi_ssl_server_handshaker_options *options, tsi_ssl_server_handshaker_factory **factory) |
|
static tsi_result | tsi_set_min_and_max_tls_versions (SSL_CTX *ssl_context, tsi_tls_version min_tls_version, tsi_tls_version max_tls_version) |
|
tsi_result | tsi_ssl_client_handshaker_factory_create_handshaker (tsi_ssl_client_handshaker_factory *factory, const char *server_name_indication, size_t network_bio_buf_size, size_t ssl_bio_buf_size, tsi_handshaker **handshaker) |
|
static void | tsi_ssl_client_handshaker_factory_destroy (tsi_ssl_handshaker_factory *factory) |
|
void | tsi_ssl_client_handshaker_factory_unref (tsi_ssl_client_handshaker_factory *factory) |
|
tsi_result | tsi_ssl_extract_x509_subject_names_from_pem_cert (const char *pem_cert, tsi_peer *peer) |
|
tsi_result | tsi_ssl_get_cert_chain_contents (STACK_OF(X509) *peer_chain, tsi_peer_property *property) |
|
static void | tsi_ssl_handshaker_factory_destroy (tsi_ssl_handshaker_factory *factory) |
|
static void | tsi_ssl_handshaker_factory_init (tsi_ssl_handshaker_factory *factory) |
|
static tsi_ssl_handshaker_factory * | tsi_ssl_handshaker_factory_ref (tsi_ssl_handshaker_factory *factory) |
|
const tsi_ssl_handshaker_factory_vtable * | tsi_ssl_handshaker_factory_swap_vtable (tsi_ssl_handshaker_factory *factory, tsi_ssl_handshaker_factory_vtable *new_vtable) |
|
static void | tsi_ssl_handshaker_factory_unref (tsi_ssl_handshaker_factory *factory) |
|
static void | tsi_ssl_handshaker_resume_session (SSL *ssl, tsi::SslSessionLRUCache *session_cache) |
|
int | tsi_ssl_peer_matches_name (const tsi_peer *peer, absl::string_view name) |
|
tsi_ssl_root_certs_store * | tsi_ssl_root_certs_store_create (const char *pem_roots) |
|
void | tsi_ssl_root_certs_store_destroy (tsi_ssl_root_certs_store *self) |
|
tsi_result | tsi_ssl_server_handshaker_factory_create_handshaker (tsi_ssl_server_handshaker_factory *factory, size_t network_bio_buf_size, size_t ssl_bio_buf_size, tsi_handshaker **handshaker) |
|
static void | tsi_ssl_server_handshaker_factory_destroy (tsi_ssl_handshaker_factory *factory) |
|
void | tsi_ssl_server_handshaker_factory_unref (tsi_ssl_server_handshaker_factory *factory) |
|
tsi_ssl_session_cache * | tsi_ssl_session_cache_create_lru (size_t capacity) |
|
void | tsi_ssl_session_cache_ref (tsi_ssl_session_cache *cache) |
|
void | tsi_ssl_session_cache_unref (tsi_ssl_session_cache *cache) |
|
static int | verify_cb (int ok, X509_STORE_CTX *ctx) |
|
static tsi_result | x509_store_load_certs (X509_STORE *cert_store, const char *pem_roots, size_t pem_roots_size, STACK_OF(X509_NAME) **root_names) |
|