From: Aki Tuomi Date: Thu, 22 Aug 2019 10:58:52 +0000 (+0300) Subject: lib-dcrypt: Clarify when dcrypt_deinitialize is to be used X-Git-Tag: 2.3.9~256 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e437d54cd36554c3b3ecc0af7e08b1aaaa6099b;p=thirdparty%2Fdovecot%2Fcore.git lib-dcrypt: Clarify when dcrypt_deinitialize is to be used It should never be called if it's going to be used later on. --- diff --git a/src/lib-dcrypt/dcrypt.h b/src/lib-dcrypt/dcrypt.h index a8b4588b35..539c0e7978 100644 --- a/src/lib-dcrypt/dcrypt.h +++ b/src/lib-dcrypt/dcrypt.h @@ -71,7 +71,11 @@ bool dcrypt_initialize(const char *backend, const struct dcrypt_settings *set, const char **error_r); /** - * deinitialize dcrypt + * deinitialize dcrypt. + * + * NOTE: Do not call this function if you are going to use dcrypt later on. + * Deinitializing the library using this will not allow it to be reinitialized + * when using OpenSSL. */ void dcrypt_deinitialize(void);