proxygen
OpenSSL.h File Reference
#include <cstdint>
#include <folly/portability/Windows.h>
#include <folly/Portability.h>
#include <openssl/opensslv.h>
#include <openssl/asn1.h>
#include <openssl/bio.h>
#include <openssl/crypto.h>
#include <openssl/dh.h>
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/hmac.h>
#include <openssl/rand.h>
#include <openssl/rsa.h>
#include <openssl/sha.h>
#include <openssl/ssl.h>
#include <openssl/tls1.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>
#include <openssl/ec.h>
#include <openssl/ecdsa.h>

Go to the source code of this file.

Namespaces

 folly
 —— Concurrent Priority Queue Implementation ——
 
 folly::portability
 
 folly::portability::ssl
 

Macros

#define FOLLY_OPENSSL_IS_100
 
#define FOLLY_OPENSSL_IS_101
 
#define FOLLY_OPENSSL_IS_102
 
#define FOLLY_OPENSSL_IS_110   (OPENSSL_VERSION_NUMBER >= 0x10100000L)
 
#define FOLLY_OPENSSL_HAS_SNI   0
 
#define FOLLY_OPENSSL_HAS_ALPN   0
 

Typedefs

using folly::portability::ssl::OPENSSL_INIT_SETTINGS = void
 

Functions

BIO_METHOD * folly::portability::ssl::BIO_meth_new (int type, const char *name)
 
void folly::portability::ssl::BIO_meth_free (BIO_METHOD *biom)
 
int folly::portability::ssl::BIO_meth_set_read (BIO_METHOD *biom, int(*read)(BIO *, char *, int))
 
int folly::portability::ssl::BIO_meth_set_write (BIO_METHOD *biom, int(*write)(BIO *, const char *, int))
 
int folly::portability::ssl::BIO_meth_set_puts (BIO_METHOD *biom, int(*bputs)(BIO *, const char *))
 
int folly::portability::ssl::BIO_meth_set_gets (BIO_METHOD *biom, int(*bgets)(BIO *, char *, int))
 
int folly::portability::ssl::BIO_meth_set_ctrl (BIO_METHOD *biom, long(*ctrl)(BIO *, int, long, void *))
 
int folly::portability::ssl::BIO_meth_set_create (BIO_METHOD *biom, int(*create)(BIO *))
 
int folly::portability::ssl::BIO_meth_set_destroy (BIO_METHOD *biom, int(*destroy)(BIO *))
 
void folly::portability::ssl::BIO_set_data (BIO *bio, void *ptr)
 
void * folly::portability::ssl::BIO_get_data (BIO *bio)
 
void folly::portability::ssl::BIO_set_init (BIO *bio, int init)
 
void folly::portability::ssl::BIO_set_shutdown (BIO *bio, int shutdown)
 
const SSL_METHOD * folly::portability::ssl::TLS_server_method (void)
 
const SSL_METHOD * folly::portability::ssl::TLS_client_method (void)
 
const char * folly::portability::ssl::SSL_SESSION_get0_hostname (const SSL_SESSION *s)
 
unsigned char * folly::portability::ssl::ASN1_STRING_get0_data (const ASN1_STRING *x)
 
EVP_MD_CTX * folly::portability::ssl::EVP_MD_CTX_new ()
 
void folly::portability::ssl::EVP_MD_CTX_free (EVP_MD_CTX *ctx)
 
HMAC_CTX * folly::portability::ssl::HMAC_CTX_new ()
 
void folly::portability::ssl::HMAC_CTX_free (HMAC_CTX *ctx)
 
unsigned long folly::portability::ssl::SSL_SESSION_get_ticket_lifetime_hint (const SSL_SESSION *s)
 
int folly::portability::ssl::SSL_SESSION_has_ticket (const SSL_SESSION *s)
 
int folly::portability::ssl::DH_set0_pqg (DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g)
 
