From: Kern Sibbald Date: Wed, 10 Mar 2010 14:36:43 +0000 (+0100) Subject: Another fix for OpenSSLv1 X-Git-Tag: Release-5.2.1~1612 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dbd7a3c658cfc1d0ab8d90b059c4f1a7c40925b0;p=bacula%2Fbacula Another fix for OpenSSLv1 --- diff --git a/bacula/src/lib/tls.c b/bacula/src/lib/tls.c index 04dfaa2048..7f4a1c9b48 100644 --- a/bacula/src/lib/tls.c +++ b/bacula/src/lib/tls.c @@ -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;