summaryrefslogtreecommitdiffhomepage
path: root/bignum.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2017-05-26 21:08:43 +0800
committerMatt Johnston <matt@ucc.asn.au>2017-05-26 21:08:43 +0800
commitc38927da47fa3c96cdcc7e4c81d9068bf01bf1fb (patch)
treec24afd4e5b05f485e6b42663d5dfdb335dc8117d /bignum.h
parent7ab8f61974601444046888da07f211c44e55e5a5 (diff)
add m_mp_free_multi, be more careful freeing when failing to load keys
Diffstat (limited to 'bignum.h')
-rw-r--r--bignum.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bignum.h b/bignum.h
index 59702c3..bab65ef 100644
--- a/bignum.h
+++ b/bignum.h
@@ -30,6 +30,7 @@
void m_mp_init(mp_int *mp);
void m_mp_init_multi(mp_int *mp, ...) ATTRIB_SENTINEL;
void m_mp_alloc_init_multi(mp_int **mp, ...) ATTRIB_SENTINEL;
+void m_mp_free_multi(mp_int **mp, ...) ATTRIB_SENTINEL;
void bytes_to_mp(mp_int *mp, const unsigned char* bytes, unsigned int len);
void hash_process_mp(const struct ltc_hash_descriptor *hash_desc,
hash_state *hs, mp_int *mp);