From db0d629076571f1105b439195d152c40d5bbbfa7 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 8 Sep 2009 17:35:19 +0000 Subject: [PATCH] support openssl 0.9.6 --- panda/src/express/multifile.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/panda/src/express/multifile.cxx b/panda/src/express/multifile.cxx index 89ff8bb160..d026d327f0 100644 --- a/panda/src/express/multifile.cxx +++ b/panda/src/express/multifile.cxx @@ -2355,8 +2355,13 @@ check_signatures() { CertChain chain; EVP_PKEY *pkey = NULL; if (!buffer.empty()) { - const unsigned char *bp = (const unsigned char *)&buffer[0]; - const unsigned char *bp_end = bp + buffer.size(); +#ifdef OPENSSL_097 + const unsigned char *bp, *bp_end; +#else + unsigned char *bp, *bp_end; +#endif + bp = (unsigned char *)&buffer[0]; + bp_end = bp + buffer.size(); X509 *x509 = d2i_X509(NULL, &bp, bp_end - bp); while (num_certs > 0 && x509 != NULL) { chain.push_back(CertRecord(x509));