Make CT_POLICY_EVAL_CTX_set1_{cert,issuer} into boolean functions
authorRob Percival <robpercival@google.com>
Mon, 15 Aug 2016 13:47:02 +0000 (14:47 +0100)
committerRich Salz <rsalz@openssl.org>
Mon, 15 Aug 2016 16:56:47 +0000 (12:56 -0400)
commit11c68ceaa6bd93f4c2de4ae34bb1852729447d45
treeded9cefbc9fcba492dc90da87cd02882eab67cdf
parenta1bb7708cec057fe07d987398015c01e6090891f
Make CT_POLICY_EVAL_CTX_set1_{cert,issuer} into boolean functions

They may fail if they cannot increment the reference count of the
certificate they are storing a pointer for. They should return 0 if this
occurs.

Reviewed-by: Emilia Käsper <emilia@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1408)
crypto/ct/ct_policy.c
include/openssl/ct.h