PR: 2888
authorDr. Stephen Henson <steve@openssl.org>
Mon, 10 Dec 2012 16:45:39 +0000 (16:45 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 10 Dec 2012 16:45:39 +0000 (16:45 +0000)
Reported by: Daniel Black <daniel.black@openquery.com>

Support renewing session tickets (backport from HEAD).

ssl/s3_clnt.c

index 2c9fb87f528d1b939106bb9290b70ba7fa38245c..a17beb8a3bf8a282298c06bd118e925241f3a411 100644 (file)
@@ -262,7 +262,16 @@ int ssl3_connect(SSL *s)
                        ret=ssl3_get_server_hello(s);
                        if (ret <= 0) goto end;
                        if (s->hit)
+                               {
                                s->state=SSL3_ST_CR_FINISHED_A;
+#ifndef OPENSSL_NO_TLSEXT
+                               if (s->tlsext_ticket_expected)
+                                       {
+                                       /* receive renewed session ticket */
+                                       s->state=SSL3_ST_CR_SESSION_TICKET_A;
+                                       }
+#endif
+                               }
                        else
                                s->state=SSL3_ST_CR_CERT_A;
                        s->init_num=0;