aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Howarth <paul@city-fan.org>2015-06-17 16:53:34 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-06-17 16:53:34 +0200
commit4a2398627c32c9132b270f6c79492f7bbc5b90c3 (patch)
tree1cb448f5cd785b25a6812ea30defc2b612066934
parentb88f980a7437abc1159a1185c04d381347c8f5b1 (diff)
openssl: Fix build with openssl < ~ 0.9.8f
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).
-rw-r--r--lib/vtls/openssl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index d1ea5fbf1..872829a00 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -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: