bignum: make mpi_init() and mpi_free() accept a single argument1
commit73424c689f70402c205a1d2ff4f117c7e700274f
authorWilliam Smith <wsmith1@mail.ru>
Sun, 27 Jan 2013 16:58:55 +0000 (27 11:58 -0500)
committerWilliam Smith <wsmith1@mail.ru>
Sun, 27 Jan 2013 22:49:26 +0000 (27 17:49 -0500)
treef14457ec70c9131ee5d9678ed0580e4c12b6538d
parent37353ce3db8e49fbf58af50335671f49904208f3
bignum: make mpi_init() and mpi_free() accept a single argument

Make mpi_init() and mpi_free() accept a single argument. This
prevents unexpected memory corruption in some cases, makes the
API simpler to use and less error prone. Before this change,
mpi_init() and mpi_free() accepted a variable-length list
of arguments that had to be terminated by NULL.
include/tropicssl/bignum.h
library/bignum.c
library/dhm.c
library/rsa.c
programs/pkey/dh_genprime.c
programs/pkey/mpi_demo.c