Lines Matching refs:sockindex
502 static void cancel_async_handshake(struct connectdata *conn, int sockindex) in cancel_async_handshake() argument
504 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in cancel_async_handshake()
507 if(QsoCancelOperation(conn->sock[sockindex], 0) > 0) in cancel_async_handshake()
518 static int pipe_ssloverssl(struct connectdata *conn, int sockindex, in pipe_ssloverssl() argument
522 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in pipe_ssloverssl()
523 struct ssl_connect_data *connproxyssl = &conn->proxy_ssl[sockindex]; in pipe_ssloverssl()
545 FD_SET(conn->sock[sockindex], &fds_write); in pipe_ssloverssl()
546 if(n < conn->sock[sockindex]) in pipe_ssloverssl()
547 n = conn->sock[sockindex]; in pipe_ssloverssl()
576 FD_ISSET(conn->sock[sockindex], &fds_write)) { in pipe_ssloverssl()
597 struct connectdata *conn, int sockindex) in close_one() argument
603 while(pipe_ssloverssl(conn, sockindex, SOS_WRITE) > 0) in close_one()
622 static ssize_t gskit_send(struct Curl_easy *data, int sockindex, in gskit_send() argument
626 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in gskit_send()
630 if(pipe_ssloverssl(conn, sockindex, SOS_WRITE) >= 0) { in gskit_send()
636 if(pipe_ssloverssl(conn, sockindex, SOS_WRITE) < 0) in gskit_send()
708 struct connectdata *conn, int sockindex) in gskit_connect_step1() argument
710 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in gskit_connect_step1()
775 if(conn->proxy_ssl[sockindex].use) { in gskit_connect_step1()
846 BACKEND->localfd: conn->sock[sockindex]); in gskit_connect_step1()
849 conn->sock[sockindex]); in gskit_connect_step1()
920 else if(conn->proxy_ssl[sockindex].use) { in gskit_connect_step1()
937 close_one(connssl, data, conn, sockindex); in gskit_connect_step1()
943 struct connectdata *conn, int sockindex, in gskit_connect_step2() argument
946 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in gskit_connect_step2()
970 cancel_async_handshake(conn, sockindex); in gskit_connect_step2()
978 cancel_async_handshake(conn, sockindex); in gskit_connect_step2()
994 struct connectdata *conn, int sockindex) in gskit_connect_step3() argument
996 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in gskit_connect_step3()
1081 struct connectdata *conn, int sockindex, in gskit_connect_common() argument
1084 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in gskit_connect_common()
1103 result = gskit_connect_step1(data, conn, sockindex); in gskit_connect_common()
1108 if(pipe_ssloverssl(conn, sockindex, SOS_READ | SOS_WRITE) < 0) in gskit_connect_common()
1122 result = gskit_connect_step2(data, conn, sockindex, nonblocking); in gskit_connect_common()
1127 if(pipe_ssloverssl(conn, sockindex, SOS_READ | SOS_WRITE) < 0) in gskit_connect_common()
1132 result = gskit_connect_step3(data, conn, sockindex); in gskit_connect_common()
1135 close_one(connssl, data, conn, sockindex); in gskit_connect_common()
1139 conn->recv[sockindex] = gskit_recv; in gskit_connect_common()
1140 conn->send[sockindex] = gskit_send; in gskit_connect_common()
1150 int sockindex, bool *done) in gskit_connect_nonblocking() argument
1154 result = gskit_connect_common(data, conn, sockindex, TRUE, done); in gskit_connect_nonblocking()
1156 conn->ssl[sockindex].connecting_state = ssl_connect_1; in gskit_connect_nonblocking()
1162 struct connectdata *conn, int sockindex) in gskit_connect() argument
1167 conn->ssl[sockindex].connecting_state = ssl_connect_1; in gskit_connect()
1168 result = gskit_connect_common(data, conn, sockindex, FALSE, &done); in gskit_connect()
1179 int sockindex) in gskit_close() argument
1181 close_one(&conn->ssl[sockindex], data, conn, sockindex); in gskit_close()
1183 close_one(&conn->proxy_ssl[sockindex], data, conn, sockindex); in gskit_close()
1189 struct connectdata *conn, int sockindex) in gskit_shutdown() argument
1191 struct ssl_connect_data *connssl = &conn->ssl[sockindex]; in gskit_shutdown()
1205 close_one(connssl, data, conn, sockindex); in gskit_shutdown()
1207 what = SOCKET_READABLE(conn->sock[sockindex], in gskit_shutdown()
1229 nread = read(conn->sock[sockindex], buf, sizeof(buf)); in gskit_shutdown()
1239 what = SOCKET_READABLE(conn->sock[sockindex], 0); in gskit_shutdown()