diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-06-27 22:42:25 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-07-05 17:45:58 +0100 |
commit | 4aed8756d86e2b934e83d916e57bee91c83c4b28 (patch) | |
tree | d297e500f30e4c35d2236891b2c2f622fe14712d /include/openssl/ct.h | |
parent | e57036f2bf810e807700c80d8ff4f7d100890100 (diff) | |
download | openssl-4aed8756d86e2b934e83d916e57bee91c83c4b28.tar.gz |
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/openssl/ct.h')
-rw-r--r-- | include/openssl/ct.h | 5 |
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. |