mirror of
https://github.com/openssl/openssl.git
synced 2024-12-27 06:21:43 +08:00
32e3c07137
evp_method_store_flush() and evp_method_store_remove_all_provided() only cover EVP operations, but not encoders, decoders and store loaders. This adds corresponding methods for those as well. Without this, their method stores are never cleaned up when the corresponding providers are deactivated or otherwise modified. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18151)
23 lines
778 B
C
23 lines
778 B
C
/*
|
|
* Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
|
|
*
|
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
* in the file LICENSE in the source distribution or at
|
|
* https://www.openssl.org/source/license.html
|
|
*/
|
|
|
|
#ifndef OSSL_CRYPTO_ENCODER_H
|
|
# define OSSL_CRYPTO_ENCODER_H
|
|
# pragma once
|
|
|
|
# include <openssl/types.h>
|
|
|
|
OSSL_ENCODER *ossl_encoder_fetch_by_number(OSSL_LIB_CTX *libctx, int id,
|
|
const char *properties);
|
|
int ossl_encoder_get_number(const OSSL_ENCODER *encoder);
|
|
int ossl_encoder_store_cache_flush(OSSL_LIB_CTX *libctx);
|
|
int ossl_encoder_store_remove_all_provided(const OSSL_PROVIDER *prov);
|
|
|
|
#endif
|