Lines Matching refs:SCT

38  SCT *SCT_new(void);
39 SCT *SCT_new_from_base64(unsigned char version,
46 void SCT_free(SCT *sct);
47 void SCT_LIST_free(STACK_OF(SCT) *a);
49 sct_version_t SCT_get_version(const SCT *sct);
50 int SCT_set_version(SCT *sct, sct_version_t version);
52 ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct);
53 int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type);
55 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id);
56 int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len);
57 int SCT_set1_log_id(SCT *sct, const unsigned char *log_id, size_t log_id_len);
59 uint64_t SCT_get_timestamp(const SCT *sct);
60 void SCT_set_timestamp(SCT *sct, uint64_t timestamp);
62 int SCT_get_signature_nid(const SCT *sct);
63 int SCT_set_signature_nid(SCT *sct, int nid);
65 size_t SCT_get0_signature(const SCT *sct, unsigned char **sig);
66 void SCT_set0_signature(SCT *sct, unsigned char *sig, size_t sig_len);
67 int SCT_set1_signature(SCT *sct, const unsigned char *sig, size_t sig_len);
69 size_t SCT_get0_extensions(const SCT *sct, unsigned char **ext);
70 void SCT_set0_extensions(SCT *sct, unsigned char *ext, size_t ext_len);
71 int SCT_set1_extensions(SCT *sct, const unsigned char *ext, size_t ext_len);
73 sct_source_t SCT_get_source(const SCT *sct);
74 int SCT_set_source(SCT *sct, sct_source_t source);
81 an SCT, some confidence can be gained that the certificate is publicly known.
83 An internal representation of an SCT can be created in one of two ways.
84 The first option is to create a blank SCT, using SCT_new(), and then populate
91 SCT_set_version() to set the SCT version.
97 SCT_set_log_entry_type() to set the type of certificate the SCT was issued for:
104 SCT_set0_log_id() or SCT_set1_log_id() to set the LogID of the CT log that the SCT came from.
111 SCT_set_timestamp() to set the time the SCT was issued (time in milliseconds
126 SCT_set0_extensions() or B<SCT_set1_extensions> to provide SCT extensions.
132 Alternatively, the SCT can be pre-populated from the following data using
139 The SCT version (only SCT_VERSION_V1 is currently supported).
147 The type of certificate the SCT was issued for:
153 The time that the SCT was issued (time in milliseconds since the Unix Epoch).
157 The SCT extensions, base64 encoded.
161 The SCT signature, base64 encoded.
165 SCT_set_source() can be used to record where the SCT was found
167 required for verifying the SCT.
169 SCT_free() frees the specified SCT.
180 All of the setters will reset the validation status of the SCT to
184 certificate the SCT was issued for can be inferred from where the SCT was found.
185 For example, an SCT found in an X.509 extension must have been issued for a pre-