void folly::portability::ssl::DH_get0_pqg (const DH *dh, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g)
 
void folly::portability::ssl::DH_get0_key (const DH *dh, const BIGNUM **pub_key, const BIGNUM **priv_key)
 
void folly::portability::ssl::DSA_get0_pqg (const DSA *dsa, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g)
 
void folly::portability::ssl::DSA_get0_key (const DSA *dsa, const BIGNUM **pub_key, const BIGNUM **priv_key)
 
 folly::portability::ssl::STACK_OF (X509_OBJECT)*X509_STORE_get0_objects(X509_STORE *store)
 
X509 * folly::portability::ssl::X509_STORE_CTX_get0_cert (X509_STORE_CTX *ctx)
 
 folly::portability::ssl::STACK_OF (X509)*X509_STORE_CTX_get0_chain(X509_STORE_CTX *ctx)
 
bool folly::portability::ssl::RSA_set0_key (RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d)
 
void folly::portability::ssl::RSA_get0_factors (const RSA *r, const BIGNUM **p, const BIGNUM **q)
 
void folly::portability::ssl::RSA_get0_crt_params (const RSA *r, const BIGNUM **dmp1, const BIGNUM **dmq1, const BIGNUM **iqmp)
 
int folly::portability::ssl::ECDSA_SIG_set0 (ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s)
 
void folly::portability::ssl::ECDSA_SIG_get0 (const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps)
 
int folly::portability::ssl::OPENSSL_init_ssl (uint64_t, const OPENSSL_INIT_SETTINGS *)
 
void folly::portability::ssl::OPENSSL_cleanup ()
 
const ASN1_INTEGER * folly::portability::ssl::X509_REVOKED_get0_serialNumber (const X509_REVOKED *r)
 
const ASN1_TIME * folly::portability::ssl::X509_REVOKED_get0_revocationDate (const X509_REVOKED *r)
 
uint32_t folly::portability::ssl::X509_get_extension_flags (X509 *x)
 
uint32_t folly::portability::ssl::X509_get_key_usage (X509 *x)
 
uint32_t folly::portability::ssl::X509_get_extended_key_usage (X509 *x)
 
int folly::portability::ssl::X509_OBJECT_get_type (const X509_OBJECT *obj)
 
X509 * folly::portability::ssl::X509_OBJECT_get0_X509 (const X509_OBJECT *obj)
 
const ASN1_TIME * folly::portability::ssl::X509_CRL_get0_lastUpdate (const X509_CRL *crl)
 
const ASN1_TIME * folly::portability::ssl::X509_CRL_get0_nextUpdate (const X509_CRL *crl)
 
const X509_ALGOR * folly::portability::ssl::X509_get0_tbs_sigalg (const X509 *x)
 

Macro Definition Documentation

#define FOLLY_OPENSSL_HAS_ALPN   0

Definition at line 82 of file OpenSSL.h.

#define FOLLY_OPENSSL_HAS_SNI   0

Definition at line 74 of file OpenSSL.h.

#define FOLLY_OPENSSL_IS_100
Value:
(OPENSSL_VERSION_NUMBER >= 0x10000003L && \
OPENSSL_VERSION_NUMBER < 0x1000105fL)

Definition at line 52 of file OpenSSL.h.

#define FOLLY_OPENSSL_IS_101
Value:
(OPENSSL_VERSION_NUMBER >= 0x1000105fL && \
OPENSSL_VERSION_NUMBER < 0x1000200fL)

Definition at line 55 of file OpenSSL.h.

#define FOLLY_OPENSSL_IS_102
Value:
(OPENSSL_VERSION_NUMBER >= 0x1000200fL && \
OPENSSL_VERSION_NUMBER < 0x10100000L)

Definition at line 58 of file OpenSSL.h.

#define FOLLY_OPENSSL_IS_110   (OPENSSL_VERSION_NUMBER >= 0x10100000L)

Definition at line 61 of file OpenSSL.h.