Lines Matching refs:sockindex
300 ssl_connect_init_proxy(struct connectdata *conn, int sockindex) in ssl_connect_init_proxy() argument
302 DEBUGASSERT(conn->bits.proxy_ssl_connected[sockindex]); in ssl_connect_init_proxy()
303 if(ssl_connection_complete == conn->ssl[sockindex].state && in ssl_connect_init_proxy()
304 !conn->proxy_ssl[sockindex].use) { in ssl_connect_init_proxy()
312 pbdata = conn->proxy_ssl[sockindex].backend; in ssl_connect_init_proxy()
313 conn->proxy_ssl[sockindex] = conn->ssl[sockindex]; in ssl_connect_init_proxy()
315 memset(&conn->ssl[sockindex], 0, sizeof(conn->ssl[sockindex])); in ssl_connect_init_proxy()
318 conn->ssl[sockindex].backend = pbdata; in ssl_connect_init_proxy()
326 int sockindex) in Curl_ssl_connect() argument
331 if(conn->bits.proxy_ssl_connected[sockindex]) { in Curl_ssl_connect()
332 result = ssl_connect_init_proxy(conn, sockindex); in Curl_ssl_connect()
342 conn->ssl[sockindex].use = TRUE; in Curl_ssl_connect()
343 conn->ssl[sockindex].state = ssl_connection_negotiating; in Curl_ssl_connect()
345 result = Curl_ssl->connect_blocking(data, conn, sockindex); in Curl_ssl_connect()
350 conn->ssl[sockindex].use = FALSE; in Curl_ssl_connect()
357 bool isproxy, int sockindex, bool *done) in Curl_ssl_connect_nonblocking() argument
362 if(conn->bits.proxy_ssl_connected[sockindex]) { in Curl_ssl_connect_nonblocking()
363 result = ssl_connect_init_proxy(conn, sockindex); in Curl_ssl_connect_nonblocking()
372 conn->ssl[sockindex].use = TRUE; in Curl_ssl_connect_nonblocking()
373 result = Curl_ssl->connect_nonblocking(data, conn, sockindex, done); in Curl_ssl_connect_nonblocking()
375 conn->ssl[sockindex].use = FALSE; in Curl_ssl_connect_nonblocking()
408 int sockindex) in Curl_ssl_getsessionid() argument
428 (void)sockindex; in Curl_ssl_getsessionid()
531 int sockindex) in Curl_ssl_addsessionid() argument
550 (void)sockindex; in Curl_ssl_addsessionid()
685 int sockindex) in Curl_ssl_close() argument
687 DEBUGASSERT((sockindex <= 1) && (sockindex >= -1)); in Curl_ssl_close()
688 Curl_ssl->close_one(data, conn, sockindex); in Curl_ssl_close()
689 conn->ssl[sockindex].state = ssl_connection_none; in Curl_ssl_close()
693 int sockindex) in Curl_ssl_shutdown() argument
695 if(Curl_ssl->shut_down(data, conn, sockindex)) in Curl_ssl_shutdown()
698 conn->ssl[sockindex].use = FALSE; /* get back to ordinary socket usage */ in Curl_ssl_shutdown()
699 conn->ssl[sockindex].state = ssl_connection_none; in Curl_ssl_shutdown()
701 conn->recv[sockindex] = Curl_recv_plain; in Curl_ssl_shutdown()
702 conn->send[sockindex] = Curl_send_plain; in Curl_ssl_shutdown()
1134 int sockindex UNUSED_PARAM) in Curl_none_shutdown()
1138 (void)sockindex; in Curl_none_shutdown()
1214 struct connectdata *conn, int sockindex) in multissl_connect() argument
1218 return Curl_ssl->connect_blocking(data, conn, sockindex); in multissl_connect()
1223 int sockindex, bool *done) in multissl_connect_nonblocking() argument
1227 return Curl_ssl->connect_nonblocking(data, conn, sockindex, done); in multissl_connect_nonblocking()
1246 int sockindex) in multissl_close() argument
1250 Curl_ssl->close_one(data, conn, sockindex); in multissl_close()