diff options
| author | tb <> | 2024-05-11 06:43:50 +0000 |
|---|---|---|
| committer | tb <> | 2024-05-11 06:43:50 +0000 |
| commit | 952eae61d25b73a81ec28a1a1581c90cbe0ad20a (patch) | |
| tree | ffb5bc5fb4d08c36184aadaea632408d9c6a0c8d /src/lib/libcrypto/dsa/dsa_key.c | |
| parent | 68651131a94804596ddbad3cfc2d03dc97f27714 (diff) | |
| download | openbsd-952eae61d25b73a81ec28a1a1581c90cbe0ad20a.tar.gz openbsd-952eae61d25b73a81ec28a1a1581c90cbe0ad20a.tar.bz2 openbsd-952eae61d25b73a81ec28a1a1581c90cbe0ad20a.zip | |
Remove unused DSA methods
There are no accessors to set them, so this has been involved in a bunch
of dead logic ever since we made DSA opaque a few years ago.
ok jsing
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/dsa/dsa_key.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_key.c b/src/lib/libcrypto/dsa/dsa_key.c index 46ec9cfce9..5fbedcf705 100644 --- a/src/lib/libcrypto/dsa/dsa_key.c +++ b/src/lib/libcrypto/dsa/dsa_key.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: dsa_key.c,v 1.36 2024/05/10 04:53:55 tb Exp $ */ | 1 | /* $OpenBSD: dsa_key.c,v 1.37 2024/05/11 06:43:50 tb 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 | * |
| @@ -76,9 +76,6 @@ DSA_generate_key(DSA *dsa) | |||
| 76 | BN_CTX *ctx = NULL; | 76 | BN_CTX *ctx = NULL; |
| 77 | int ok = 0; | 77 | int ok = 0; |
| 78 | 78 | ||
| 79 | if (dsa->meth->dsa_keygen != NULL) | ||
| 80 | return dsa->meth->dsa_keygen(dsa); | ||
| 81 | |||
| 82 | if ((priv_key = BN_new()) == NULL) | 79 | if ((priv_key = BN_new()) == NULL) |
| 83 | goto err; | 80 | goto err; |
| 84 | if ((pub_key = BN_new()) == NULL) | 81 | if ((pub_key = BN_new()) == NULL) |
