diff options
| author | jsing <> | 2023-03-07 09:27:10 +0000 |
|---|---|---|
| committer | jsing <> | 2023-03-07 09:27:10 +0000 |
| commit | c83e0ddc66b0c990eac3283a437e4e70eabd868d (patch) | |
| tree | d6ca9b239f49033751a7fb0f0185d1ad060801cf /src/lib/libcrypto/rsa | |
| parent | e3934d6456ddf771c623fd07240dfb4c4d7a062c (diff) | |
| download | openbsd-c83e0ddc66b0c990eac3283a437e4e70eabd868d.tar.gz openbsd-c83e0ddc66b0c990eac3283a437e4e70eabd868d.tar.bz2 openbsd-c83e0ddc66b0c990eac3283a437e4e70eabd868d.zip | |
Call BN_free() instead of BN_clear_free().
BN_clear_free() is a wrapper that calls BN_free() - call BN_free() directly
instead.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/rsa')
| -rw-r--r-- | src/lib/libcrypto/rsa/rsa_lib.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_lib.c b/src/lib/libcrypto/rsa/rsa_lib.c index 1720484952..3689c0b54d 100644 --- a/src/lib/libcrypto/rsa/rsa_lib.c +++ b/src/lib/libcrypto/rsa/rsa_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rsa_lib.c,v 1.44 2022/11/26 16:08:54 tb Exp $ */ | 1 | /* $OpenBSD: rsa_lib.c,v 1.45 2023/03/07 09:27:10 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 | * |
| @@ -200,14 +200,14 @@ RSA_free(RSA *r) | |||
| 200 | 200 | ||
| 201 | CRYPTO_free_ex_data(CRYPTO_EX_INDEX_RSA, r, &r->ex_data); | 201 | CRYPTO_free_ex_data(CRYPTO_EX_INDEX_RSA, r, &r->ex_data); |
| 202 | 202 | ||
| 203 | BN_clear_free(r->n); | 203 | BN_free(r->n); |
| 204 | BN_clear_free(r->e); | 204 | BN_free(r->e); |
| 205 | BN_clear_free(r->d); | 205 | BN_free(r->d); |
| 206 | BN_clear_free(r->p); | 206 | BN_free(r->p); |
| 207 | BN_clear_free(r->q); | 207 | BN_free(r->q); |
| 208 | BN_clear_free(r->dmp1); | 208 | BN_free(r->dmp1); |
| 209 | BN_clear_free(r->dmq1); | 209 | BN_free(r->dmq1); |
| 210 | BN_clear_free(r->iqmp); | 210 | BN_free(r->iqmp); |
| 211 | BN_BLINDING_free(r->blinding); | 211 | BN_BLINDING_free(r->blinding); |
| 212 | BN_BLINDING_free(r->mt_blinding); | 212 | BN_BLINDING_free(r->mt_blinding); |
| 213 | RSA_PSS_PARAMS_free(r->pss); | 213 | RSA_PSS_PARAMS_free(r->pss); |
