]> granicus.if.org Git - curl/commitdiff
OpenSSL: conditional check for SSL3_RT_HEADER
authorDaniel Stenberg <daniel@haxx.se>
Mon, 4 May 2015 11:29:34 +0000 (13:29 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 4 May 2015 11:29:34 +0000 (13:29 +0200)
The symbol is fairly new.

Reported-by: Kamil Dudka
lib/vtls/openssl.c

index fa3e227b0b2151a1c710263bed1e4c5f69c581cc..16053a768af4d14ad22408e65cec580b2bb60f5e 100644 (file)
@@ -1515,8 +1515,10 @@ static const char *ssl_msg_type(int ssl_ver, int msg)
 static const char *tls_rt_type(int type)
 {
   switch(type) {
+#ifdef SSL3_RT_HEADER
   case SSL3_RT_HEADER:
     return "TLS header";
+#endif
   case SSL3_RT_CHANGE_CIPHER_SPEC:
     return "TLS change cipher";
   case SSL3_RT_ALERT: