Lines Matching refs:BACKEND
113 #define BACKEND connssl->backend macro
500 DEBUGASSERT(BACKEND); in cancel_async_handshake()
503 QsoWaitForIOCompletion(BACKEND->iocport, &cstat, (struct timeval *) NULL); in cancel_async_handshake()
509 DEBUGASSERT(BACKEND); in close_async_handshake()
510 QsoDestroyIOCompletionPort(BACKEND->iocport); in close_async_handshake()
511 BACKEND->iocport = -1; in close_async_handshake()
527 DEBUGASSERT(BACKEND); in pipe_ssloverssl()
534 fds[0].fd = BACKEND->remotefd; in pipe_ssloverssl()
557 i = write(BACKEND->remotefd, buf, n); in pipe_ssloverssl()
573 n = read(BACKEND->remotefd, buf, sizeof(buf)); in pipe_ssloverssl()
592 DEBUGASSERT(BACKEND); in close_one()
593 if(BACKEND->handle) { in close_one()
594 gskit_status(data, gsk_secure_soc_close(&BACKEND->handle), in close_one()
599 BACKEND->handle = (gsk_handle) NULL; in close_one()
600 if(BACKEND->localfd >= 0) { in close_one()
601 close(BACKEND->localfd); in close_one()
602 BACKEND->localfd = -1; in close_one()
604 if(BACKEND->remotefd >= 0) { in close_one()
605 close(BACKEND->remotefd); in close_one()
606 BACKEND->remotefd = -1; in close_one()
609 if(BACKEND->iocport >= 0) in close_one()
622 DEBUGASSERT(BACKEND); in gskit_send()
626 gsk_secure_soc_write(BACKEND->handle, in gskit_send()
650 DEBUGASSERT(BACKEND); in gskit_recv()
654 cc = gskit_status(data, gsk_secure_soc_read(BACKEND->handle, in gskit_recv()
731 DEBUGASSERT(BACKEND); in gskit_connect_step1()
733 BACKEND->handle = (gsk_handle) NULL; in gskit_connect_step1()
734 BACKEND->iocport = -1; in gskit_connect_step1()
735 BACKEND->localfd = -1; in gskit_connect_step1()
736 BACKEND->remotefd = -1; in gskit_connect_step1()
769 result = gskit_status(data, gsk_secure_soc_open(envir, &BACKEND->handle), in gskit_connect_step1()
779 BACKEND->localfd = sockpair[0]; in gskit_connect_step1()
780 BACKEND->remotefd = sockpair[1]; in gskit_connect_step1()
781 setsockopt(BACKEND->localfd, SOL_SOCKET, SO_RCVBUF, in gskit_connect_step1()
783 setsockopt(BACKEND->remotefd, SOL_SOCKET, SO_RCVBUF, in gskit_connect_step1()
785 setsockopt(BACKEND->localfd, SOL_SOCKET, SO_SNDBUF, in gskit_connect_step1()
787 setsockopt(BACKEND->remotefd, SOL_SOCKET, SO_SNDBUF, in gskit_connect_step1()
789 curlx_nonblock(BACKEND->localfd, TRUE); in gskit_connect_step1()
790 curlx_nonblock(BACKEND->remotefd, TRUE); in gskit_connect_step1()
829 result = set_buffer(data, BACKEND->handle, in gskit_connect_step1()
843 result = set_numeric(data, BACKEND->handle, GSK_HANDSHAKE_TIMEOUT, in gskit_connect_step1()
847 result = set_numeric(data, BACKEND->handle, GSK_OS400_READ_TIMEOUT, 1); in gskit_connect_step1()
849 result = set_numeric(data, BACKEND->handle, GSK_FD, BACKEND->localfd >= 0? in gskit_connect_step1()
850 BACKEND->localfd: Curl_conn_cf_get_socket(cf, data)); in gskit_connect_step1()
852 result = set_ciphers(cf, data, BACKEND->handle, &protoflags); in gskit_connect_step1()
858 result = set_enum(data, BACKEND->handle, GSK_PROTOCOL_SSLV2, in gskit_connect_step1()
862 result = set_enum(data, BACKEND->handle, GSK_PROTOCOL_SSLV3, in gskit_connect_step1()
866 result = set_enum(data, BACKEND->handle, GSK_PROTOCOL_TLSV1, in gskit_connect_step1()
870 result = set_enum(data, BACKEND->handle, GSK_PROTOCOL_TLSV11, in gskit_connect_step1()
882 result = set_enum(data, BACKEND->handle, GSK_PROTOCOL_TLSV12, in gskit_connect_step1()
894 result = set_enum(data, BACKEND->handle, GSK_SERVER_AUTH_TYPE, in gskit_connect_step1()
901 BACKEND->iocport = QsoCreateIOCompletionPort(); in gskit_connect_step1()
902 if(BACKEND->iocport != -1) { in gskit_connect_step1()
904 gsk_secure_soc_startInit(BACKEND->handle, in gskit_connect_step1()
905 BACKEND->iocport, in gskit_connect_step1()
925 result = gskit_status(data, gsk_secure_soc_init(BACKEND->handle), in gskit_connect_step1()
950 DEBUGASSERT(BACKEND); in gskit_connect_step2()
958 switch(QsoWaitForIOCompletion(BACKEND->iocport, &cstat, in gskit_connect_step2()
1008 DEBUGASSERT(BACKEND); in gskit_connect_step3()
1010 if(gskit_status(data, gsk_attribute_get_cert_info(BACKEND->handle, in gskit_connect_step3()
1199 DEBUGASSERT(BACKEND); in gskit_shutdown()
1201 if(!BACKEND->handle) in gskit_shutdown()
1266 DEBUGASSERT(BACKEND); in gskit_check_cxn()
1268 if(!BACKEND->handle) in gskit_check_cxn()
1286 DEBUGASSERT(BACKEND); in gskit_get_internals()
1287 return BACKEND->handle; in gskit_get_internals()