]> granicus.if.org Git - curl/commitdiff
openssl: Fix build with openssl < ~ 0.9.8f
authorPaul Howarth <paul@city-fan.org>
Wed, 17 Jun 2015 14:53:34 +0000 (16:53 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 17 Jun 2015 14:53:34 +0000 (16:53 +0200)
The symbol SSL3_MT_NEWSESSION_TICKET appears to have been introduced at
around openssl 0.9.8f, and the use of it in lib/vtls/openssl.c breaks
builds with older openssls (certainly with 0.9.8b, which is the latest
older version I have to try with).

lib/vtls/openssl.c

index d1ea5fbf1d4ff11721b68a98c923ba8454f2a20a..872829a002b3099d3cf97b530b4f63682918ecbb 100644 (file)
@@ -1427,8 +1427,10 @@ static const char *ssl_msg_type(int ssl_ver, int msg)
         return "Client hello";
       case SSL3_MT_SERVER_HELLO:
         return "Server hello";
+#ifdef SSL3_MT_NEWSESSION_TICKET
       case SSL3_MT_NEWSESSION_TICKET:
         return "Newsession Ticket";
+#endif
       case SSL3_MT_CERTIFICATE:
         return "Certificate";
       case SSL3_MT_SERVER_KEY_EXCHANGE: