Allow new session ticket when resuming.
authorDr. Stephen Henson <steve@openssl.org>
Sat, 3 Nov 2007 13:07:39 +0000 (13:07 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 3 Nov 2007 13:07:39 +0000 (13:07 +0000)
ssl/s3_clnt.c

index a7605d4895fcf66c5d62fde555464c880e5ad290..7b3eb7ab0257987a8184397670022655b39d71f1 100644 (file)
@@ -273,7 +273,10 @@ int ssl3_connect(SSL *s)
                        if (ret == 2)
                                {
                                s->hit = 1;
-                               s->state=SSL3_ST_CR_FINISHED_A;
+                               if (s->tlsext_ticket_expected)
+                                       s->state=SSL3_ST_CR_SESSION_TICKET_A;
+                               else
+                                       s->state=SSL3_ST_CR_FINISHED_A;
                                s->init_num=0;
                                break;
                                }