Adds copyright section to ct.pod
[openssl.git] / doc / crypto / SCT_new.pod
index 27bf2361d2cf39dc50eb3aaf0a9f59e591d2a4e6..54b43cde387e3f42702a66fc79251e04b9b158d3 100644 (file)
@@ -2,12 +2,39 @@
 
 =head1 NAME
 
-SCT - A Certificate Transparency Signed Certificate Timestamp
+SCT_new, SCT_new_from_base64, SCT_free, SCT_LIST_free,
+SCT_get_version, SCT_set_version,
+SCT_get_log_entry_type, SCT_set_log_entry_type,
+SCT_get0_log_id, SCT_set0_log_id, SCT_set1_log_id,
+SCT_get_timestamp, SCT_set_timestamp,
+SCT_get_signature_nid, SCT_set_signature_nid,
+SCT_get0_signature, SCT_set0_signature, SCT_set1_signature,
+SCT_get0_extensions, SCT_set0_extensions, SCT_set1_extensions,
+SCT_get_source, SCT_set_source
+ - A Certificate Transparency Signed Certificate Timestamp
 
 =head1 SYNOPSIS
 
  #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,
@@ -35,14 +62,14 @@ SCT - A Certificate Transparency Signed Certificate Timestamp
  int SCT_get_signature_nid(const SCT *sct);
  int SCT_set_signature_nid(SCT *sct, int nid);
 
- size_t SCT_get0_extensions(const SCT *sct, unsigned char **ext);
- void SCT_set0_extensions(SCT *sct, unsigned char *ext, size_t ext_len);
- int SCT_set1_extensions(SCT *sct, const unsigned char *ext, size_t ext_len);
-
  size_t SCT_get0_signature(const SCT *sct, unsigned char **sig);
  void SCT_set0_signature(SCT *sct, unsigned char *sig, size_t sig_len);
  int SCT_set1_signature(SCT *sct, const unsigned char *sig, size_t sig_len);
 
+ size_t SCT_get0_extensions(const SCT *sct, unsigned char **ext);
+ void SCT_set0_extensions(SCT *sct, unsigned char *ext, size_t ext_len);
+ int SCT_set1_extensions(SCT *sct, const unsigned char *ext, size_t ext_len);
+
  sct_source_t SCT_get_source(const SCT *sct);
  int SCT_set_source(SCT *sct, sct_source_t source);