Lines Matching refs:scon
118 static SSL *doConnection(SSL *scon);
352 SSL *scon = NULL;
421 if ((scon = doConnection(NULL)) == NULL)
427 SSL_write(scon, buf, strlen(buf));
428 while ((i = SSL_read(scon, buf, sizeof(buf))) > 0)
432 SSL_set_shutdown(scon, SSL_SENT_SHUTDOWN | SSL_RECEIVED_SHUTDOWN);
434 SSL_shutdown(scon);
436 SHUTDOWN2(SSL_get_fd(scon));
439 if (SSL_session_reused(scon))
442 ver = SSL_version(scon);
455 SSL_free(scon);
456 scon = NULL;
478 if ((scon = doConnection(NULL)) == NULL) {
485 SSL_write(scon, buf, strlen(buf));
486 while (SSL_read(scon, buf, sizeof(buf)) > 0) ;
489 SSL_set_shutdown(scon, SSL_SENT_SHUTDOWN | SSL_RECEIVED_SHUTDOWN);
491 SSL_shutdown(scon);
493 SHUTDOWN2(SSL_get_fd(scon));
516 if ((doConnection(scon)) == NULL)
522 SSL_write(scon, buf, strlen(buf));
523 while ((i = SSL_read(scon, buf, sizeof(buf))) > 0)
527 SSL_set_shutdown(scon, SSL_SENT_SHUTDOWN | SSL_RECEIVED_SHUTDOWN);
529 SSL_shutdown(scon);
531 SHUTDOWN2(SSL_get_fd(scon));
534 if (SSL_session_reused(scon))
537 ver = SSL_version(scon);
562 if (scon != NULL)
563 SSL_free(scon);
576 * scon = earlier ssl connection for session id, or NULL
580 static SSL *doConnection(SSL *scon)
593 if (scon == NULL)
596 serverCon = scon;
603 if (scon != NULL)
604 SSL_set_session(serverCon, SSL_get_session(scon));
635 if (scon == NULL)