Lines Matching refs:c_ssl
310 int doit_biopair(SSL *s_ssl,SSL *c_ssl,long bytes,clock_t *s_time,clock_t *c_time);
311 int doit(SSL *s_ssl,SSL *c_ssl,long bytes);
375 static void print_details(SSL *c_ssl, const char *prefix)
380 ciph=SSL_get_current_cipher(c_ssl);
383 SSL_get_version(c_ssl),
386 cert=SSL_get_peer_certificate(c_ssl);
523 SSL *c_ssl,*s_ssl;
1079 c_ssl=SSL_new(c_ctx);
1083 if (c_ssl && c_ssl->kssl_ctx)
1095 kssl_ctx_setstring(c_ssl->kssl_ctx, KSSL_SERVER,
1103 if (!reuse) SSL_set_session(c_ssl,NULL);
1105 ret=doit_biopair(s_ssl,c_ssl,bytes,&s_time,&c_time);
1107 ret=doit(s_ssl,c_ssl,bytes);
1112 print_details(c_ssl, "");
1139 SSL_free(c_ssl);
1163 int doit_biopair(SSL *s_ssl, SSL *c_ssl, long count,
1186 SSL_set_connect_state(c_ssl);
1187 SSL_set_bio(c_ssl, client, client);
1188 (void)BIO_set_ssl(c_ssl_bio, c_ssl, BIO_NOCLOSE);
1246 if (SSL_in_init(c_ssl))
1248 SSL_state_string_long(c_ssl));
1507 if (strcmp("SSLv2", SSL_get_version(c_ssl)) == 0)
1512 if (strncmp("2SCF", SSL_state_string(c_ssl), 4) == 0
1528 print_details(c_ssl, "DONE via BIO pair: ");
1557 int doit(SSL *s_ssl, SSL *c_ssl, long count)
1592 SSL_set_connect_state(c_ssl);
1593 SSL_set_bio(c_ssl,s_to_c,c_to_s);
1594 BIO_set_ssl(c_bio,c_ssl,BIO_NOCLOSE);
1629 if (SSL_in_init(c_ssl))
1631 SSL_state_string_long(c_ssl));
1823 print_details(c_ssl, "DONE: ");
1828 * again when c_ssl is SSL_free()ed.
1829 * This is a hack required because s_ssl and c_ssl are sharing the same
1838 if (c_ssl != NULL)
1840 c_ssl->rbio=NULL;
1841 c_ssl->wbio=NULL;