| 414 | } tls_connection; |
| 415 | |
| 416 | static 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 | |
| 427 | connection *connCreateTLS(void) { |
| 428 | return createTLSConnection(1); |
no test coverage detected