]> granicus.if.org Git - curl/commitdiff
openssl: build fix for versions < 0.9.8e
authorPaul Howarth <paul@city-fan.org>
Wed, 10 Sep 2014 11:08:22 +0000 (13:08 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 10 Sep 2014 11:09:42 +0000 (13:09 +0200)
Bug: http://curl.haxx.se/mail/lib-2014-09/0064.html

lib/vtls/openssl.c

index da928544344024b7cb2d76e2db256a78c98b5214..2d1fa5bd343c10bc42ff338291459908832df526 100644 (file)
@@ -749,6 +749,12 @@ int Curl_ossl_init(void)
      calls CONF_modules_load_file() and we use that instead and we ignore
      its return code! */
 
+  /* CONF_MFLAGS_DEFAULT_SECTION introduced some time between 0.9.8b and
+     0.9.8e */
+#ifndef CONF_MFLAGS_DEFAULT_SECTION
+#define CONF_MFLAGS_DEFAULT_SECTION 0x0
+#endif
+
   (void)CONF_modules_load_file(NULL, NULL,
                                CONF_MFLAGS_DEFAULT_SECTION|
                                CONF_MFLAGS_IGNORE_MISSING_FILE);