MCPcopy Create free account
hub / github.com/apache/brpc / MaybeSetKeyLogCallback

Function MaybeSetKeyLogCallback

src/brpc/details/ssl_helper.cpp:221–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221static void MaybeSetKeyLogCallback(SSL_CTX* ctx) {
222 pthread_once(&g_ssl_keylog_once, InitSSLKeyLogFile);
223 if (ctx != NULL && g_ssl_keylog_file != NULL) {
224 SSL_CTX_set_keylog_callback(ctx, SSLKeyLogCallback);
225 }
226}
227#else
228static void MaybeSetKeyLogCallback(SSL_CTX* ctx) {
229 (void)ctx;

Callers 2

CreateClientSSLContextFunction · 0.85
CreateServerSSLContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected