Skip to content

Commit

Permalink
fix for VS build with macro instead of enum
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed Aug 26, 2024
1 parent 9a48a36 commit 4c54c74
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions wolfssl/openssl/evp.h
Original file line number Diff line number Diff line change
Expand Up @@ -1230,10 +1230,10 @@ WOLFSSL_API int wolfSSL_EVP_SignInit_ex(WOLFSSL_EVP_MD_CTX* ctx,
#endif


#define EVP_R_BAD_DECRYPT (-MIN_CODE_E + 100 + 1)
#define EVP_R_BN_DECODE_ERROR (-MIN_CODE_E + 100 + 2)
#define EVP_R_DECODE_ERROR (-MIN_CODE_E + 100 + 3)
#define EVP_R_PRIVATE_KEY_DECODE_ERROR (-MIN_CODE_E + 100 + 4)
#define EVP_R_BAD_DECRYPT (-(MIN_CODE_E) + 100 + 1)
#define EVP_R_BN_DECODE_ERROR (-(MIN_CODE_E) + 100 + 2)
#define EVP_R_DECODE_ERROR (-(MIN_CODE_E) + 100 + 3)
#define EVP_R_PRIVATE_KEY_DECODE_ERROR (-(MIN_CODE_E) + 100 + 4)

#define EVP_PKEY_NONE NID_undef
#define EVP_PKEY_DH 28
Expand Down
10 changes: 5 additions & 5 deletions wolfssl/openssl/ssl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1542,11 +1542,11 @@ typedef WOLFSSL_SRTP_PROTECTION_PROFILE SRTP_PROTECTION_PROFILE;
#define PEM_F_PEM_DEF_CALLBACK 100

/* Avoid wolfSSL error code range */
#define PEM_R_NO_START_LINE (-MIN_CODE_E + 1)
#define PEM_R_PROBLEMS_GETTING_PASSWORD (-MIN_CODE_E + 2)
#define PEM_R_BAD_PASSWORD_READ (-MIN_CODE_E + 3)
#define PEM_R_BAD_DECRYPT (-MIN_CODE_E + 4)
#define ASN1_R_HEADER_TOO_LONG (-MIN_CODE_E + 5)
#define PEM_R_NO_START_LINE (-(MIN_CODE_E) + 1)
#define PEM_R_PROBLEMS_GETTING_PASSWORD (-(MIN_CODE_E) + 2)
#define PEM_R_BAD_PASSWORD_READ (-(MIN_CODE_E) + 3)
#define PEM_R_BAD_DECRYPT (-(MIN_CODE_E) + 4)
#define ASN1_R_HEADER_TOO_LONG (-(MIN_CODE_E) + 5)

#define ERR_LIB_SYS 2
#define ERR_LIB_RSA 4
Expand Down

0 comments on commit 4c54c74

Please sign in to comment.