]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-dcrypt: Clarify when dcrypt_deinitialize is to be used
authorAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 22 Aug 2019 10:58:52 +0000 (13:58 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 29 Aug 2019 07:55:56 +0000 (07:55 +0000)
It should never be called if it's going to be used later on.

src/lib-dcrypt/dcrypt.h

index a8b4588b3504a18ddb182c82d21ca59196da0b46..539c0e797826dd618f797c31f49d8e3dde708160 100644 (file)
@@ -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);