summaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn_print.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-01-25 17:10:30 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-01-25 17:10:30 +0000
commit13a5519208f03403543d26ee46cdfab09394e171 (patch)
tree5307bfc0861e3a6137cb2cba956f00e3396ccbae /crypto/bn/bn_print.c
parentf7a2afa652a9eecb09863754c9a3f3f15ed329a9 (diff)
Move BN_options function to bn_print.c to remove dependency for BIO printf
routines from bn_lib.c
Diffstat (limited to 'crypto/bn/bn_print.c')
-rw-r--r--crypto/bn/bn_print.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/crypto/bn/bn_print.c b/crypto/bn/bn_print.c
index bebb466d08..1743b6a7e2 100644
--- a/crypto/bn/bn_print.c
+++ b/crypto/bn/bn_print.c
@@ -357,3 +357,22 @@ end:
return(ret);
}
#endif
+
+char *BN_options(void)
+ {
+ static int init=0;
+ static char data[16];
+
+ if (!init)
+ {
+ init++;
+#ifdef BN_LLONG
+ BIO_snprintf(data,sizeof data,"bn(%d,%d)",
+ (int)sizeof(BN_ULLONG)*8,(int)sizeof(BN_ULONG)*8);
+#else
+ BIO_snprintf(data,sizeof data,"bn(%d,%d)",
+ (int)sizeof(BN_ULONG)*8,(int)sizeof(BN_ULONG)*8);
+#endif
+ }
+ return(data);
+ }