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:1225
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: encode_ptr.h:77
std::unique_ptr< X509, X509_deleter > X509_ptr
Definition: encode_ptr.h:74
std::unique_ptr< ASN1_TIME, ASN1_TIME_deleter > ASN1_TIME_ptr
Definition: encode_ptr.h:75
std::unique_ptr< BIO, BIO_deleter > BIO_ptr
Definition: encode_ptr.h:73
std::unique_ptr< EVP_PKEY, EVP_PKEY_deleter > EVP_PKEY_ptr
Definition: encode_ptr.h:76
Definition: my_base64_encode.cc:41
Definition: encode_ptr.h:51
void operator()(ASN1_TIME *p) const
Definition: encode_ptr.h:52
Definition: encode_ptr.h:39
void operator()(BIO *p) const
Definition: encode_ptr.h:40
Definition: encode_ptr.h:62
void operator()(EVP_MD_CTX *p) const
Definition: encode_ptr.h:63
Definition: encode_ptr.h:56
void operator()(EVP_PKEY *p) const
Definition: encode_ptr.h:57
Definition: encode_ptr.h:45
void operator()(X509 *p) const
Definition: encode_ptr.h:46