diff options
author | Rob Percival <robpercival@google.com> | 2016-08-02 16:39:41 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-08-24 14:58:19 +0200 |
commit | ae97a654cadef86d063b4917fdf67f81f5e71f19 (patch) | |
tree | b9a5e47048cfa564423415e51c3b47caf5103463 /doc | |
parent | Remove unnecessary bold tags in CT pods (diff) | |
download | openssl-ae97a654cadef86d063b4917fdf67f81f5e71f19.tar.xz openssl-ae97a654cadef86d063b4917fdf67f81f5e71f19.zip |
Add enum definitions to CT pods
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/crypto/SCT_new.pod | 18 | ||||
-rw-r--r-- | doc/crypto/SCT_validate.pod | 9 |
2 files changed, 27 insertions, 0 deletions
diff --git a/doc/crypto/SCT_new.pod b/doc/crypto/SCT_new.pod index 27bf2361d2..68c9f26655 100644 --- a/doc/crypto/SCT_new.pod +++ b/doc/crypto/SCT_new.pod @@ -8,6 +8,24 @@ SCT - A Certificate Transparency Signed Certificate Timestamp #include <openssl/ct.h> + typedef enum { + CT_LOG_ENTRY_TYPE_NOT_SET = -1, + CT_LOG_ENTRY_TYPE_X509 = 0, + CT_LOG_ENTRY_TYPE_PRECERT = 1 + } ct_log_entry_type_t; + + typedef enum { + SCT_VERSION_NOT_SET = -1, + SCT_VERSION_V1 = 0 + } sct_version_t; + + typedef enum { + SCT_SOURCE_UNKNOWN, + SCT_SOURCE_TLS_EXTENSION, + SCT_SOURCE_X509V3_EXTENSION, + SCT_SOURCE_OCSP_STAPLED_RESPONSE + } sct_source_t; + SCT *SCT_new(void); SCT *SCT_new_from_base64(unsigned char version, const char *logid_base64, diff --git a/doc/crypto/SCT_validate.pod b/doc/crypto/SCT_validate.pod index 1dc36fea5e..9e7d7cc302 100644 --- a/doc/crypto/SCT_validate.pod +++ b/doc/crypto/SCT_validate.pod @@ -9,6 +9,15 @@ checks Signed Certificate Timestamps meet a Certificate Transparency policy #include <openssl/ct.h> + typedef enum { + SCT_VALIDATION_STATUS_NOT_SET, + SCT_VALIDATION_STATUS_UNKNOWN_LOG, + SCT_VALIDATION_STATUS_VALID, + SCT_VALIDATION_STATUS_INVALID, + SCT_VALIDATION_STATUS_UNVERIFIED, + SCT_VALIDATION_STATUS_UNKNOWN_VERSION + } sct_validation_status_t; + sct_validation_status_t SCT_get_validation_status(const SCT *sct); int SCT_validate(SCT *sct, const CT_POLICY_EVAL_CTX *ctx); int SCT_LIST_validate(const STACK_OF(SCT) *scts, CT_POLICY_EVAL_CTX *ctx); |