|
|
@@ -18,6 +18,7 @@ |
|
|
|
#include <stdint.h> |
|
|
|
|
|
|
|
#include <openssl/bio.h> |
|
|
|
#include <openssl/bn.h> |
|
|
|
#include <openssl/dh.h> |
|
|
|
#include <openssl/evp.h> |
|
|
|
#include <openssl/hmac.h> |
|
|
@@ -69,6 +70,9 @@ class ScopedOpenSSLContext { |
|
|
|
}; |
|
|
|
|
|
|
|
using ScopedBIO = ScopedOpenSSLType<BIO, BIO_vfree>; |
|
|
|
using ScopedBIGNUM = ScopedOpenSSLType<BIGNUM, BN_free>; |
|
|
|
using ScopedBN_CTX = ScopedOpenSSLType<BN_CTX, BN_CTX_free>; |
|
|
|
using ScopedBN_MONT_CTX = ScopedOpenSSLType<BN_MONT_CTX, BN_MONT_CTX_free>; |
|
|
|
using ScopedDH = ScopedOpenSSLType<DH, DH_free>; |
|
|
|
using ScopedEVP_PKEY = ScopedOpenSSLType<EVP_PKEY, EVP_PKEY_free>; |
|
|
|
using ScopedPKCS8_PRIV_KEY_INFO = ScopedOpenSSLType<PKCS8_PRIV_KEY_INFO, |
|
|
|