/freebsd/crypto/openssl/crypto/ct/ |
H A D | ct_sct.c | 24 SCT *sct = OPENSSL_zalloc(sizeof(*sct)); in SCT_new() local 26 if (sct == NULL) { in SCT_new() 31 sct->entry_type = CT_LOG_ENTRY_TYPE_NOT_SET; in SCT_new() 32 sct->version = SCT_VERSION_NOT_SET; in SCT_new() 33 return sct; in SCT_new() 36 void SCT_free(SCT *sct) in SCT_free() argument 38 if (sct == NULL) in SCT_free() 41 OPENSSL_free(sct->log_id); in SCT_free() 42 OPENSSL_free(sct->ext); in SCT_free() 43 OPENSSL_free(sct->sig); in SCT_free() [all …]
|
H A D | ct_oct.c | 24 int o2i_SCT_signature(SCT *sct, const unsigned char **in, size_t len) in o2i_SCT_signature() argument 30 if (sct->version != SCT_VERSION_V1) { in o2i_SCT_signature() 48 sct->hash_alg = *p++; in o2i_SCT_signature() 49 sct->sig_alg = *p++; in o2i_SCT_signature() 50 if (SCT_get_signature_nid(sct) == NID_undef) { in o2i_SCT_signature() 62 if (SCT_set1_signature(sct, p, siglen) != 1) in o2i_SCT_signature() 72 SCT *sct = NULL; in o2i_SCT() local 80 if ((sct = SCT_new()) == NULL) in o2i_SCT() 85 sct->version = *p; in o2i_SCT() 86 if (sct->version == SCT_VERSION_V1) { in o2i_SCT() [all …]
|
H A D | ct_prn.c | 19 static void SCT_signature_algorithms_print(const SCT *sct, BIO *out) in SCT_signature_algorithms_print() argument 21 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() 50 const char *SCT_validation_status_string(const SCT *sct) in SCT_validation_status_string() argument 53 switch (SCT_get_validation_status(sct)) { in SCT_validation_status_string() 70 void SCT_print(const SCT *sct, BIO *out, int indent, in SCT_print() argument 76 log = CTLOG_STORE_get0_log_by_id(log_store, sct->log_id, in SCT_print() 77 sct->log_id_len); in SCT_print() 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() [all …]
|
H A D | ct_vfy.c | 29 static int sct_ctx_update(EVP_MD_CTX *ctx, const SCT_CTX *sctx, const SCT *sct) in sct_ctx_update() argument 47 if (sct->entry_type == CT_LOG_ENTRY_TYPE_NOT_SET) in sct_ctx_update() 49 if (sct->entry_type == CT_LOG_ENTRY_TYPE_PRECERT && sctx->ihash == NULL) in sct_ctx_update() 53 *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() 96 int SCT_CTX_verify(const SCT_CTX *sctx, const SCT *sct) in SCT_CTX_verify() argument [all …]
|
H A D | ct_b64.c | 68 SCT *sct = SCT_new(); in SCT_new_from_base64() local 73 if (sct == NULL) { in SCT_new_from_base64() 82 if (!SCT_set_version(sct, version)) { in SCT_new_from_base64() 92 if (!SCT_set0_log_id(sct, dec, declen)) in SCT_new_from_base64() 101 SCT_set0_extensions(sct, dec, declen); in SCT_new_from_base64() 111 if (o2i_SCT_signature(sct, &p, declen) <= 0) in SCT_new_from_base64() 116 SCT_set_timestamp(sct, timestamp); in SCT_new_from_base64() 118 if (!SCT_set_log_entry_type(sct, entry_type)) in SCT_new_from_base64() 121 return sct; in SCT_new_from_base64() 125 SCT_free(sct); in SCT_new_from_base64()
|
H A D | ct_local.h | 60 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);
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | ct.h | 212 void SCT_free(SCT *sct); 223 sct_version_t SCT_get_version(const SCT *sct); 229 __owur int SCT_set_version(SCT *sct, sct_version_t version); 234 ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct); 240 __owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type); 247 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id); 254 __owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len); 261 __owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id, 267 uint64_t SCT_get_timestamp(const SCT *sct); 272 void SCT_set_timestamp(SCT *sct, uint64_t timestamp); [all …]
|
H A D | ct.h.in | 164 void SCT_free(SCT *sct); 175 sct_version_t SCT_get_version(const SCT *sct); 181 __owur int SCT_set_version(SCT *sct, sct_version_t version); 186 ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct); 192 __owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type); 199 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id); 206 __owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len); 213 __owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id, 219 uint64_t SCT_get_timestamp(const SCT *sct); 224 void SCT_set_timestamp(SCT *sct, uint64_t timestamp); [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | SCT_new.pod | 46 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); 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); [all …]
|
H A D | SCT_print.pod | 12 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 D | SCT_validate.pod | 21 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 D | o2i_SCT_LIST.pod | 16 int i2o_SCT(const SCT *sct, unsigned char **out);
|
/freebsd/usr.bin/at/ |
H A D | parsetime.c | 146 static char *sct; /* scanner - next char pointer in current argument */ variable 212 sct = *scp; in token() 221 while (isspace(*sct)) in token() 222 ++sct; in token() 223 if (!*sct) { in token() 230 sc_token[0] = *sct++; in token() 235 while (isdigit(*sct)) in token() 236 sc_token[++idx] = *sct++; in token() 241 while (isalpha(*sct)) in token() 242 sc_token[++idx] = *sct++; in token()
|
/freebsd/crypto/openssl/test/ |
H A D | ct_test.c | 126 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() 355 fixture->sct_text_file = "embeddedSCTs1.sct"; in test_one_sct_in_certificate() 368 fixture->sct_text_file = "embeddedSCTs3.sct"; in test_multiple_scts_in_certificate() 435 fixture->sct_text_file = "tls1.sct"; in test_decode_tls_sct() 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() [all...] |
/freebsd/sys/dev/nvme/ |
H A D | nvme_qpair.c | 303 get_status_string(uint16_t sct, uint16_t sc) in get_status_string() argument 307 switch (sct) { in get_status_string() 338 uint8_t sct, sc, crd, m, dnr, p; in nvme_qpair_print_completion() local 340 sct = NVME_STATUS_GET_SCT(cpl->status); in nvme_qpair_print_completion() 349 get_status_string(sct, sc), sct, sc, crd, m, dnr, p, in nvme_qpair_print_completion() 356 uint8_t sct, sc, dnr; in nvme_completion_is_retry() local 358 sct = NVME_STATUS_GET_SCT(cpl->status); in nvme_completion_is_retry() 369 switch (sct) { in nvme_completion_is_retry() 486 nvme_qpair_make_status(uint32_t sct, uint32_t sc, uint32_t dnr) in nvme_qpair_make_status() argument 490 status |= NVMEF(NVME_STATUS_SCT, sct); in nvme_qpair_make_status() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/pwm/ |
H A D | lpc1850-sct-pwm.txt | 4 - compatible: Should be "nxp,lpc1850-sct-pwm" 15 compatible = "nxp,lpc1850-sct-pwm";
|
/freebsd/sys/dev/firewire/ |
H A D | iec68113.h | 103 uint8_t sct:3, /* Section type */ member 109 sct:3; /* Section type */
|
/freebsd/sbin/nvmecontrol/ |
H A D | firmware.c | 204 uint16_t sct, sc; in activate_firmware() 214 sct = NVME_STATUS_GET_SCT(pt.cpl.status); in activate_firmware() 217 if (sct == NVME_SCT_COMMAND_SPECIFIC && in activate_firmware() 203 uint16_t sct, sc; activate_firmware() local
|
H A D | logpage.c | 233 uint8_t p, sc, sct, m, dnr; in read_logpage() 253 sct = NVME_STATUS_GET_SCT(status); in read_logpage() 266 printf(" Status code type: %d\n", sct); in print_log_error() 268 uint8_t p, sc, sct, m, dnr; print_log_error() local
|
/freebsd/usr.sbin/fwcontrol/ |
H A D | fwdv.c | 188 fprintf(stderr, "(%d,%d) ", dv->sct, dv->dseq); in dvrecv() 190 if (dv->sct == DV_SCT_HEADER && dv->dseq == 0) { in dvrecv() 340 header = (dv->sct == 0 && dv->dseq == 0); in dvsend()
|
/freebsd/crypto/openssl/crypto/err/ |
H A D | openssl.txt | 467 CT_R_SCT_FUTURE_TIMESTAMP:116:sct future timestamp 468 CT_R_SCT_INVALID:104:sct invalid 469 CT_R_SCT_INVALID_SIGNATURE:107:sct invalid signature 470 CT_R_SCT_LIST_INVALID:105:sct list invalid 471 CT_R_SCT_LOG_ID_MISMATCH:114:sct log id mismatch 472 CT_R_SCT_NOT_SET:106:sct not set 473 CT_R_SCT_UNSUPPORTED_VERSION:115:sct unsupported version 1467 SSL_R_SCT_VERIFICATION_FAILED:208:sct verification failed
|
/freebsd/crypto/openssl/ssl/ |
H A D | ssl_lib.c | 5019 SCT *sct = NULL; in ct_move_scts() local 5029 while ((sct = sk_SCT_pop(src)) != NULL) { in ct_move_scts() 5030 if (SCT_set_source(sct, origin) != 1) in ct_move_scts() 5033 if (!sk_SCT_push(*dst, sct)) in ct_move_scts() 5040 SCT_free(sct); in ct_move_scts() 5174 SCT *sct = sk_SCT_value(scts, i); in ct_strict() local 5175 int status = SCT_get_validation_status(sct); in ct_strict()
|
/freebsd/sys/sys/ |
H A D | ata.h | 293 /*206*/ u_int16_t sct; member
|
/freebsd/sys/contrib/device-tree/src/arm/nxp/lpc/ |
H A D | lpc18xx.dtsi | 75 compatible = "nxp,lpc1850-sct-pwm";
|
/freebsd/crypto/openssl/apps/ |
H A D | s_client.c | 3216 SCT *sct = sk_SCT_value(scts, i); in print_stuff() local 3219 SCT_validation_status_string(sct)); in print_stuff() 3220 SCT_print(sct, bio, 0, log_store); in print_stuff()
|