Lines Matching defs:s_ctx
168 int doit(io_channel chan, SSL_CTX *s_ctx);
218 SSL_CTX *s_ctx = NULL;
246 * s_ctx=SSL_CTX_new(SSLv2());
248 s_ctx = SSL_CTX_new(SSLv2_server_method());
250 if (s_ctx == NULL)
253 SSL_CTX_use_certificate_file(s_ctx, TEST_SERVER_CERT, SSL_FILETYPE_PEM);
254 SSL_CTX_use_RSAPrivateKey_file(s_ctx, TEST_SERVER_CERT, SSL_FILETYPE_PEM);
261 status = doit(chan, s_ctx);
267 if (s_ctx != NULL)
268 SSL_CTX_free(s_ctx);
273 int doit(io_channel chan, SSL_CTX *s_ctx)
286 s_ssl = SSL_new(s_ctx);