From 4aed8756d86e2b934e83d916e57bee91c83c4b28 Mon Sep 17 00:00:00 2001 From: FdaSilvaYY Date: Mon, 27 Jun 2016 22:42:25 +0200 Subject: Improve some error management code in CT Separate invalid input case from any internal (malloc) failure Reviewed-by: Rich Salz Reviewed-by: Matt Caswell --- include/openssl/ct.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/openssl/ct.h b/include/openssl/ct.h index 4ef6063dd8..be7a953ff4 100644 --- a/include/openssl/ct.h +++ b/include/openssl/ct.h @@ -419,10 +419,11 @@ CTLOG *CTLOG_new(EVP_PKEY *public_key, const char *name); CTLOG *CTLOG_new_null(void); /* - * Creates a new CT log instance with the given base64 public_key and |name|. + * Creates a new CT |ct_log| instance with the given base64 public_key and |name|. * Should be deleted by the caller using CTLOG_free when no longer needed. */ -CTLOG *CTLOG_new_from_base64(const char *pkey_base64, const char *name); +int CTLOG_new_from_base64(CTLOG ** ct_log, + const char *pkey_base64, const char *name); /* * Deletes a CT log instance and its fields. -- cgit v1.2.3