Lines Matching defs:c_ssl
225 int doit_biopair(SSL *s_ssl,SSL *c_ssl,long bytes,clock_t *s_time,clock_t *c_time);
226 int doit(SSL *s_ssl,SSL *c_ssl,long bytes);
279 static void print_details(SSL *c_ssl, const char *prefix)
284 ciph=SSL_get_current_cipher(c_ssl);
287 SSL_get_version(c_ssl),
290 cert=SSL_get_peer_certificate(c_ssl);
408 SSL *c_ssl,*s_ssl;
836 c_ssl=SSL_new(c_ctx);
840 if (c_ssl && c_ssl->kssl_ctx)
852 kssl_ctx_setstring(c_ssl->kssl_ctx, KSSL_SERVER,
860 if (!reuse) SSL_set_session(c_ssl,NULL);
862 ret=doit_biopair(s_ssl,c_ssl,bytes,&s_time,&c_time);
864 ret=doit(s_ssl,c_ssl,bytes);
869 print_details(c_ssl, "");
896 SSL_free(c_ssl);
920 int doit_biopair(SSL *s_ssl, SSL *c_ssl, long count,
943 SSL_set_connect_state(c_ssl);
944 SSL_set_bio(c_ssl, client, client);
945 (void)BIO_set_ssl(c_ssl_bio, c_ssl, BIO_NOCLOSE);
1003 if (SSL_in_init(c_ssl))
1005 SSL_state_string_long(c_ssl));
1264 if (strcmp("SSLv2", SSL_get_version(c_ssl)) == 0)
1269 if (strncmp("2SCF", SSL_state_string(c_ssl), 4) == 0
1285 print_details(c_ssl, "DONE via BIO pair: ");
1314 int doit(SSL *s_ssl, SSL *c_ssl, long count)
1350 SSL_set_connect_state(c_ssl);
1351 SSL_set_bio(c_ssl,s_to_c,c_to_s);
1352 BIO_set_ssl(c_bio,c_ssl,BIO_NOCLOSE);
1389 if (SSL_in_init(c_ssl))
1391 SSL_state_string_long(c_ssl));
1583 print_details(c_ssl, "DONE: ");
1588 * again when c_ssl is SSL_free()ed.
1589 * This is a hack required because s_ssl and c_ssl are sharing the same
1598 if (c_ssl != NULL)
1600 c_ssl->rbio=NULL;
1601 c_ssl->wbio=NULL;