12#ifndef HAVE_EVP_MD_CTX_NEW
13#ifdef HAVE_EVP_MD_CTX_CREATE
17inline EVP_MD_CTX* EVP_MD_CTX_new() {
18 return (EVP_MD_CTX_create());
22#error have no EVP_MD_CTX_new() nor EVP_MD_CTX_create()
26#ifndef HAVE_EVP_MD_CTX_FREE
27#ifdef HAVE_EVP_MD_CTX_DESTROY
31inline void EVP_MD_CTX_free(EVP_MD_CTX* ctx) {
32 EVP_MD_CTX_destroy(ctx);
36#error have no EVP_MD_CTX_free() nor EVP_MD_CTX_destroy()
44#ifndef HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY
45#ifdef HAVE_EVP_PKEY_NEW_MAC_KEY
50inline EVP_PKEY* EVP_PKEY_new_raw_private_key(
int type, ENGINE* e,
51 const unsigned char *key,
53 return (EVP_PKEY_new_mac_key(type, e, key,
static_cast<int>(keylen)));
57#error have no EVP_PKEY_new_raw_private_key() nor EVP_PKEY_new_mac_key()