diff options
| author | jsing <> | 2023-04-11 18:53:20 +0000 |
|---|---|---|
| committer | jsing <> | 2023-04-11 18:53:20 +0000 |
| commit | d64e2f3567e88a542a225f4ab620c2851bd7f9e7 (patch) | |
| tree | 1e2d51801177c535b3a78b884c62c88269a74281 /src/lib/libc | |
| parent | fdb1eca18c61c136a3750f89858caf1e54dc603a (diff) | |
| download | openbsd-d64e2f3567e88a542a225f4ab620c2851bd7f9e7.tar.gz openbsd-d64e2f3567e88a542a225f4ab620c2851bd7f9e7.tar.bz2 openbsd-d64e2f3567e88a542a225f4ab620c2851bd7f9e7.zip | |
Clean up unused BIGNUM.
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/ec/ecp_nist.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ec/ecp_nist.c b/src/lib/libcrypto/ec/ecp_nist.c index b8fb5dc90f..c736526a66 100644 --- a/src/lib/libcrypto/ec/ecp_nist.c +++ b/src/lib/libcrypto/ec/ecp_nist.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ecp_nist.c,v 1.24 2023/03/08 05:45:31 jsing Exp $ */ | 1 | /* $OpenBSD: ecp_nist.c,v 1.25 2023/04/11 18:53:20 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Written by Nils Larsch for the OpenSSL project. | 3 | * Written by Nils Larsch for the OpenSSL project. |
| 4 | */ | 4 | */ |
| @@ -82,15 +82,12 @@ ec_GFp_nist_group_set_curve(EC_GROUP *group, const BIGNUM *p, | |||
| 82 | { | 82 | { |
| 83 | int ret = 0; | 83 | int ret = 0; |
| 84 | BN_CTX *new_ctx = NULL; | 84 | BN_CTX *new_ctx = NULL; |
| 85 | BIGNUM *tmp_bn; | ||
| 86 | 85 | ||
| 87 | if (ctx == NULL) | 86 | if (ctx == NULL) |
| 88 | if ((ctx = new_ctx = BN_CTX_new()) == NULL) | 87 | if ((ctx = new_ctx = BN_CTX_new()) == NULL) |
| 89 | return 0; | 88 | return 0; |
| 90 | 89 | ||
| 91 | BN_CTX_start(ctx); | 90 | BN_CTX_start(ctx); |
| 92 | if ((tmp_bn = BN_CTX_get(ctx)) == NULL) | ||
| 93 | goto err; | ||
| 94 | 91 | ||
| 95 | if (BN_ucmp(BN_get0_nist_prime_192(), p) == 0) | 92 | if (BN_ucmp(BN_get0_nist_prime_192(), p) == 0) |
| 96 | group->field_mod_func = BN_nist_mod_192; | 93 | group->field_mod_func = BN_nist_mod_192; |
