Home
last modified time | relevance | path

Searched refs:sct (Results 1 – 15 of 15) sorted by relevance

/openssl/crypto/ct/
H A Dct_sct.c24 SCT *sct = OPENSSL_zalloc(sizeof(*sct)); in SCT_new() local
26 if (sct == NULL) in SCT_new()
31 return sct; in SCT_new()
36 if (sct == NULL) in SCT_free()
42 OPENSSL_free(sct->sct); in SCT_free()
43 OPENSSL_free(sct); in SCT_free()
142 sct->ext = ext; in SCT_set0_extensions()
166 sct->sig = sig; in SCT_set0_signature()
245 return sct->sct != NULL; /* Just need cached encoding */ in SCT_is_complete()
252 sct->sig != NULL && sct->sig_len > 0; in SCT_signature_is_complete()
[all …]
H A Dct_oct.c72 SCT *sct = NULL; in o2i_SCT() local
135 sct->sct = OPENSSL_memdup(p, len); in o2i_SCT()
136 if (sct->sct == NULL) in o2i_SCT()
147 return sct; in o2i_SCT()
149 SCT_free(sct); in o2i_SCT()
189 memcpy(p, sct->sig, sct->sig_len); in i2o_SCT_signature()
214 len = 43 + sct->ext_len + 4 + sct->sig_len; in i2o_SCT()
238 memcpy(p, sct->ext, sct->ext_len); in i2o_SCT()
244 memcpy(p, sct->sct, len); in i2o_SCT()
275 SCT *sct; in STACK_OF() local
[all …]
H A Dct_prn.c21 int nid = SCT_get_signature_nid(sct); in SCT_signature_algorithms_print()
24 BIO_printf(out, "%02X%02X", sct->hash_alg, sct->sig_alg); in SCT_signature_algorithms_print()
53 switch (SCT_get_validation_status(sct)) { in SCT_validation_status_string()
83 if (sct->version != SCT_VERSION_V1) { in SCT_print()
85 BIO_hex_string(out, indent + 16, 16, sct->sct, sct->sct_len); in SCT_print()
97 BIO_hex_string(out, indent + 16, 16, sct->log_id, sct->log_id_len); in SCT_print()
100 timestamp_print(sct->timestamp, out); in SCT_print()
103 if (sct->ext_len == 0) in SCT_print()
106 BIO_hex_string(out, indent + 16, 16, sct->ext, sct->ext_len); in SCT_print()
109 SCT_signature_algorithms_print(sct, out); in SCT_print()
[all …]
H A Dct_vfy.c53 *p++ = sct->version; in sct_ctx_update()
55 l2n8(sct->timestamp, p); in sct_ctx_update()
56 s2n(sct->entry_type, p); in sct_ctx_update()
61 if (sct->entry_type == CT_LOG_ENTRY_TYPE_X509) { in sct_ctx_update()
86 s2n(sct->ext_len, p); in sct_ctx_update()
90 if (sct->ext_len && !EVP_DigestUpdate(ctx, sct->ext, sct->ext_len)) in sct_ctx_update()
107 if (sct->version != SCT_VERSION_V1) { in SCT_CTX_verify()
111 if (sct->log_id_len != sctx->pkeyhashlen || in SCT_CTX_verify()
116 if (sct->timestamp > sctx->epoch_time_in_ms) { in SCT_CTX_verify()
129 if (!sct_ctx_update(ctx, sctx, sct)) in SCT_CTX_verify()
[all …]
H A Dct_b64.c66 SCT *sct = SCT_new(); in SCT_new_from_base64() local
71 if (sct == NULL) { in SCT_new_from_base64()
80 if (!SCT_set_version(sct, version)) { in SCT_new_from_base64()
90 if (!SCT_set0_log_id(sct, dec, declen)) in SCT_new_from_base64()
99 SCT_set0_extensions(sct, dec, declen); in SCT_new_from_base64()
109 if (o2i_SCT_signature(sct, &p, declen) <= 0) in SCT_new_from_base64()
114 SCT_set_timestamp(sct, timestamp); in SCT_new_from_base64()
116 if (!SCT_set_log_entry_type(sct, entry_type)) in SCT_new_from_base64()
119 return sct; in SCT_new_from_base64()
123 SCT_free(sct); in SCT_new_from_base64()
H A Dct_local.h60 unsigned char *sct; member
177 __owur int SCT_CTX_verify(const SCT_CTX *sctx, const SCT *sct);
183 __owur int SCT_is_complete(const SCT *sct);
191 __owur int SCT_signature_is_complete(const SCT *sct);
201 __owur int i2o_SCT_signature(const SCT *sct, unsigned char **out);
212 __owur int o2i_SCT_signature(SCT *sct, const unsigned char **in, size_t len);
/openssl/doc/man3/
H A DSCT_new.pod46 void SCT_free(SCT *sct);
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);
55 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id);
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);
73 sct_source_t SCT_get_source(const SCT *sct);
[all …]
H A DSCT_print.pod12 void SCT_print(const SCT *sct, BIO *out, int indent, const CTLOG_STORE *logs);
15 const char *SCT_validation_status_string(const SCT *sct);
H A DSCT_validate.pod21 int SCT_validate(SCT *sct, const CT_POLICY_EVAL_CTX *ctx);
23 sct_validation_status_t SCT_get_validation_status(const SCT *sct);
H A Do2i_SCT_LIST.pod16 int i2o_SCT(const SCT *sct, unsigned char **out);
/openssl/include/openssl/
H A Dct.h.in164 void SCT_free(SCT *sct);
175 sct_version_t SCT_get_version(const SCT *sct);
219 uint64_t SCT_get_timestamp(const SCT *sct);
224 void SCT_set_timestamp(SCT *sct, uint64_t timestamp);
231 int SCT_get_signature_nid(const SCT *sct);
239 __owur int SCT_set_signature_nid(SCT *sct, int nid);
285 sct_source_t SCT_get_source(const SCT *sct);
291 __owur int SCT_set_source(SCT *sct, sct_source_t source);
296 const char *SCT_validation_status_string(const SCT *sct);
299 * Pretty-prints an |sct| to |out|.
[all …]
/openssl/test/
H A Dct_test.c126 static int compare_sct_list_printout(STACK_OF(SCT) *sct, in compare_sct_list_printout() argument
136 SCT_LIST_print(sct, text_buffer, 0, "\n", NULL); in compare_sct_list_printout()
229 SCT *sct = NULL; in execute_cert_test() local
327 SCT_free(sct); in execute_cert_test()
447 SCT *sct = NULL; in test_encode_tls_sct() local
458 if (!TEST_ptr(sct = SCT_new_from_base64(SCT_VERSION_V1, log_id, in test_encode_tls_sct()
466 sk_SCT_push(fixture->sct_list, sct); in test_encode_tls_sct()
/openssl/crypto/err/
H A Dopenssl.txt515 CT_R_SCT_FUTURE_TIMESTAMP:116:sct future timestamp
516 CT_R_SCT_INVALID:104:sct invalid
517 CT_R_SCT_INVALID_SIGNATURE:107:sct invalid signature
518 CT_R_SCT_LIST_INVALID:105:sct list invalid
519 CT_R_SCT_LOG_ID_MISMATCH:114:sct log id mismatch
520 CT_R_SCT_NOT_SET:106:sct not set
521 CT_R_SCT_UNSUPPORTED_VERSION:115:sct unsupported version
1566 SSL_R_SCT_VERIFICATION_FAILED:208:sct verification failed
/openssl/ssl/
H A Dssl_lib.c6251 SCT *sct = NULL; in ct_move_scts() local
6261 while ((sct = sk_SCT_pop(src)) != NULL) { in ct_move_scts()
6262 if (SCT_set_source(sct, origin) != 1) in ct_move_scts()
6265 if (!sk_SCT_push(*dst, sct)) in ct_move_scts()
6272 SCT_free(sct); in ct_move_scts()
6411 SCT *sct = sk_SCT_value(scts, i); in ct_strict() local
6412 int status = SCT_get_validation_status(sct); in ct_strict()
/openssl/apps/
H A Ds_client.c3466 SCT *sct = sk_SCT_value(scts, i); in print_stuff() local
3469 SCT_validation_status_string(sct)); in print_stuff()
3470 SCT_print(sct, bio, 0, log_store); in print_stuff()

Completed in 68 milliseconds