Home
last modified time | relevance | path

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

/dragonfly/crypto/libressl/crypto/ct/
HDct_sct.c77 SCT *sct = calloc(1, sizeof(*sct)); in SCT_new() local
79 if (sct == NULL) { in SCT_new()
84 sct->entry_type = CT_LOG_ENTRY_TYPE_NOT_SET; in SCT_new()
85 sct->version = SCT_VERSION_NOT_SET; in SCT_new()
86 return sct; in SCT_new()
90 SCT_free(SCT *sct) in SCT_free() argument
92 if (sct == NULL) in SCT_free()
95 free(sct->log_id); in SCT_free()
96 free(sct->ext); in SCT_free()
97 free(sct->sig); in SCT_free()
[all …]
HDct_oct.c76 o2i_SCT_signature(SCT *sct, CBS *cbs) in o2i_SCT_signature() argument
81 if (sct->version != SCT_VERSION_V1) { in o2i_SCT_signature()
106 sct->hash_alg = hash_alg; in o2i_SCT_signature()
107 sct->sig_alg = sig_alg; in o2i_SCT_signature()
109 if (SCT_get_signature_nid(sct) == NID_undef) in o2i_SCT_signature()
112 if (!SCT_set1_signature(sct, CBS_data(&signature), CBS_len(&signature))) in o2i_SCT_signature()
125 SCT *sct = NULL; in o2i_SCT_internal() local
130 if ((sct = SCT_new()) == NULL) in o2i_SCT_internal()
138 sct->version = version; in o2i_SCT_internal()
157 if (!CBS_stow(&log_id, &sct->log_id, &sct->log_id_len)) in o2i_SCT_internal()
[all …]
HDct_prn.c100 SCT_signature_algorithms_print(const SCT *sct, BIO *out) in SCT_signature_algorithms_print() argument
102 int nid = SCT_get_signature_nid(sct); in SCT_signature_algorithms_print()
105 BIO_printf(out, "%02X%02X", sct->hash_alg, sct->sig_alg); in SCT_signature_algorithms_print()
131 SCT_validation_status_string(const SCT *sct) in SCT_validation_status_string() argument
133 switch (SCT_get_validation_status(sct)) { in SCT_validation_status_string()
151 SCT_print(const SCT *sct, BIO *out, int indent, const CTLOG_STORE *log_store) in SCT_print() argument
156 log = CTLOG_STORE_get0_log_by_id(log_store, sct->log_id, in SCT_print()
157 sct->log_id_len); in SCT_print()
163 if (sct->version != SCT_VERSION_V1) { in SCT_print()
165 BIO_hex_string(out, indent + 16, 16, sct->sct, sct->sct_len); in SCT_print()
[all …]
HDct_vfy.c80 sct_ctx_update(EVP_MD_CTX *ctx, const SCT_CTX *sctx, const SCT *sct) in sct_ctx_update() argument
89 if (sct->entry_type == CT_LOG_ENTRY_TYPE_NOT_SET) in sct_ctx_update()
91 if (sct->entry_type == CT_LOG_ENTRY_TYPE_PRECERT && sctx->ihash == NULL) in sct_ctx_update()
100 if (!CBB_add_u8(&cbb, sct->version)) in sct_ctx_update()
104 if (!CBB_add_u64(&cbb, sct->timestamp)) in sct_ctx_update()
106 if (!CBB_add_u16(&cbb, sct->entry_type)) in sct_ctx_update()
109 if (sct->entry_type == CT_LOG_ENTRY_TYPE_PRECERT) { in sct_ctx_update()
116 if (sct->entry_type == CT_LOG_ENTRY_TYPE_PRECERT) { in sct_ctx_update()
130 if (sct->ext_len > 0) { in sct_ctx_update()
131 if (!CBB_add_bytes(&extensions, sct->ext, sct->ext_len)) in sct_ctx_update()
[all …]
HDct_b64.c125 SCT *sct; in SCT_new_from_base64() local
128 if ((sct = SCT_new()) == NULL) { in SCT_new_from_base64()
137 if (!SCT_set_version(sct, version)) { in SCT_new_from_base64()
147 if (!SCT_set0_log_id(sct, dec, declen)) in SCT_new_from_base64()
156 SCT_set0_extensions(sct, dec, declen); in SCT_new_from_base64()
166 if (!o2i_SCT_signature(sct, &cbs)) in SCT_new_from_base64()
171 SCT_set_timestamp(sct, timestamp); in SCT_new_from_base64()
173 if (!SCT_set_log_entry_type(sct, entry_type)) in SCT_new_from_base64()
176 return sct; in SCT_new_from_base64()
180 SCT_free(sct); in SCT_new_from_base64()
HDct_local.h95 unsigned char *sct; member
215 int SCT_CTX_verify(const SCT_CTX *sctx, const SCT *sct);
221 int SCT_is_complete(const SCT *sct);
229 int SCT_signature_is_complete(const SCT *sct);
244 int i2o_SCT_signature(const SCT *sct, unsigned char **out);
255 int o2i_SCT_signature(SCT *sct, CBS *cbs);
/dragonfly/crypto/libressl/include/openssl/
HDct.h181 void SCT_free(SCT *sct);
192 sct_version_t SCT_get_version(const SCT *sct);
198 int SCT_set_version(SCT *sct, sct_version_t version);
203 ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct);
209 int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type);
216 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id);
223 int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len);
230 int SCT_set1_log_id(SCT *sct, const unsigned char *log_id,
236 uint64_t SCT_get_timestamp(const SCT *sct);
241 void SCT_set_timestamp(SCT *sct, uint64_t timestamp);
[all …]
/dragonfly/usr.bin/at/
HDparsetime.c141 static char *sct; /* scanner - next char pointer in current argument */ variable
207 sct = *scp; in token()
216 while (isspace(*sct)) in token()
217 ++sct; in token()
218 if (!*sct) { in token()
225 sc_token[0] = *sct++; in token()
230 while (isdigit(*sct)) in token()
231 sc_token[++idx] = *sct++; in token()
236 while (isalpha(*sct)) in token()
237 sc_token[++idx] = *sct++; in token()
/dragonfly/sys/bus/firewire/
HDiec68113.h103 u_int8_t sct:3, /* Section type */ member
109 sct:3; /* Section type */
/dragonfly/usr.sbin/fwcontrol/
HDfwdv.c184 fprintf(stderr, "(%d,%d) ", dv->sct, dv->dseq); in dvrecv()
186 if (dv->sct == DV_SCT_HEADER && dv->dseq == 0) { in dvrecv()
337 header = (dv->sct == 0 && dv->dseq == 0); in dvsend()
/dragonfly/sys/dev/raid/mpr/
HDmpr_sas.c2304 uint8_t sct, sc;
2306 sct = NVME_STATUS_GET_SCT(nvme_status);
2314 switch (sct) {
/dragonfly/share/termcap/
HDtermcap.src3550 xitex|xitex sct-100:\