diff options
-rw-r--r-- | lib/gnutls_handshake.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/gnutls_handshake.c b/lib/gnutls_handshake.c index d870cf7ec6..b461483a2b 100644 --- a/lib/gnutls_handshake.c +++ b/lib/gnutls_handshake.c @@ -2046,6 +2046,10 @@ static int _gnutls_send_handshake_final(GNUTLS_STATE state, int init) { int ret = 0; + /* to know where the procedure was interrupted. + */ + state->gnutls_internals.handshake_direction = 1; /* write */ + /* Send the CHANGE CIPHER SPEC PACKET */ switch (STATE) { @@ -2102,6 +2106,10 @@ static int _gnutls_recv_handshake_final(GNUTLS_STATE state, int init) int ret = 0; uint8 ch; + /* to know where the procedure was interrupted. + */ + state->gnutls_internals.handshake_direction = 0; /* recv */ + switch (STATE) { case STATE0: case STATE30: |