mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-29 23:03:48 -04:00
Get rid of the OpenSSL-isms that plague the codebase where the hash type is `EVP_MD *` By using a proper enum, alongside the cleanup, we also get the ability to use constants for known hash sizes instead of having a function call every time. `EVP_MD_CTX_get0_md` has been removed instead of being adapted since it wasn't used anymore.
43 lines
842 B
C
43 lines
842 B
C
/*
|
|
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
|
*
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*
|
|
* 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 https://mozilla.org/MPL/2.0/.
|
|
*
|
|
* See the COPYRIGHT file distributed with this work for additional
|
|
* information regarding copyright ownership.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <isc/types.h>
|
|
|
|
bool
|
|
isc_crypto_fips_mode(void);
|
|
/*
|
|
* Return if FIPS mode is currently enabled or not.
|
|
*/
|
|
|
|
isc_result_t
|
|
isc_crypto_fips_enable(void);
|
|
/*
|
|
* Enable FIPS mode. It cannot be disabled afterwards.
|
|
*
|
|
* This function is NOT thread safe.
|
|
*/
|
|
|
|
/**
|
|
* Private
|
|
*/
|
|
|
|
void
|
|
isc__crypto_setdestroycheck(bool check);
|
|
|
|
void
|
|
isc__crypto_initialize(void);
|
|
|
|
void
|
|
isc__crypto_shutdown(void);
|