summaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/bn/bn_lib.c')
-rw-r--r--crypto/bn/bn_lib.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/bn/bn_lib.c b/crypto/bn/bn_lib.c
index 783881d3a6..f63232b9fb 100644
--- a/crypto/bn/bn_lib.c
+++ b/crypto/bn/bn_lib.c
@@ -874,3 +874,11 @@ int bn_cmp_part_words(const BN_ULONG *a, const BN_ULONG *b,
}
return bn_cmp_words(a,b,cl);
}
+
+/* See the comments surrounding BIGNUM_C in bn.h */
+#ifdef BN_DEBUG
+const BIGNUM *BIGNUM_CONST(const BIGNUM_C *bn)
+ {
+ return (const BIGNUM *)bn;
+ }
+#endif