MCPcopy Create free account
hub / github.com/F-Stack/f-stack / tlsCleanup

Function tlsCleanup

app/redis-6.2.6/src/tls.c:169–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void tlsCleanup(void) {
170 if (redis_tls_ctx) {
171 SSL_CTX_free(redis_tls_ctx);
172 redis_tls_ctx = NULL;
173 }
174 if (redis_tls_client_ctx) {
175 SSL_CTX_free(redis_tls_client_ctx);
176 redis_tls_client_ctx = NULL;
177 }
178
179 #if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
180 // unavailable on LibreSSL
181 OPENSSL_cleanup();
182 #endif
183}
184
185/* Callback for passing a keyfile password stored as an sds to OpenSSL */
186static int tlsPasswordCallback(char *buf, int size, int rwflag, void *u) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected