summaryrefslogtreecommitdiff
path: root/dbutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'dbutil.c')
-rw-r--r--dbutil.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/dbutil.c b/dbutil.c
index 2589e1a..b194e3d 100644
--- a/dbutil.c
+++ b/dbutil.c
@@ -675,6 +675,14 @@ void printhex(const char * label, const unsigned char * buf, int len) {
}
fprintf(stderr, "\n");
}
+
+void printmpint(const char *label, mp_int *mp) {
+ buffer *buf = buf_new(1000);
+ buf_putmpint(buf, mp);
+ printhex(label, buf->data, buf->len);
+ buf_free(buf);
+
+}
#endif
/* Strip all control characters from text (a null-terminated string), except