From 395da1081e82c27bbd927b22fd52fc6d63d188b7 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 22 Dec 2014 20:32:58 +0000 Subject: [PATCH] pub/rsa-recover.c, pub/rsa.h: Say what's left when `rsa_recover' fails. --- pub/rsa-recover.c | 4 ++++ pub/rsa.h | 4 ++++ 2 files changed, 8 insertions(+) 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*/); -- 2.11.0