chiark / gitweb /
dh: move write_mpbin in to dh.c
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Dec 2019 13:13:34 +0000 (13:13 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 30 Dec 2019 13:15:50 +0000 (13:15 +0000)
commit391328cc43dda6b39585d344b2f2e7506b451f5b
tree01abc7ef7bded6ee296c10b00ff925ad410692dd
parenta26e0fbf1ae5a0afa9b2c56e8d118caf327cb593
dh: move write_mpbin in to dh.c

This function has a hazardous API.  In fact, the one call site misuses
it, as we shall see in a moment.

If we wanted a thing like this with a less hazardous API we probably
wouldn't base it on mpz_get_str nowadays.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dh.c
util.c
util.h