summaryrefslogtreecommitdiffstats
path: root/generic/tclTomMath.decls
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-10-23 09:16:37 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-10-23 09:16:37 (GMT)
commit2df6f12a996d019b78a31c15f5875e2609fb28b2 (patch)
tree55a9f72791801290593f4cec9b4bb2359aab54dc /generic/tclTomMath.decls
parent481c3a3fd52f111e7c645ea5b959fc128fe1d377 (diff)
downloadtcl-2df6f12a996d019b78a31c15f5875e2609fb28b2.zip
tcl-2df6f12a996d019b78a31c15f5875e2609fb28b2.tar.gz
tcl-2df6f12a996d019b78a31c15f5875e2609fb28b2.tar.bz2
Extend libtommath stub table, so extension writers can move away from deprecated libtommath functions.
Diffstat (limited to 'generic/tclTomMath.decls')
-rw-r--r--generic/tclTomMath.decls15
1 files changed, 14 insertions, 1 deletions
diff --git a/generic/tclTomMath.decls b/generic/tclTomMath.decls
index 1ac1cb9..01df31b 100644
--- a/generic/tclTomMath.decls
+++ b/generic/tclTomMath.decls
@@ -240,6 +240,9 @@ declare 67 {
declare 70 {
mp_err TclBN_mp_set_long(mp_int *a, unsigned long i)
}
+declare 72 {
+ mp_bool TclBN_mp_isodd(const mp_int *a)
+}
# Added in libtommath 1.1.0
declare 73 {
@@ -254,11 +257,21 @@ declare 75 {
declare 76 {
mp_err TclBN_mp_signed_rsh(const mp_int *a, int b, mp_int *c)
}
-
declare 77 {
mp_bool TclBN_mp_get_bit(const mp_int *a, unsigned int b)
}
+# Added in libtommath 1.2.0
+declare 78 {
+ int TclBN_mp_to_ubin(const mp_int *a, unsigned char *buf, size_t maxlen, size_t *written)
+}
+declare 79 {
+ size_t TclBN_mp_ubin_size(const mp_int *a)
+}
+declare 80 {
+ int TclBN_mp_to_radix(const mp_int *a, char *str, size_t maxlen, size_t *written, int radix)
+}
+
# Local Variables:
# mode: tcl