29#ifndef OCI_SSL_DELETERS_H
30#define OCI_SSL_DELETERS_H
32#include <openssl/evp.h>
33#include <openssl/pem.h>
53 if (
p) ASN1_STRING_free(
p);
58 if (
p) EVP_PKEY_free(
p);
64#if OPENSSL_VERSION_NUMBER > 0x10100000L
65 if (
p) EVP_MD_CTX_free(
p);
68 if (
p) EVP_MD_CTX_destroy(
p);
73using BIO_ptr = std::unique_ptr<BIO, BIO_deleter>;
74using X509_ptr = std::unique_ptr<X509, X509_deleter>;
const char * p
Definition: ctype-mb.cc:1235
constexpr value_type ssl
Definition: classic_protocol_constants.h:49
std::unique_ptr< EVP_MD_CTX, EVP_MD_CTX_deleter > EVP_MD_CTX_ptr
Definition: ssl_ptr.h:77
std::unique_ptr< X509, X509_deleter > X509_ptr
Definition: ssl_ptr.h:74
std::unique_ptr< ASN1_TIME, ASN1_TIME_deleter > ASN1_TIME_ptr
Definition: ssl_ptr.h:75
std::unique_ptr< BIO, BIO_deleter > BIO_ptr
Definition: ssl_ptr.h:73
std::unique_ptr< EVP_PKEY, EVP_PKEY_deleter > EVP_PKEY_ptr
Definition: ssl_ptr.h:76
Definition: signing_key.cc:36
void operator()(ASN1_TIME *p) const
Definition: ssl_ptr.h:52
void operator()(BIO *p) const
Definition: ssl_ptr.h:40
void operator()(EVP_MD_CTX *p) const
Definition: ssl_ptr.h:63
void operator()(EVP_PKEY *p) const
Definition: ssl_ptr.h:57
void operator()(X509 *p) const
Definition: ssl_ptr.h:46