summaryrefslogtreecommitdiff
path: root/lib/gnutls_handshake.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2001-11-01 20:10:12 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2001-11-01 20:10:12 +0000
commit5a1d743aa8f7d736a51020d9af123e082712dbd1 (patch)
tree2d3ceac6076bcfb79b3d99c2a7b929e546dc79fe /lib/gnutls_handshake.h
parentde83b6e7c3855ddd8d709f10123578057b28fa61 (diff)
downloadgnutls-5a1d743aa8f7d736a51020d9af123e082712dbd1.tar.gz
Adopted some of the patches of Jon Nelson. Fixes the non blocking
behaviour.
Diffstat (limited to 'lib/gnutls_handshake.h')
-rw-r--r--lib/gnutls_handshake.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/gnutls_handshake.h b/lib/gnutls_handshake.h
index c1498de5cf..3f4d44dd34 100644
--- a/lib/gnutls_handshake.h
+++ b/lib/gnutls_handshake.h
@@ -40,3 +40,10 @@ void gnutls_set_max_handshake_data_buffer_size( GNUTLS_STATE state, int max);
#define set_adv_version( state, major, minor) \
state->gnutls_internals.adv_version_major = data[pos]; \
state->gnutls_internals.adv_version_minor = data[pos+1]
+
+
+#define STATE state->gnutls_internals.handshake_state
+/* This returns true if we have got there
+ * before (and not finished due to an interrupt).
+ */
+#define AGAIN(target) STATE==target?1:0