]> git.sur5r.net Git - bacula/bacula/commitdiff
Another fix for OpenSSLv1
authorKern Sibbald <kern@sibbald.com>
Wed, 10 Mar 2010 14:36:43 +0000 (15:36 +0100)
committerKern Sibbald <kern@sibbald.com>
Wed, 10 Mar 2010 14:37:05 +0000 (15:37 +0100)
bacula/src/lib/tls.c

index 04dfaa204828b67eb23b90a9e35abd0f3d164a9b..7f4a1c9b480a015dc58fec3e82adfe83952d1db3 100644 (file)
@@ -315,7 +315,11 @@ bool tls_postconnect_verify_host(JCR *jcr, TLS_CONNECTION *tls, const char *host
          extname = OBJ_nid2sn(OBJ_obj2nid(X509_EXTENSION_get_object(ext)));
 
          if (strcmp(extname, "subjectAltName") == 0) {
+#ifdef HAVE_OPENSSLv1
             const X509V3_EXT_METHOD *method;
+#else
+            X509V3_EXT_METHOD *method;
+#endif
             STACK_OF(CONF_VALUE) *val;
             CONF_VALUE *nval;
             void *extstr = NULL;