diff options
author | Fedor Indutny <fedor@indutny.com> | 2014-08-23 17:38:32 +0400 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-08-27 00:24:57 +0400 |
commit | 6adf3ecebb42c05662f7c6a792953589ffdfd4dc (patch) | |
tree | aeee42cb757d6a5e13959dc11c8e225c269e685b /src/node_constants.cc | |
parent | 8a7d7f8b2b40f670d2fceb14d7d16cda1bea6bcf (diff) |
crypto: allow padding in RSA methods
Reviewed-By: Trevor Norris <trevnorris@gmail.com>
Diffstat (limited to 'src/node_constants.cc')
-rw-r--r-- | src/node_constants.cc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/node_constants.cc b/src/node_constants.cc index dc7dc806704..430a09c6851 100644 --- a/src/node_constants.cc +++ b/src/node_constants.cc @@ -950,6 +950,30 @@ void DefineOpenSSLConstants(Handle<Object> target) { #define NPN_ENABLED 1 NODE_DEFINE_CONSTANT(target, NPN_ENABLED); #endif + +#ifdef RSA_PKCS1_PADDING + NODE_DEFINE_CONSTANT(target, RSA_PKCS1_PADDING); +#endif + +#ifdef RSA_SSLV23_PADDING + NODE_DEFINE_CONSTANT(target, RSA_SSLV23_PADDING); +#endif + +#ifdef RSA_NO_PADDING + NODE_DEFINE_CONSTANT(target, RSA_NO_PADDING); +#endif + +#ifdef RSA_PKCS1_OAEP_PADDING + NODE_DEFINE_CONSTANT(target, RSA_PKCS1_OAEP_PADDING); +#endif + +#ifdef RSA_X931_PADDING + NODE_DEFINE_CONSTANT(target, RSA_X931_PADDING); +#endif + +#ifdef RSA_PKCS1_PSS_PADDING + NODE_DEFINE_CONSTANT(target, RSA_PKCS1_PSS_PADDING); +#endif } void DefineSystemConstants(Handle<Object> target) { |