Browse code

0.101.0 - Removing call to EVP_cleanup since cleanup is now handled by auto-deinit

Mickey Sola authored on 2018/08/09 04:00:06
Showing 2 changed files
... ...
@@ -197,13 +197,22 @@ struct cl_engine;
197 197
 struct cl_settings;
198 198
 
199 199
 /**
200
- * Initialize the crypto system.
200
+ * @brief This function initializes the openssl crypto system
201
+ *
202
+ * Called by cl_init() and does not need to be cleaned up as de-init
203
+ * is handled automatically by openssl 1.0.2.h and 1.1.0
204
+ *
201 205
  * @return Always returns 0
202
- */
206
+ *
207
+ */ 
203 208
 int cl_initialize_crypto(void);
204 209
 
205 210
 /**
206
- * Cleanup the crypto system prior to program exit
211
+ * @brief This is a deprecated function that used to clean up ssl crypto inits
212
+ * 
213
+ * Call to EVP_cleanup() has been removed since cleanup is now handled by 
214
+ * auto-deinit as of openssl 1.0.2h and 1.1.0 
215
+ *
207 216
  */
208 217
 void cl_cleanup_crypto(void);
209 218
 
... ...
@@ -120,6 +120,16 @@ time_t timegm(struct tm *t)
120 120
 }
121 121
 #endif
122 122
 
123
+
124
+/**
125
+ * @brief This function initializes the openssl crypto system
126
+ *
127
+ * Called by cl_init() and does not need to be cleaned up as de-init
128
+ * is handled automatically by openssl 1.0.2.h and 1.1.0
129
+ *
130
+ * @return Always returns 0
131
+ *
132
+ */
123 133
 int cl_initialize_crypto(void)
124 134
 {
125 135
     SSL_load_error_strings();
... ...
@@ -132,9 +142,16 @@ int cl_initialize_crypto(void)
132 132
     return 0;
133 133
 }
134 134
 
135
+/**
136
+ * @brief This is a deprecated function that used to clean up ssl crypto inits
137
+ * 
138
+ * Call to EVP_cleanup() has been removed since cleanup is now handled by 
139
+ * auto-deinit as of openssl 1.0.2h and 1.1.0 
140
+ *
141
+ */
135 142
 void cl_cleanup_crypto(void)
136 143
 {
137
-    EVP_cleanup();
144
+    return;
138 145
 }
139 146
 
140 147
 unsigned char *cl_hash_data(const char *alg, const void *buf, size_t len, unsigned char *obuf, unsigned int *olen)