summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-13 21:48:15 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-13 21:48:15 (GMT)
commitde326e5c5ed447c99c7be6991f76cc9d5e774698 (patch)
tree609f9b5951391fee802aeb9989ec4971ac104a99
parent9eeefad066a16a6e9a3407178f7629a8cd4c0e61 (diff)
downloadtcl-de326e5c5ed447c99c7be6991f76cc9d5e774698.zip
tcl-de326e5c5ed447c99c7be6991f76cc9d5e774698.tar.gz
tcl-de326e5c5ed447c99c7be6991f76cc9d5e774698.tar.bz2
Don't export mp_sqr() directly from libtcl
-rw-r--r--libtommath/tommath_private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libtommath/tommath_private.h b/libtommath/tommath_private.h
index 60c8838..93724a4 100644
--- a/libtommath/tommath_private.h
+++ b/libtommath/tommath_private.h
@@ -249,6 +249,11 @@ MP_DEPRECATED(s_mp_toom_mul) mp_err mp_toom_mul(const mp_int *a, const mp_int *b
MP_DEPRECATED(s_mp_toom_sqr) mp_err mp_toom_sqr(const mp_int *a, mp_int *b);
MP_DEPRECATED(s_mp_reverse) void bn_reverse(unsigned char *s, int len);
+#ifndef TCL_WITH_EXTERNAL_TOMMATH
+#undef mp_sqr
+#define mp_sqr TclBN_mp_sqr
+#endif
+
#undef mp_sqr
#define mp_sqr TclBN_mp_sqr