summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2021-09-10 14:32:05 +0000
committertb <>2021-09-10 14:32:05 +0000
commit3987d8461f5c30d0adcadb5ba2214d2ed1353cec (patch)
treefc2ccf9783e91f70165a18a33bb941ee45630e24 /src/lib
parent47a94cad06ffc8bf1c64c7870f0dc905ed8485e4 (diff)
downloadopenbsd-3987d8461f5c30d0adcadb5ba2214d2ed1353cec.tar.gz
openbsd-3987d8461f5c30d0adcadb5ba2214d2ed1353cec.tar.bz2
openbsd-3987d8461f5c30d0adcadb5ba2214d2ed1353cec.zip
Expose BN_RAND_* in <openssl/bn.h>
ok beck jsing
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/bn/bn.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bn/bn.h b/src/lib/libcrypto/bn/bn.h
index 8fc5e270fc..c421e2751a 100644
--- a/src/lib/libcrypto/bn/bn.h
+++ b/src/lib/libcrypto/bn/bn.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn.h,v 1.41 2021/09/10 09:08:03 tb Exp $ */ 1/* $OpenBSD: bn.h,v 1.42 2021/09/10 14:32:05 tb Exp $ */
2/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -231,7 +231,6 @@ extern "C" {
231#define BN_set_flags(b,n) ((b)->flags|=(n)) 231#define BN_set_flags(b,n) ((b)->flags|=(n))
232#define BN_get_flags(b,n) ((b)->flags&(n)) 232#define BN_get_flags(b,n) ((b)->flags&(n))
233 233
234#if defined(LIBRESSL_INTERNAL)
235/* Values for |top| in BN_rand() */ 234/* Values for |top| in BN_rand() */
236#define BN_RAND_TOP_ANY -1 235#define BN_RAND_TOP_ANY -1
237#define BN_RAND_TOP_ONE 0 236#define BN_RAND_TOP_ONE 0
@@ -240,7 +239,6 @@ extern "C" {
240/* Values for |bottom| in BN_rand() */ 239/* Values for |bottom| in BN_rand() */
241#define BN_RAND_BOTTOM_ANY 0 240#define BN_RAND_BOTTOM_ANY 0
242#define BN_RAND_BOTTOM_ODD 1 241#define BN_RAND_BOTTOM_ODD 1
243#endif
244 242
245/* get a clone of a BIGNUM with changed flags, for *temporary* use only 243/* get a clone of a BIGNUM with changed flags, for *temporary* use only
246 * (the two BIGNUMs cannot not be used in parallel!) */ 244 * (the two BIGNUMs cannot not be used in parallel!) */