Home | History | Annotate | Download | only in apps

Lines Matching defs:scon

35 static SSL *doConnection(SSL *scon, const char *host, SSL_CTX *ctx);
94 SSL *scon = NULL;
226 if ((scon = doConnection(NULL, host, ctx)) == NULL)
232 if (buf_len <= 0 || SSL_write(scon, buf, buf_len) <= 0)
234 while ((i = SSL_read(scon, buf, sizeof(buf))) > 0)
237 SSL_set_shutdown(scon, SSL_SENT_SHUTDOWN | SSL_RECEIVED_SHUTDOWN);
238 BIO_closesocket(SSL_get_fd(scon));
241 if (SSL_session_reused(scon)) {
244 ver = SSL_version(scon);
255 SSL_free(scon);
256 scon = NULL;
279 if ((scon = doConnection(NULL, host, ctx)) == NULL) {
286 if (buf_len <= 0 || SSL_write(scon, buf, buf_len) <= 0)
288 while ((i = SSL_read(scon, buf, sizeof(buf))) > 0)
291 SSL_set_shutdown(scon, SSL_SENT_SHUTDOWN | SSL_RECEIVED_SHUTDOWN);
292 BIO_closesocket(SSL_get_fd(scon));
307 if ((doConnection(scon, host, ctx)) == NULL)
313 if (buf_len <= 0 || SSL_write(scon, buf, buf_len) <= 0)
315 while ((i = SSL_read(scon, buf, sizeof(buf))) > 0)
318 SSL_set_shutdown(scon, SSL_SENT_SHUTDOWN | SSL_RECEIVED_SHUTDOWN);
319 BIO_closesocket(SSL_get_fd(scon));
322 if (SSL_session_reused(scon)) {
325 ver = SSL_version(scon);
348 SSL_free(scon);
356 static SSL *doConnection(SSL *scon, const char *host, SSL_CTX *ctx)
368 if (scon == NULL)
371 serverCon = scon;
386 if (scon == NULL)