express: Fix build with older OpenSSL versions

This commit is contained in:
rdb 2025-10-15 11:59:07 +02:00
parent b7fb4af197
commit 97b3c18960
1 changed files with 5 additions and 0 deletions

View File

@ -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;