mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-22 18:19:42 +00:00
The command used to reformat the files in this commit was: ./util/run-clang-tidy \ -clang-tidy-binary clang-tidy-11 -clang-apply-replacements-binary clang-apply-replacements-11 \ -checks=-*,readability-braces-around-statements \ -j 9 \ -fix \ -format \ -style=file \ -quiet clang-format -i --style=format $(git ls-files '*.c' '*.h') uncrustify -c .uncrustify.cfg --replace --no-backup $(git ls-files '*.c' '*.h') clang-format -i --style=format $(git ls-files '*.c' '*.h')
70 lines
1.6 KiB
C
70 lines
1.6 KiB
C
/*
|
|
* 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.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <openssl/crypto.h>
|
|
#include <openssl/engine.h>
|
|
#include <openssl/evp.h>
|
|
#include <openssl/hmac.h>
|
|
#include <openssl/opensslv.h>
|
|
|
|
#if !HAVE_CRYPTO_ZALLOC
|
|
void *
|
|
CRYPTO_zalloc(size_t size);
|
|
#define OPENSSL_zalloc(num) CRYPTO_zalloc(num)
|
|
#endif /* if !HAVE_CRYPTO_ZALLOC */
|
|
|
|
#if !HAVE_EVP_CIPHER_CTX_NEW
|
|
EVP_CIPHER_CTX *
|
|
EVP_CIPHER_CTX_new(void);
|
|
#endif /* if !HAVE_EVP_CIPHER_CTX_NEW */
|
|
|
|
#if !HAVE_EVP_CIPHER_CTX_FREE
|
|
void
|
|
EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx);
|
|
#endif /* if !HAVE_EVP_CIPHER_CTX_FREE */
|
|
|
|
#if !HAVE_EVP_MD_CTX_NEW
|
|
EVP_MD_CTX *
|
|
EVP_MD_CTX_new(void);
|
|
#endif /* if !HAVE_EVP_MD_CTX_NEW */
|
|
|
|
#if !HAVE_EVP_MD_CTX_FREE
|
|
void
|
|
EVP_MD_CTX_free(EVP_MD_CTX *ctx);
|
|
#endif /* if !HAVE_EVP_MD_CTX_FREE */
|
|
|
|
#if !HAVE_EVP_MD_CTX_RESET
|
|
int
|
|
EVP_MD_CTX_reset(EVP_MD_CTX *ctx);
|
|
#endif /* if !HAVE_EVP_MD_CTX_RESET */
|
|
|
|
#if !HAVE_HMAC_CTX_NEW
|
|
HMAC_CTX *
|
|
HMAC_CTX_new(void);
|
|
#endif /* if !HAVE_HMAC_CTX_NEW */
|
|
|
|
#if !HAVE_HMAC_CTX_FREE
|
|
void
|
|
HMAC_CTX_free(HMAC_CTX *ctx);
|
|
#endif /* if !HAVE_HMAC_CTX_FREE */
|
|
|
|
#if !HAVE_HMAC_CTX_RESET
|
|
int
|
|
HMAC_CTX_reset(HMAC_CTX *ctx);
|
|
#endif /* if !HAVE_HMAC_CTX_RESET */
|
|
|
|
#if !HAVE_HMAC_CTX_GET_MD
|
|
const EVP_MD *
|
|
HMAC_CTX_get_md(const HMAC_CTX *ctx);
|
|
#endif /* if !HAVE_HMAC_CTX_GET_MD */
|