Browse Source

express: Fix build with older OpenSSL versions

rdb 2 months ago
parent
commit
97b3c18960
1 changed files with 5 additions and 0 deletions
  1. 5 0
      panda/src/express/zipArchive.cxx

+ 5 - 0
panda/src/express/zipArchive.cxx

@@ -28,6 +28,11 @@
 
 #include "openSSLWrapper.h"
 
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#define EVP_MD_CTX_new() EVP_MD_CTX_create()
+#define EVP_MD_CTX_free(ctx) EVP_MD_CTX_destroy(ctx)
+#endif
+
 using std::streamoff;
 using std::streampos;
 using std::streamsize;