From: Mark Wooding Date: Mon, 22 Dec 2014 20:32:58 +0000 (+0000) Subject: pub/rsa-recover.c, pub/rsa.h: Say what's left when `rsa_recover' fails. X-Git-Tag: 2.2.0~20 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb/commitdiff_plain/395da1081e82c27bbd927b22fd52fc6d63d188b7 pub/rsa-recover.c, pub/rsa.h: Say what's left when `rsa_recover' fails. --- diff --git a/pub/rsa-recover.c b/pub/rsa-recover.c index 1a7c4600..9f22f230 100644 --- a/pub/rsa-recover.c +++ b/pub/rsa-recover.c @@ -41,6 +41,10 @@ * sense. * * Use: Derives the full set of RSA parameters given a minimal set. + * + * On failure, the parameter block might be partially filled in, + * but the @rsa_privfree@ function will be able to free it + * successfully. */ int rsa_recover(rsa_priv *rp) diff --git a/pub/rsa.h b/pub/rsa.h index 2fb767da..cd910b77 100644 --- a/pub/rsa.h +++ b/pub/rsa.h @@ -349,6 +349,10 @@ extern int rsa_gen(rsa_priv */*rp*/, unsigned /*nbits*/, * sense. * * Use: Derives the full set of RSA parameters given a minimal set. + * + * On failure, the parameter block might be partially filled in, + * but the @rsa_privfree@ function will be able to free it + * successfully. */ extern int rsa_recover(rsa_priv */*rp*/);