diff options
| author | djm <> | 2009-04-06 06:30:08 +0000 |
|---|---|---|
| committer | djm <> | 2009-04-06 06:30:08 +0000 |
| commit | 1dff14a44bd5019233a56816ba48f43b19cac92c (patch) | |
| tree | bd784d7df8e267e913200c766ce69473f2e8b776 /src/lib/libcrypto/rsa | |
| parent | c852a12b441dfb48ad64cf539b4a64f5f979c7fd (diff) | |
| parent | 40d5d67842948fbf904eb73da8f09a2ebcd2e243 (diff) | |
| download | openbsd-1dff14a44bd5019233a56816ba48f43b19cac92c.tar.gz openbsd-1dff14a44bd5019233a56816ba48f43b19cac92c.tar.bz2 openbsd-1dff14a44bd5019233a56816ba48f43b19cac92c.zip | |
This commit was generated by cvs2git to track changes on a CVS vendor
branch.
Diffstat (limited to 'src/lib/libcrypto/rsa')
| -rw-r--r-- | src/lib/libcrypto/rsa/rsa_x931g.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_x931g.c b/src/lib/libcrypto/rsa/rsa_x931g.c index c640cc2ec9..bf94f8be7a 100644 --- a/src/lib/libcrypto/rsa/rsa_x931g.c +++ b/src/lib/libcrypto/rsa/rsa_x931g.c | |||
| @@ -79,9 +79,9 @@ int RSA_X931_derive_ex(RSA *rsa, BIGNUM *p1, BIGNUM *p2, BIGNUM *q1, BIGNUM *q2, | |||
| 79 | goto err; | 79 | goto err; |
| 80 | 80 | ||
| 81 | ctx = BN_CTX_new(); | 81 | ctx = BN_CTX_new(); |
| 82 | BN_CTX_start(ctx); | ||
| 83 | if (!ctx) | 82 | if (!ctx) |
| 84 | goto err; | 83 | goto err; |
| 84 | BN_CTX_start(ctx); | ||
| 85 | 85 | ||
| 86 | r0 = BN_CTX_get(ctx); | 86 | r0 = BN_CTX_get(ctx); |
| 87 | r1 = BN_CTX_get(ctx); | 87 | r1 = BN_CTX_get(ctx); |
| @@ -190,7 +190,7 @@ int RSA_X931_derive_ex(RSA *rsa, BIGNUM *p1, BIGNUM *p2, BIGNUM *q1, BIGNUM *q2, | |||
| 190 | if (ctx2) | 190 | if (ctx2) |
| 191 | BN_CTX_free(ctx2); | 191 | BN_CTX_free(ctx2); |
| 192 | /* If this is set all calls successful */ | 192 | /* If this is set all calls successful */ |
| 193 | if (rsa->iqmp != NULL) | 193 | if (rsa && rsa->iqmp != NULL) |
| 194 | return 1; | 194 | return 1; |
| 195 | 195 | ||
| 196 | return 0; | 196 | return 0; |
