| /netbsd-src/crypto/external/bsd/openssl.old/dist/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 171 __owur int SCT_CTX_verify(const SCT_CTX *sctx, const SCT *sct); 177 __owur int SCT_is_complete(const SCT *sct); 185 __owur int SCT_signature_is_complete(const SCT *sct); 200 __owur int i2o_SCT_signature(const SCT *sct, unsigned char **out); 211 __owur int o2i_SCT_signature(SCT *sct, const unsigned char **in, size_t len);
|
| /netbsd-src/crypto/external/bsd/openssl/dist/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);
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/include/openssl/ |
| H A D | ct.h | 141 void SCT_free(SCT *sct); 152 sct_version_t SCT_get_version(const SCT *sct); 158 __owur int SCT_set_version(SCT *sct, sct_version_t version); 163 ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct); 169 __owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type); 176 size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id); 183 __owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len); 190 __owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id, 196 uint64_t SCT_get_timestamp(const SCT *sct); 201 void SCT_set_timestamp(SCT *sct, uint64_t timestamp); [all …]
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/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);
|
| /netbsd-src/crypto/external/bsd/openssl/dist/include/openssl/ |
| 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 …]
|
| /netbsd-src/usr.bin/at/ |
| H A D | parsetime.c | 151 static char *sct; /* scanner - next char pointer in current argument */ variable 237 sct = *scp; in token() 247 while (isspace((unsigned char)*sct)) in token() 248 ++sct; in token() 249 if (!*sct) { in token() 257 sc_token[0] = *sct++; in token() 263 while (isdigit((unsigned char)*sct)) in token() 264 sc_token[++idx] = *sct++; in token() 268 while (isalpha((unsigned char)*sct)) in token() 269 sc_token[++idx] = *sct++; in token()
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/test/ |
| H A D | ct_test.c | 125 static int compare_sct_list_printout(STACK_OF(SCT) *sct, in compare_sct_list_printout() argument 135 SCT_LIST_print(sct, text_buffer, 0, "\n", NULL); in compare_sct_list_printout() 224 SCT *sct = NULL; in execute_cert_test() local 322 SCT_free(sct); in execute_cert_test() 456 SCT *sct = NULL; in test_encode_tls_sct() local 463 if (!TEST_ptr(sct = SCT_new_from_base64(SCT_VERSION_V1, log_id, in test_encode_tls_sct() 469 sk_SCT_push(fixture->sct_list, sct); in test_encode_tls_sct()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/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() 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()
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/d/dmd/ |
| H A D | denum.c | 231 for (Scope *sct = sce; 1; sct = sct->enclosing) in semantic() local 233 assert(sct); in semantic() 234 if (sct->scopesym) in semantic() 236 scopesym = sct->scopesym; in semantic() 237 if (!sct->scopesym->symtab) in semantic() 238 sct->scopesym->symtab = new DsymbolTable(); in semantic()
|
| /netbsd-src/sys/dev/ieee1394/ |
| H A D | iec68113.h | 106 uint8_t sct:3, /* Section type */ member 112 sct:3; /* Section type */
|
| /netbsd-src/crypto/external/bsd/openssl/dist/doc/man3/ |
| 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);
|
| /netbsd-src/usr.sbin/fwctl/ |
| H A D | fwdv.c | 196 fprintf(stderr, "(%d,%d) ", dv->sct, dv->dseq); in dvrecv() 198 if (dv->sct == DV_SCT_HEADER && dv->dseq == 0) { in dvrecv() 359 header = (dv->sct == 0 && dv->dseq == 0); in dvsend()
|