summaryrefslogtreecommitdiffhomepage
path: root/dbutil.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-11-01 00:19:25 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-11-01 00:19:25 +0800
commit35f26ff8555c0accbc5b48df0fceebab3a71c54b (patch)
tree7de6c381ae3c68e5803bb62e535136b9f56247cf /dbutil.c
parent3d733a16e9ee856a45a1fbd9a1b48005d78063f9 (diff)
parent55e7f0486a15b08122fffb22e38c71be15ef2986 (diff)
merge again
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