gnutls_transport_set_int(*session, *fileDescriptor);
+ *isSSLReady = true;
+
+ return session;
+ }
+
+bool_t SSLi_getSHA1Hash(SSL_handle_t *ssl, uint8_t *hash)
+ {
+ *hash = 0;
+ return true;
+ }
+
+int SSLi_nonblockaccept( SSL_handle_t *session, bool_t * isSSLReady )
+ {
int error;
do {
gnutls_handshake(*session);
Log_fatal("TLS handshake failed with error %i (%s).", error, gnutls_strerror(error));
}
- *isSSLReady = true;
-
- return session;
+ return error;
}
-bool_t SSLi_getSHA1Hash(SSL_handle_t *ssl, uint8_t *hash)
- {
- *hash = 0;
- return true;
- }
+