Skip to content

Commit 691fb50

Browse files
committed
attempt to fix ossl 1.0.2 build by moving ifndef to opensslshim.h
1 parent 5b5fd6c commit 691fb50

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/native/libs/System.Security.Cryptography.Native/opensslshim.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ void ERR_put_error(int32_t lib, int32_t func, int32_t reason, const char* file,
9191
#define RSA_PSS_SALTLEN_DIGEST -1
9292
#endif
9393

94+
#ifndef EVP_PKEY_RSA_PSS
95+
#define EVP_PKEY_RSA_PSS 912
96+
#endif
97+
9498
// ERR_R_UNSUPPORTED was introduced in OpenSSL 3. We need it for building with older OpenSSLs.
9599
// Add a static assert so we know if OpenSSL changes the value.
96100
#ifndef ERR_R_UNSUPPORTED

src/native/libs/System.Security.Cryptography.Native/osslcompat_30.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
#define OSSL_STORE_INFO_PKEY 4
2121
#define OSSL_STORE_INFO_PUBKEY 3
2222

23-
#ifndef EVP_PKEY_RSA_PSS
24-
#define EVP_PKEY_RSA_PSS 912
25-
#endif
26-
2723
typedef struct ossl_lib_ctx_st OSSL_LIB_CTX;
2824
typedef struct ossl_param_st OSSL_PARAM;
2925
typedef struct ossl_provider_st OSSL_PROVIDER;

0 commit comments

Comments
 (0)