From 9b35958d4c262dcac69f09596a5fd40fb2250a42 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 8 Sep 2009 17:53:42 +0000 Subject: [PATCH] support 0.9.7 too --- panda/src/express/multifile.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/panda/src/express/multifile.cxx b/panda/src/express/multifile.cxx index d026d327f0..7c88f1a442 100644 --- a/panda/src/express/multifile.cxx +++ b/panda/src/express/multifile.cxx @@ -2355,9 +2355,11 @@ check_signatures() { CertChain chain; EVP_PKEY *pkey = NULL; if (!buffer.empty()) { -#ifdef OPENSSL_097 +#if OPENSSL_VERSION_NUMBER >= 0x00908000L + // Beginning in 0.9.8, d2i_X509() accepted a const unsigned char **. const unsigned char *bp, *bp_end; #else + // Prior to 0.9.8, d2i_X509() accepted an unsigned char **. unsigned char *bp, *bp_end; #endif bp = (unsigned char *)&buffer[0];