Reorganize bn_mul.c (no bugfix yet), remove obsolete files in BN library.
[openssl.git] / crypto / bn / bn_print.c
index 80de7ea5000f7db2c5965b4cfb59fc2c7ed6d689..131aad2e669648e30b0d15515f5941fbe76d11c3 100644 (file)
@@ -278,7 +278,6 @@ err:
        }
 
 #ifndef NO_BIO
-
 #ifndef NO_FP_API
 int BN_print_fp(FILE *fp, const BIGNUM *a)
        {
@@ -319,5 +318,17 @@ int BN_print(BIO *bp, const BIGNUM *a)
 end:
        return(ret);
        }
+#endif
 
+#ifdef BN_DEBUG
+void bn_dump1(FILE *o, const char *a, BN_ULONG *b,int n)
+       {
+       int i;
+       fprintf(o, "%s=", a);
+       for (i=n;i>=0;i--)
+               {
+               fprintf(o, "[%08lX]", b[i]);
+               }
+       fprintf(o, "\n");
+       }
 #endif