GRPC Core 0.10.0.0

- Main Page
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Functions
ssl_transport_security.c File Reference
`#include "src/core/tsi/ssl_transport_security.h"`
`#include <limits.h>`
`#include <string.h>`
`#include <grpc/support/log.h>`
`#include <grpc/support/sync.h>`
`#include <grpc/support/thd.h>`
`#include <grpc/support/useful.h>`
`#include "src/core/tsi/transport_security.h"`
`#include <openssl/bio.h>`
`#include <openssl/crypto.h>`
`#include <openssl/err.h>`
`#include <openssl/ssl.h>`
`#include <openssl/x509.h>`
`#include <openssl/x509v3.h>`

## Data Structures
struct | tsi_ssl_handshaker_factory
struct | tsi_ssl_client_handshaker_factory
struct | tsi_ssl_server_handshaker_factory
struct | tsi_ssl_handshaker
struct | tsi_ssl_frame_protector

## Macros
#define | TSI_SSL_MAX_PROTECTED_FRAME_SIZE_UPPER_BOUND 16384
#define | TSI_SSL_MAX_PROTECTED_FRAME_SIZE_LOWER_BOUND 1024
#define | TSI_OPENSSL_ALPN_SUPPORT 1
#define | TSI_SSL_MAX_PROTECTION_OVERHEAD 100

## Functions
tsi_result | tsi_ssl_handshaker_factory_create_handshaker (tsi_ssl_handshaker_factory *self, const char *server_name_indication, tsi_handshaker **handshaker)
void | tsi_ssl_handshaker_factory_destroy (tsi_ssl_handshaker_factory *self)
tsi_result | tsi_create_ssl_client_handshaker_factory (const unsigned char *pem_private_key, size_t pem_private_key_size, const unsigned char *pem_cert_chain, size_t pem_cert_chain_size, const unsigned char *pem_root_certs, size_t pem_root_certs_size, const char *cipher_list, const unsigned char **alpn_protocols, const unsigned char *alpn_protocols_lengths, uint16_t num_alpn_protocols, tsi_ssl_handshaker_factory **factory)
tsi_result | tsi_create_ssl_server_handshaker_factory (const unsigned char **pem_private_keys, const size_t *pem_private_keys_sizes, const unsigned char **pem_cert_chains, const size_t *pem_cert_chains_sizes, size_t key_cert_pair_count, const unsigned char *pem_client_root_certs, size_t pem_client_root_certs_size, int force_client_auth, const char *cipher_list, const unsigned char **alpn_protocols, const unsigned char *alpn_protocols_lengths, uint16_t num_alpn_protocols, tsi_ssl_handshaker_factory **factory)
int | tsi_ssl_peer_matches_name (const tsi_peer *peer, const char *name)

## Macro Definition Documentation

#define TSI_OPENSSL_ALPN_SUPPORT 1

#define TSI_SSL_MAX_PROTECTED_FRAME_SIZE_LOWER_BOUND 1024

#define TSI_SSL_MAX_PROTECTED_FRAME_SIZE_UPPER_BOUND 16384

#define TSI_SSL_MAX_PROTECTION_OVERHEAD 100

## Function Documentation

tsi_result tsi_create_ssl_client_handshaker_factory | ( | const unsigned char * | pem_private_key,
|  | size_t | pem_private_key_size,
|  | const unsigned char * | pem_cert_chain,
|  | size_t | pem_cert_chain_size,
|  | const unsigned char * | pem_root_certs,
|  | size_t | pem_root_certs_size,
|  | const char * | cipher_list,
|  | const unsigned char ** | alpn_protocols,
|  | const unsigned char * | alpn_protocols_lengths,
|  | uint16_t | num_alpn_protocols,
|  | tsi_ssl_handshaker_factory ** | factory
| ) |  |

tsi_result tsi_create_ssl_server_handshaker_factory | ( | const unsigned char ** | pem_private_keys,
|  | const size_t * | pem_private_keys_sizes,
|  | const unsigned char ** | pem_cert_chains,
|  | const size_t * | pem_cert_chains_sizes,
|  | size_t | key_cert_pair_count,
|  | const unsigned char * | pem_client_root_certs,
|  | size_t | pem_client_root_certs_size,
|  | int | force_client_auth,
|  | const char * | cipher_list,
|  | const unsigned char ** | alpn_protocols,
|  | const unsigned char * | alpn_protocols_lengths,
|  | uint16_t | num_alpn_protocols,
|  | tsi_ssl_handshaker_factory ** | factory
| ) |  |

tsi_result tsi_ssl_handshaker_factory_create_handshaker | ( | tsi_ssl_handshaker_factory * | self,
|  | const char * | server_name_indication,
|  | tsi_handshaker ** | handshaker
| ) |  |

void tsi_ssl_handshaker_factory_destroy | ( | tsi_ssl_handshaker_factory * | self | ) |

int tsi_ssl_peer_matches_name | ( | const tsi_peer * | peer,
|  | const char * | name
| ) |  |