chiark / gitweb /
rsa1: rsa_loadpriv_core: Introduce rsapriv_load_ctx
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 6 Oct 2019 20:42:10 +0000 (21:42 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 30 Dec 2019 13:15:49 +0000 (13:15 +0000)
commit6726ea84216ad802455331b9aa14518952b58d5b
treeaa7bfce712d1972134157bd5602fce7f5fb76732
parent2992911cb21ca5e58ed1d200ff7b1a3d03836422
rsa1: rsa_loadpriv_core: Introduce rsapriv_load_ctx

Make the LD* macros call a new function load_error, and `goto
error_out'.

We must add a call to rsapriv_dispose on the error_out path so that
rsapriv_load_core now always frees everything at every LD* point - so
now this is OK from a memory management pov.

load_error calls a hook function verror.  This is going to let us
parameterise the way rsapriv_load_core works.

No overall functional change yet.

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