Permalink
Browse files

Merge pull request #9 from Obvious/danfuzz-legacy-tweak

Add missing `return`.
  • Loading branch information...
2 parents 90a3af3 + 2384a74 commit 3d58df91226e5c26c8a3178e0cb4e289600e4b0d @danfuzz danfuzz committed Dec 20, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 package.json
  2. +1 −1 src/ursaNative.cc
View
@@ -1,6 +1,6 @@
{
"name": "ursa",
- "version": "0.7.0",
+ "version": "0.8.0",
"keywords": [
"crypto", "key", "openssl", "private", "public", "rsa", "sign",
"signature", "verify", "verification", "hash", "digest"
View
@@ -306,7 +306,7 @@ static bool getArgInt(const Arguments& args, int index, int *resultPtr) {
*/
static RSA *generateKey(int num, unsigned long e) {
#if OPENSSL_VERSION_NUMBER < 0x009080001
- RSA_generate_key(num, e, NULL, NULL);
+ return RSA_generate_key(num, e, NULL, NULL);
#else
BIGNUM *eBig = BN_new();

0 comments on commit 3d58df9

Please sign in to comment.