proxygen
|
Typedefs | |
using | OPENSSL_INIT_SETTINGS = void |
Functions | |
BIO_METHOD * | BIO_meth_new (int type, const char *name) |
void | BIO_meth_free (BIO_METHOD *biom) |
int | BIO_meth_set_read (BIO_METHOD *biom, int(*read)(BIO *, char *, int)) |
int | BIO_meth_set_write (BIO_METHOD *biom, int(*write)(BIO *, const char *, int)) |
int | BIO_meth_set_puts (BIO_METHOD *biom, int(*bputs)(BIO *, const char *)) |
int | BIO_meth_set_gets (BIO_METHOD *biom, int(*bgets)(BIO *, char *, int)) |
int | BIO_meth_set_ctrl (BIO_METHOD *biom, long(*ctrl)(BIO *, int, long, void *)) |
int | BIO_meth_set_create (BIO_METHOD *biom, int(*create)(BIO *)) |
int | BIO_meth_set_destroy (BIO_METHOD *biom, int(*destroy)(BIO *)) |
void | BIO_set_data (BIO *bio, void *ptr) |
void * | BIO_get_data (BIO *bio) |
void | BIO_set_init (BIO *bio, int init) |
void | BIO_set_shutdown (BIO *bio, int shutdown) |
const SSL_METHOD * | TLS_server_method (void) |
const SSL_METHOD * | TLS_client_method (void) |
const char * | SSL_SESSION_get0_hostname (const SSL_SESSION *s) |
unsigned char * | ASN1_STRING_get0_data (const ASN1_STRING *x) |
int | SSL_SESSION_has_ticket (const SSL_SESSION *s) |
unsigned long | SSL_SESSION_get_ticket_lifetime_hint (const SSL_SESSION *s) |
int | DH_set0_pqg (DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g) |
void | DH_get0_pqg (const DH *dh, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g) |
void | DH_get0_key (const DH *dh, const BIGNUM **pub_key, const BIGNUM **priv_key) |
void | DSA_get0_pqg (const DSA *dsa, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g) |
void | DSA_get0_key (const DSA *dsa, const BIGNUM **pub_key, const BIGNUM **priv_key) |
STACK_OF (X509_OBJECT)*X509_STORE_get0_objects(X509_STORE *store) | |
X509 * | X509_STORE_CTX_get0_cert (X509_STORE_CTX *ctx) |
STACK_OF (X509)*X509_STORE_CTX_get0_chain(X509_STORE_CTX *ctx) | |
EVP_MD_CTX * | EVP_MD_CTX_new () |
void | EVP_MD_CTX_free (EVP_MD_CTX *ctx) |
HMAC_CTX * | HMAC_CTX_new () |
void | HMAC_CTX_free (HMAC_CTX *ctx) |
bool | RSA_set0_key (RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d) |
void | RSA_get0_factors (const RSA *r, const BIGNUM **p, const BIGNUM **q) |
void | RSA_get0_crt_params (const RSA *r, const BIGNUM **dmp1, const BIGNUM **dmq1, const BIGNUM **iqmp) |
int | ECDSA_SIG_set0 (ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s) |
void | ECDSA_SIG_get0 (const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps) |
int | OPENSSL_init_ssl (uint64_t, const OPENSSL_INIT_SETTINGS *) |
void | OPENSSL_cleanup () |
const ASN1_INTEGER * | X509_REVOKED_get0_serialNumber (const X509_REVOKED *r) |
const ASN1_TIME * | X509_REVOKED_get0_revocationDate (const X509_REVOKED *r) |
uint32_t | X509_get_extension_flags (X509 *x) |
uint32_t | X509_get_key_usage (X509 *x) |
uint32_t | X509_get_extended_key_usage (X509 *x) |
int | X509_OBJECT_get_type (const X509_OBJECT *obj) |
X509 * | X509_OBJECT_get0_X509 (const X509_OBJECT *obj) |
const ASN1_TIME * | X509_CRL_get0_lastUpdate (const X509_CRL *crl) |
const ASN1_TIME * | X509_CRL_get0_nextUpdate (const X509_CRL *crl) |
const X509_ALGOR * | X509_get0_tbs_sigalg (const X509 *x) |
using folly::portability::ssl::OPENSSL_INIT_SETTINGS = typedef void |
unsigned char * folly::portability::ssl::ASN1_STRING_get0_data | ( | const ASN1_STRING * | x | ) |
Definition at line 199 of file OpenSSL.cpp.
Referenced by folly::ssl::OpenSSLCertUtils::getCommonName(), wangle::SSLUtil::getSubjectAltName(), and folly::ssl::OpenSSLCertUtils::getSubjectAltNames().
void * folly::portability::ssl::BIO_get_data | ( | BIO * | bio | ) |
Definition at line 175 of file OpenSSL.cpp.
void folly::portability::ssl::BIO_meth_free | ( | BIO_METHOD * | biom | ) |
Definition at line 132 of file OpenSSL.cpp.
BIO_METHOD * folly::portability::ssl::BIO_meth_new | ( | int | type, |
const char * | name | ||
) |
Definition at line 121 of file OpenSSL.cpp.
Referenced by folly::ssl::OpenSSLUtils::newSocketBioMethod().
int folly::portability::ssl::BIO_meth_set_create | ( | BIO_METHOD * | biom, |
int(*)(BIO *) | create | ||
) |
Definition at line 161 of file OpenSSL.cpp.
Referenced by folly::ssl::OpenSSLUtils::newSocketBioMethod().
int folly::portability::ssl::BIO_meth_set_ctrl | ( | BIO_METHOD * | biom, |
long(*)(BIO *, int, long, void *) | ctrl | ||
) |
Definition at line 156 of file OpenSSL.cpp.
Referenced by folly::ssl::OpenSSLUtils::newSocketBioMethod().
int folly::portability::ssl::BIO_meth_set_destroy | ( | BIO_METHOD * | biom, |
int(*)(BIO *) | destroy | ||
) |
Definition at line 166 of file OpenSSL.cpp.
References destroy().
Referenced by folly::ssl::OpenSSLUtils::newSocketBioMethod().
int folly::portability::ssl::BIO_meth_set_gets | ( | BIO_METHOD * | biom, |
int(*)(BIO *, char *, int) | bgets | ||
) |
Definition at line 151 of file OpenSSL.cpp.
Referenced by folly::ssl::OpenSSLUtils::newSocketBioMethod().
int folly::portability::ssl::BIO_meth_set_puts | ( | BIO_METHOD * | biom, |
int(*)(BIO *, const char *) | bputs | ||
) |
Definition at line 146 of file OpenSSL.cpp.
Referenced by folly::ssl::OpenSSLUtils::newSocketBioMethod().
int folly::portability::ssl::BIO_meth_set_read | ( | BIO_METHOD * | biom, |
int(*)(BIO *, char *, int) | read | ||
) |
Definition at line 136 of file OpenSSL.cpp.
References fizz::detail::read().
Referenced by folly::ssl::OpenSSLUtils::newSocketBioMethod(), and folly::ssl::OpenSSLUtils::setCustomBioReadMethod().
int folly::portability::ssl::BIO_meth_set_write | ( | BIO_METHOD * | biom, |
int(*)(BIO *, const char *, int) | write | ||
) |
Definition at line 141 of file OpenSSL.cpp.
References fizz::detail::write().
Referenced by folly::ssl::OpenSSLUtils::newSocketBioMethod(), and folly::ssl::OpenSSLUtils::setCustomBioWriteMethod().
void folly::portability::ssl::BIO_set_data | ( | BIO * | bio, |
void * | ptr | ||
) |
Definition at line 171 of file OpenSSL.cpp.
References ptr.
void folly::portability::ssl::BIO_set_init | ( | BIO * | bio, |
int | init | ||
) |
Definition at line 179 of file OpenSSL.cpp.
References folly::init().
void folly::portability::ssl::BIO_set_shutdown | ( | BIO * | bio, |
int | shutdown | ||
) |
void folly::portability::ssl::DH_get0_key | ( | const DH * | dh, |
const BIGNUM ** | pub_key, | ||
const BIGNUM ** | priv_key | ||
) |
Definition at line 262 of file OpenSSL.cpp.
void folly::portability::ssl::DH_get0_pqg | ( | const DH * | dh, |
const BIGNUM ** | p, | ||
const BIGNUM ** | q, | ||
const BIGNUM ** | g | ||
) |
Definition at line 245 of file OpenSSL.cpp.
int folly::portability::ssl::DH_set0_pqg | ( | DH * | dh, |
BIGNUM * | p, | ||
BIGNUM * | q, | ||
BIGNUM * | g | ||
) |
void folly::portability::ssl::DSA_get0_key | ( | const DSA * | dsa, |
const BIGNUM ** | pub_key, | ||
const BIGNUM ** | priv_key | ||
) |
Definition at line 292 of file OpenSSL.cpp.
void folly::portability::ssl::DSA_get0_pqg | ( | const DSA * | dsa, |
const BIGNUM ** | p, | ||
const BIGNUM ** | q, | ||
const BIGNUM ** | g | ||
) |
Definition at line 275 of file OpenSSL.cpp.
void folly::portability::ssl::ECDSA_SIG_get0 | ( | const ECDSA_SIG * | sig, |
const BIGNUM ** | pr, | ||
const BIGNUM ** | ps | ||
) |
Definition at line 417 of file OpenSSL.cpp.
Referenced by fizz::extensions::TokenBindingConstructor::encodeEcdsaSignature(), and TEST().
int folly::portability::ssl::ECDSA_SIG_set0 | ( | ECDSA_SIG * | sig, |
BIGNUM * | r, | ||
BIGNUM * | s | ||
) |
Definition at line 405 of file OpenSSL.cpp.
References s.
Referenced by fizz::extensions::Validator::constructECDSASig(), and TEST().
void folly::portability::ssl::EVP_MD_CTX_free | ( | EVP_MD_CTX * | ctx | ) |
Definition at line 330 of file OpenSSL.cpp.
EVP_MD_CTX * folly::portability::ssl::EVP_MD_CTX_new | ( | ) |
Definition at line 321 of file OpenSSL.cpp.
Referenced by folly::ssl::OpenSSLHash::Digest::Digest(), fizz::detail::ecSign(), fizz::detail::ecVerify(), fizz::detail::rsaPssSign(), and fizz::detail::rsaPssVerify().
void folly::portability::ssl::HMAC_CTX_free | ( | HMAC_CTX * | ctx | ) |
Definition at line 346 of file OpenSSL.cpp.
HMAC_CTX * folly::portability::ssl::HMAC_CTX_new | ( | ) |
Definition at line 337 of file OpenSSL.cpp.
void folly::portability::ssl::OPENSSL_cleanup | ( | ) |
Definition at line 455 of file OpenSSL.cpp.
References folly::ssl::detail::cleanupThreadingLocks().
Referenced by main().
int folly::portability::ssl::OPENSSL_init_ssl | ( | uint64_t | , |
const OPENSSL_INIT_SETTINGS * | |||
) |
Compatibility shim for OpenSSL < 1.1.0.
For now, options and settings are ignored. We implement the most common behavior, which is to add all digests, ciphers, and strings.
Definition at line 436 of file OpenSSL.cpp.
References folly::ssl::detail::installThreadingLocks().
void folly::portability::ssl::RSA_get0_crt_params | ( | const RSA * | r, |
const BIGNUM ** | dmp1, | ||
const BIGNUM ** | dmq1, | ||
const BIGNUM ** | iqmp | ||
) |
Definition at line 388 of file OpenSSL.cpp.
void folly::portability::ssl::RSA_get0_factors | ( | const RSA * | r, |
const BIGNUM ** | p, | ||
const BIGNUM ** | q | ||
) |
Definition at line 378 of file OpenSSL.cpp.
bool folly::portability::ssl::RSA_set0_key | ( | RSA * | r, |
BIGNUM * | n, | ||
BIGNUM * | e, | ||
BIGNUM * | d | ||
) |
If the fields n and e in r are nullptr, the corresponding input parameters MUST be non-nullptr for n and e. d may be left NULL (in case only the public key is used).
Definition at line 353 of file OpenSSL.cpp.
Referenced by TEST().
const char * folly::portability::ssl::SSL_SESSION_get0_hostname | ( | const SSL_SESSION * | s | ) |
Definition at line 195 of file OpenSSL.cpp.
Referenced by wangle::SSLSessionCallbacks::removeSessionCallback(), and folly::AsyncSSLSocket::sslAccept().
unsigned long folly::portability::ssl::SSL_SESSION_get_ticket_lifetime_hint | ( | const SSL_SESSION * | s | ) |
Definition at line 207 of file OpenSSL.cpp.
Referenced by wangle::SSLSessionPersistentCacheBase< K >::getSSLSession(), and wangle::TEST_F().
int folly::portability::ssl::SSL_SESSION_has_ticket | ( | const SSL_SESSION * | s | ) |
Definition at line 203 of file OpenSSL.cpp.
Referenced by wangle::SSLSessionPersistentCacheBase< K >::getSSLSession(), and wangle::TEST_F().
folly::portability::ssl::STACK_OF | ( | X509_OBJECT | ) |
Definition at line 305 of file OpenSSL.cpp.
Referenced by fizz::JavaCryptoCertificateVerifier::createAuthorities(), fizz::DefaultCertificateVerifier::createAuthorities(), folly::ssl::getOpenSSLCipherNames(), folly::ssl::OpenSSLCertUtils::getSubjectAltNames(), STACK_OF(), and folly::ssl::OpenSSLUtils::validatePeerCertNames().
folly::portability::ssl::STACK_OF | ( | X509 | ) |
Definition at line 313 of file OpenSSL.cpp.
References STACK_OF().
const SSL_METHOD * folly::portability::ssl::TLS_client_method | ( | void | ) |
Definition at line 191 of file OpenSSL.cpp.
const SSL_METHOD * folly::portability::ssl::TLS_server_method | ( | void | ) |
Definition at line 187 of file OpenSSL.cpp.
const ASN1_TIME * folly::portability::ssl::X509_CRL_get0_lastUpdate | ( | const X509_CRL * | crl | ) |
Definition at line 494 of file OpenSSL.cpp.
const ASN1_TIME * folly::portability::ssl::X509_CRL_get0_nextUpdate | ( | const X509_CRL * | crl | ) |
Definition at line 498 of file OpenSSL.cpp.
const X509_ALGOR * folly::portability::ssl::X509_get0_tbs_sigalg | ( | const X509 * | x | ) |
Definition at line 502 of file OpenSSL.cpp.
uint32_t folly::portability::ssl::X509_get_extended_key_usage | ( | X509 * | x | ) |
Definition at line 479 of file OpenSSL.cpp.
uint32_t folly::portability::ssl::X509_get_extension_flags | ( | X509 * | x | ) |
Definition at line 471 of file OpenSSL.cpp.
uint32_t folly::portability::ssl::X509_get_key_usage | ( | X509 * | x | ) |
Definition at line 475 of file OpenSSL.cpp.
X509 * folly::portability::ssl::X509_OBJECT_get0_X509 | ( | const X509_OBJECT * | obj | ) |
Definition at line 487 of file OpenSSL.cpp.
Referenced by fizz::JavaCryptoCertificateVerifier::createAuthorities(), and fizz::DefaultCertificateVerifier::createAuthorities().
int folly::portability::ssl::X509_OBJECT_get_type | ( | const X509_OBJECT * | obj | ) |
Definition at line 483 of file OpenSSL.cpp.
Referenced by fizz::JavaCryptoCertificateVerifier::createAuthorities(), and fizz::DefaultCertificateVerifier::createAuthorities().
const ASN1_TIME * folly::portability::ssl::X509_REVOKED_get0_revocationDate | ( | const X509_REVOKED * | r | ) |
Definition at line 467 of file OpenSSL.cpp.
Referenced by TEST().
const ASN1_INTEGER * folly::portability::ssl::X509_REVOKED_get0_serialNumber | ( | const X509_REVOKED * | r | ) |
Definition at line 463 of file OpenSSL.cpp.
Referenced by TEST().
X509 * folly::portability::ssl::X509_STORE_CTX_get0_cert | ( | X509_STORE_CTX * | ctx | ) |
Definition at line 309 of file OpenSSL.cpp.