2018-06-13 13:42:25 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* See the COPYRIGHT file distributed with this work for additional
|
|
|
|
* information regarding copyright ownership.
|
|
|
|
*/
|
|
|
|
|
2018-06-14 23:54:48 +02:00
|
|
|
#pragma once
|
2018-06-13 13:42:25 +02:00
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
2018-06-14 23:54:48 +02:00
|
|
|
#if HAVE_OPENSSL
|
|
|
|
|
2018-06-13 13:42:25 +02:00
|
|
|
#include <openssl/opensslv.h>
|
|
|
|
|
|
|
|
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
|
|
|
|
|
|
|
#include <openssl/engine.h>
|
|
|
|
#include <openssl/hmac.h>
|
|
|
|
|
|
|
|
void *OPENSSL_zalloc(size_t size);
|
|
|
|
EVP_CIPHER_CTX* EVP_CIPHER_CTX_new(void);
|
|
|
|
void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx);
|
|
|
|
EVP_MD_CTX *EVP_MD_CTX_new(void);
|
|
|
|
void EVP_MD_CTX_free(EVP_MD_CTX *ctx);
|
|
|
|
int EVP_MD_CTX_reset(EVP_MD_CTX *ctx);
|
|
|
|
HMAC_CTX *HMAC_CTX_new(void);
|
|
|
|
void HMAC_CTX_free(HMAC_CTX *ctx);
|
|
|
|
int HMAC_CTX_reset(HMAC_CTX *ctx);
|
|
|
|
|
2018-06-14 23:54:48 +02:00
|
|
|
#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) */
|
2018-06-13 13:42:25 +02:00
|
|
|
|
2018-06-14 23:54:48 +02:00
|
|
|
#endif /* HAVE_OPENSSL */
|