diff options
| author | tb <> | 2023-07-28 10:35:14 +0000 |
|---|---|---|
| committer | tb <> | 2023-07-28 10:35:14 +0000 |
| commit | e91177528644d7ab4206592aac5a07f85a3ceec2 (patch) | |
| tree | a224a2dfd6e61c26d9769cf16e0585806b712161 /src/lib/libcrypto/bn | |
| parent | b8d30e719ace66cc62ab262ddf8f89df4046d5e8 (diff) | |
| download | openbsd-e91177528644d7ab4206592aac5a07f85a3ceec2.tar.gz openbsd-e91177528644d7ab4206592aac5a07f85a3ceec2.tar.bz2 openbsd-e91177528644d7ab4206592aac5a07f85a3ceec2.zip | |
Remove various ${thing}_options
Various, ancient ciphers exposed some of their innards via an _options()
API. Apart from openssl version/speed, only some lua thingie in nmap ever
looked at these. Go figure.
hppa testing by miod, i386 testing by sthen. Thanks!
ok jsing
Diffstat (limited to 'src/lib/libcrypto/bn')
| -rw-r--r-- | src/lib/libcrypto/bn/bn_lib.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/lib/libcrypto/bn/bn_lib.c b/src/lib/libcrypto/bn/bn_lib.c index 74359dab37..c0c0ac876f 100644 --- a/src/lib/libcrypto/bn/bn_lib.c +++ b/src/lib/libcrypto/bn/bn_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_lib.c,v 1.89 2023/07/08 12:21:58 beck Exp $ */ | 1 | /* $OpenBSD: bn_lib.c,v 1.90 2023/07/28 10:35:14 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 | * |
| @@ -655,26 +655,6 @@ BN_is_negative(const BIGNUM *a) | |||
| 655 | } | 655 | } |
| 656 | LCRYPTO_ALIAS(BN_is_negative); | 656 | LCRYPTO_ALIAS(BN_is_negative); |
| 657 | 657 | ||
| 658 | char * | ||
| 659 | BN_options(void) | ||
| 660 | { | ||
| 661 | static int init = 0; | ||
| 662 | static char data[16]; | ||
| 663 | |||
| 664 | if (!init) { | ||
| 665 | init++; | ||
| 666 | #ifdef BN_LLONG | ||
| 667 | snprintf(data,sizeof data, "bn(%d,%d)", | ||
| 668 | (int)sizeof(BN_ULLONG) * 8, (int)sizeof(BN_ULONG) * 8); | ||
| 669 | #else | ||
| 670 | snprintf(data,sizeof data, "bn(%d,%d)", | ||
| 671 | (int)sizeof(BN_ULONG) * 8, (int)sizeof(BN_ULONG) * 8); | ||
| 672 | #endif | ||
| 673 | } | ||
| 674 | return (data); | ||
| 675 | } | ||
| 676 | LCRYPTO_ALIAS(BN_options); | ||
| 677 | |||
| 678 | /* | 658 | /* |
| 679 | * Bits of security, see SP800-57, section 5.6.11, table 2. | 659 | * Bits of security, see SP800-57, section 5.6.11, table 2. |
| 680 | */ | 660 | */ |
