summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-08-20 12:29:36 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-08-20 12:29:36 +0000
commit904cb624b4873353c37d35683177133867f6dd27 (patch)
treefde89f94ad1cd1e7cbee602795b01398a32460ef
parent7b6de807614632f439fdd86379fecf18e2a6dd34 (diff)
downloadgnutls-904cb624b4873353c37d35683177133867f6dd27.tar.gz
included the change cipher specs in gnutls_handshake_get_direction().
-rw-r--r--lib/gnutls_handshake.c8
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: