Lines Matching refs:scon

35 static SSL *doConnection(SSL *scon, const char *host, SSL_CTX *ctx);
118 SSL *scon = NULL; in s_time_main() local
280 if ((scon = doConnection(NULL, host, ctx)) == NULL) in s_time_main()
286 if (buf_len <= 0 || SSL_write(scon, buf, buf_len) <= 0) in s_time_main()
288 while ((i = SSL_read(scon, buf, sizeof(buf))) > 0) in s_time_main()
291 SSL_set_shutdown(scon, SSL_SENT_SHUTDOWN | SSL_RECEIVED_SHUTDOWN); in s_time_main()
292 BIO_closesocket(SSL_get_fd(scon)); in s_time_main()
295 if (SSL_session_reused(scon)) { in s_time_main()
298 ver = SSL_version(scon); in s_time_main()
309 SSL_free(scon); in s_time_main()
310 scon = NULL; in s_time_main()
333 if ((scon = doConnection(NULL, host, ctx)) == NULL) { in s_time_main()
340 if (buf_len <= 0 || SSL_write(scon, buf, buf_len) <= 0) in s_time_main()
342 while ((i = SSL_read(scon, buf, sizeof(buf))) > 0) in s_time_main()
345 SSL_set_shutdown(scon, SSL_SENT_SHUTDOWN | SSL_RECEIVED_SHUTDOWN); in s_time_main()
346 if ((fd = SSL_get_fd(scon)) >= 0) in s_time_main()
362 if ((doConnection(scon, host, ctx)) == NULL) in s_time_main()
368 if (buf_len <= 0 || SSL_write(scon, buf, buf_len) <= 0) in s_time_main()
370 while ((i = SSL_read(scon, buf, sizeof(buf))) > 0) in s_time_main()
373 SSL_set_shutdown(scon, SSL_SENT_SHUTDOWN | SSL_RECEIVED_SHUTDOWN); in s_time_main()
374 if ((fd = SSL_get_fd(scon)) >= 0) in s_time_main()
378 if (SSL_session_reused(scon)) { in s_time_main()
381 ver = SSL_version(scon); in s_time_main()
407 SSL_free(scon); in s_time_main()
415 static SSL *doConnection(SSL *scon, const char *host, SSL_CTX *ctx) in doConnection() argument
430 if (scon == NULL) { in doConnection()
437 serverCon = scon; in doConnection()
452 if (scon == NULL) in doConnection()