Skip to content

Commit

Permalink
Fix openssl 3 compat
Browse files Browse the repository at this point in the history
I'm an idiot, it's OPENSSL_VERSION_NUMBER not OPENSSL_VERSION_NUM
  • Loading branch information
CRKatri committed Oct 16, 2021
1 parent 7e5fd1f commit 15da4c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ldid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

#ifndef LDID_NOSMIME
#include <openssl/opensslv.h>
# if OPENSSL_VERSION_NUM >= 0x30000000
# if OPENSSL_VERSION_NUMBER >= 0x30000000
# include <openssl/provider.h>
# endif
#include <openssl/err.h>
Expand Down Expand Up @@ -3124,7 +3124,7 @@ static void usage(const char *argv0) {
int main(int argc, char *argv[]) {
#ifndef LDID_NOSMIME
OpenSSL_add_all_algorithms();
# if OPENSSL_VERSION_NUM >= 0x30000000
# if OPENSSL_VERSION_NUMBER >= 0x30000000
OSSL_PROVIDER *legacy = OSSL_PROVIDER_load(NULL, "legacy");
OSSL_PROVIDER *deflt = OSSL_PROVIDER_load(NULL, "default");
# endif
Expand Down

0 comments on commit 15da4c1

Please sign in to comment.