Move declaration for optional bn_mul_mont to bn_lcl.h in order to hide
it from mkdef.pl.
diff --git a/crypto/bn/bn.h b/crypto/bn/bn.h
index 0b616a6..ca58617 100644
--- a/crypto/bn/bn.h
+++ b/crypto/bn/bn.h
@@ -729,7 +729,6 @@
 	bn_pollute(a); \
 	}
 
-int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_ULONG *np,const BN_ULONG *n0, int num);
 BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w);
 BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w);
 void     bn_sqr_words(BN_ULONG *rp, const BN_ULONG *ap, int num);
diff --git a/crypto/bn/bn_lcl.h b/crypto/bn/bn_lcl.h
index ad4ca7f..27ac439 100644
--- a/crypto/bn/bn_lcl.h
+++ b/crypto/bn/bn_lcl.h
@@ -481,6 +481,7 @@
 	int cl, int dl);
 BN_ULONG bn_sub_part_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
 	int cl, int dl);
+int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_ULONG *np,const BN_ULONG *n0, int num);
 
 #ifdef  __cplusplus
 }
diff --git a/util/libeay.num b/util/libeay.num
index 2903d73..af34e1d 100755
--- a/util/libeay.num
+++ b/util/libeay.num
@@ -3405,7 +3405,7 @@
 i2d_NETSCAPE_X509                       3805	EXIST::FUNCTION:
 ISSUING_DIST_POINT_it                   3806	EXIST:!EXPORT_VAR_AS_FUNCTION:VARIABLE:
 ISSUING_DIST_POINT_it                   3806	EXIST:EXPORT_VAR_AS_FUNCTION:FUNCTION:
-bn_mul_mont                             3807	EXIST::FUNCTION:
+bn_mul_mont                             3807	NOEXIST::FUNCTION:
 ASN1_PCTX_set_oid_flags                 3808	EXIST::FUNCTION:
 ASN1_PCTX_new                           3809	EXIST::FUNCTION:
 NETSCAPE_X509_new                       3810	EXIST::FUNCTION: