summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-12-20 14:24:57 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-12-20 14:24:57 +0000
commit93de4408f1c9069fcd2fb427d96c3084371c9295 (patch)
tree0224a9d7257f7e4d30baaf7aa32efb1d9a7498fd /bignum.c
parentdb1345ea08beb72f3e6b5420cd4163a01719a0e0 (diff)
downloaddropbear-93de4408f1c9069fcd2fb427d96c3084371c9295.tar.gz
Cleaning out various dead wood found with -dead_strip
bignum.c: mptobytes now resides in dss.c loginrec.c: remove lastlog code since it isn't used. dbutil.c: removed obselete usingsyslog variable channel.h: client channel type only defined for client compile common-algo.c: s/rijndael/aes/
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/bignum.c b/bignum.c
index 4552d30..97901fb 100644
--- a/bignum.c
+++ b/bignum.c
@@ -52,25 +52,6 @@ void m_mp_init_multi(mp_int *mp, ...)
va_end(args);
}
-/* convert an unsigned mp into an array of bytes, malloced.
- * This array must be freed after use, len contains the length of the array,
- * if len != NULL */
-unsigned char* mptobytes(mp_int *mp, int *len) {
-
- unsigned char* ret;
- int size;
-
- size = mp_unsigned_bin_size(mp);
- ret = m_malloc(size);
- if (mp_to_unsigned_bin(mp, ret) != MP_OKAY) {
- dropbear_exit("mem alloc error");
- }
- if (len != NULL) {
- *len = size;
- }
- return ret;
-}
-
void bytestomp(mp_int *mp, unsigned char* bytes, unsigned int len) {
if (mp_read_unsigned_bin(mp, bytes, len) != MP_OKAY) {