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

Function createTLSConnection

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

Source from the content-addressed store, hash-verified

414} tls_connection;
415
416static connection *createTLSConnection(int client_side) {
417 SSL_CTX *ctx = redis_tls_ctx;
418 if (client_side && redis_tls_client_ctx)
419 ctx = redis_tls_client_ctx;
420 tls_connection *conn = zcalloc(sizeof(tls_connection));
421 conn->c.type = &CT_TLS;
422 conn->c.fd = -1;
423 conn->ssl = SSL_new(ctx);
424 return (connection *) conn;
425}
426
427connection *connCreateTLS(void) {
428 return createTLSConnection(1);

Callers 2

connCreateTLSFunction · 0.85
connCreateAcceptedTLSFunction · 0.85

Calls 1

zcallocFunction · 0.70

Tested by

no test coverage detected