Skip to content

Commit

Permalink
Error Codes for NodeJS compatibility added (#1475)
Browse files Browse the repository at this point in the history
### Description of changes: 
Added in some error codes from OpenSSL 

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and the ISC license.
  • Loading branch information
smittals2 authored Mar 20, 2024
1 parent 32143aa commit 13337f7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/openssl/bn.h
Original file line number Diff line number Diff line change
Expand Up @@ -1114,4 +1114,6 @@ BSSL_NAMESPACE_END
#define BN_R_ENCODE_ERROR 118
#define BN_R_INVALID_INPUT 119

#define BN_F_BN_GENERATE_PRIME_EX 0

#endif // OPENSSL_HEADER_BN_H
2 changes: 2 additions & 0 deletions include/openssl/dh.h
Original file line number Diff line number Diff line change
Expand Up @@ -385,4 +385,6 @@ BSSL_NAMESPACE_END
#define DH_R_INVALID_NID 106
#define DH_R_INVALID_PARAMETERS 107

#define DH_F_DH_BUILTIN_GENPARAMS 0

#endif // OPENSSL_HEADER_DH_H
10 changes: 10 additions & 0 deletions include/openssl/err.h
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,16 @@ OPENSSL_EXPORT int ERR_get_next_error_library(void);
#define ERR_LIB_TRUST_TOKEN 32
#define ERR_LIB_USER 33
#define ERR_NUM_LIBS 34
#define ERR_LIB_PKCS12 35
#define ERR_LIB_DSO 36
#define ERR_LIB_OSSL_STORE 37
#define ERR_LIB_FIPS 38
#define ERR_LIB_CMS 39
#define ERR_LIB_TS 40
#define ERR_LIB_CT 41
#define ERR_LIB_ASYNC 42
#define ERR_LIB_KDF 43
#define ERR_LIB_SM2 44

// The following reason codes used to denote an error occuring in another
// library. They are sometimes used for a stack trace.
Expand Down

0 comments on commit 13337f7

Please sign in to comment.