summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn
diff options
context:
space:
mode:
authortb <>2023-07-28 10:35:14 +0000
committertb <>2023-07-28 10:35:14 +0000
commitf081b066a62db7e3bea15c67edb84e04026495b2 (patch)
treea224a2dfd6e61c26d9769cf16e0585806b712161 /src/lib/libcrypto/bn
parentd13035e40f9f0aeb77be3097963f11fabf83e401 (diff)
downloadopenbsd-f081b066a62db7e3bea15c67edb84e04026495b2.tar.gz
openbsd-f081b066a62db7e3bea15c67edb84e04026495b2.tar.bz2
openbsd-f081b066a62db7e3bea15c67edb84e04026495b2.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.c22
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}
656LCRYPTO_ALIAS(BN_is_negative); 656LCRYPTO_ALIAS(BN_is_negative);
657 657
658char *
659BN_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}
676LCRYPTO_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 */