projects
/
umurmur.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
moved code to right place
[umurmur.git]
/
src
/
ssli_gnutls.c
diff --git
a/src/ssli_gnutls.c
b/src/ssli_gnutls.c
index 1d2a153d3aadefbdb41bd8ca56c1a2dcf2e66c94..dde1909de1abb35ca4bc805f60f457b0e6967d58 100644
(file)
--- a/
src/ssli_gnutls.c
+++ b/
src/ssli_gnutls.c
@@
-70,6
+70,19
@@
SSL_handle_t * SSLi_newconnection( int * fileDescriptor, bool_t * isSSLReady )
gnutls_transport_set_int(*session, *fileDescriptor);
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);
int error;
do {
gnutls_handshake(*session);
@@
-79,13
+92,7
@@
SSL_handle_t * SSLi_newconnection( int * fileDescriptor, bool_t * isSSLReady )
Log_fatal("TLS handshake failed with error %i (%s).", error, gnutls_strerror(error));
}
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;
- }
+