summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFdaSilvaYY <fdasilvayy@gmail.com>2016-06-27 22:42:25 +0200
committerMatt Caswell <matt@openssl.org>2016-07-05 17:45:58 +0100
commit4aed8756d86e2b934e83d916e57bee91c83c4b28 (patch)
treed297e500f30e4c35d2236891b2c2f622fe14712d /include
parente57036f2bf810e807700c80d8ff4f7d100890100 (diff)
Improve some error management code in CT
Separate invalid input case from any internal (malloc) failure Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'include')
-rw-r--r--include/openssl/ct.h5
1 files changed, 3 insertions, 2 deletions
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.