mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
support openssl 0.9.6
This commit is contained in:
parent
fc7ac53864
commit
db0d629076
@ -2355,8 +2355,13 @@ check_signatures() {
|
|||||||
CertChain chain;
|
CertChain chain;
|
||||||
EVP_PKEY *pkey = NULL;
|
EVP_PKEY *pkey = NULL;
|
||||||
if (!buffer.empty()) {
|
if (!buffer.empty()) {
|
||||||
const unsigned char *bp = (const unsigned char *)&buffer[0];
|
#ifdef OPENSSL_097
|
||||||
const unsigned char *bp_end = bp + buffer.size();
|
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);
|
X509 *x509 = d2i_X509(NULL, &bp, bp_end - bp);
|
||||||
while (num_certs > 0 && x509 != NULL) {
|
while (num_certs > 0 && x509 != NULL) {
|
||||||
chain.push_back(CertRecord(x509));
|
chain.push_back(CertRecord(x509));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user