diff options
| author | jsing <> | 2014-07-10 07:43:11 +0000 |
|---|---|---|
| committer | jsing <> | 2014-07-10 07:43:11 +0000 |
| commit | 40e53c5982a60d9fb38f2df6ac78e7482219fc17 (patch) | |
| tree | 73c2d1cfd1c9669b272f8aeaa3441a982874c635 /src/lib/libcrypto/rsa/rsa_crpt.c | |
| parent | ec8c499ef7f0ca14b52a751e7d060abd044b3472 (diff) | |
| download | openbsd-40e53c5982a60d9fb38f2df6ac78e7482219fc17.tar.gz openbsd-40e53c5982a60d9fb38f2df6ac78e7482219fc17.tar.bz2 openbsd-40e53c5982a60d9fb38f2df6ac78e7482219fc17.zip | |
BN_free, BN_clear_free, BN_CTX_free, BN_BLINDING_free and BN_MONT_CTX_free
all have implicit NULL checks, so we do not need them here.
ok miod@
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_crpt.c')
| -rw-r--r-- | src/lib/libcrypto/rsa/rsa_crpt.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_crpt.c b/src/lib/libcrypto/rsa/rsa_crpt.c index fb09d235e1..c216c1bae4 100644 --- a/src/lib/libcrypto/rsa/rsa_crpt.c +++ b/src/lib/libcrypto/rsa/rsa_crpt.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rsa_crpt.c,v 1.6 2014/07/09 19:51:38 jsing Exp $ */ | 1 | /* $OpenBSD: rsa_crpt.c,v 1.7 2014/07/10 07:43:11 jsing Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -110,10 +110,8 @@ RSA_flags(const RSA *r) | |||
| 110 | void | 110 | void |
| 111 | RSA_blinding_off(RSA *rsa) | 111 | RSA_blinding_off(RSA *rsa) |
| 112 | { | 112 | { |
| 113 | if (rsa->blinding != NULL) { | 113 | BN_BLINDING_free(rsa->blinding); |
| 114 | BN_BLINDING_free(rsa->blinding); | 114 | rsa->blinding = NULL; |
| 115 | rsa->blinding = NULL; | ||
| 116 | } | ||
| 117 | rsa->flags &= ~RSA_FLAG_BLINDING; | 115 | rsa->flags &= ~RSA_FLAG_BLINDING; |
| 118 | rsa->flags |= RSA_FLAG_NO_BLINDING; | 116 | rsa->flags |= RSA_FLAG_NO_BLINDING; |
| 119 | } | 117 | } |
