/openbsd/lib/libcrypto/ct/ |
H A D | ct_sct.c | 98 free(sct->log_id); in SCT_free() 152 free(sct->log_id); in SCT_set0_log_id() 153 sct->log_id = log_id; in SCT_set0_log_id() 168 free(sct->log_id); in SCT_set1_log_id() 169 sct->log_id = NULL; in SCT_set1_log_id() 173 if (log_id != NULL && log_id_len > 0) { in SCT_set1_log_id() 174 sct->log_id = malloc(log_id_len); in SCT_set1_log_id() 175 if (sct->log_id == NULL) { in SCT_set1_log_id() 179 memcpy(sct->log_id, log_id, log_id_len); in SCT_set1_log_id() 293 SCT_get0_log_id(const SCT *sct, unsigned char **log_id) in SCT_get0_log_id() argument [all …]
|
H A D | ct_log.c | 78 uint8_t log_id[CT_V1_HASHLEN]; member 128 ct_v1_log_id_from_pkey(EVP_PKEY *pkey, unsigned char log_id[CT_V1_HASHLEN]) in ct_v1_log_id_from_pkey() 139 SHA256(pkey_der, pkey_der_len, log_id); in ct_v1_log_id_from_pkey() 312 if (ct_v1_log_id_from_pkey(public_key, ret->log_id) != 1) in CTLOG_new() 343 CTLOG_get0_log_id(const CTLOG *log, const uint8_t **log_id, size_t *log_id_len) in CTLOG_get0_log_id() argument 345 *log_id = log->log_id; in CTLOG_get0_log_id() 362 CTLOG_STORE_get0_log_by_id(const CTLOG_STORE *store, const uint8_t *log_id, in CTLOG_STORE_get0_log_by_id() argument 369 if (memcmp(log->log_id, log_id, log_id_len) == 0) in CTLOG_STORE_get0_log_by_id()
|
H A D | ct.h | 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, 470 void CTLOG_get0_log_id(const CTLOG *log, const uint8_t **log_id, 495 const uint8_t *log_id, size_t log_id_len);
|
H A D | ct_oct.c | 141 CBS extensions, log_id; in o2i_SCT_internal() local 150 if (!CBS_get_bytes(cbs, &log_id, CT_V1_LOG_ID_LEN)) in o2i_SCT_internal() 157 if (!CBS_stow(&log_id, &sct->log_id, &sct->log_id_len)) in o2i_SCT_internal() 299 memcpy(p, sct->log_id, CT_V1_HASHLEN); in i2o_SCT()
|
H A D | ct_prn.c | 157 log = CTLOG_STORE_get0_log_by_id(log_store, sct->log_id, in SCT_print() 178 BIO_hex_string(out, indent + 16, 16, sct->log_id, sct->log_id_len); in SCT_print()
|
H A D | ct_local.h | 101 unsigned char *log_id; member
|
H A D | ct_vfy.c | 168 memcmp(sct->log_id, sctx->pkeyhash, sctx->pkeyhashlen) != 0) { in SCT_CTX_verify()
|
/openbsd/regress/lib/libcrypto/ct/ |
H A D | cttest.c | 108 uint8_t log_id[32]; member 119 .log_id = { 133 .log_id = { 213 if (len != sizeof(sdt->log_id)) { in ct_compare_test_scts() 218 if (memcmp(data, sdt->log_id, len) != 0) { in ct_compare_test_scts() 223 hexdump(sdt->log_id, sizeof(sdt->log_id)); in ct_compare_test_scts()
|
/openbsd/usr.sbin/httpd/ |
H A D | logger.c | 109 log->log_id = ++last_log_id; in logger_open_file() 115 iov[0].iov_base = &log->log_id; in logger_open_file() 116 iov[0].iov_len = sizeof(log->log_id); in logger_open_file() 146 if (log->log_id == id) { in logger_open_fd()
|
H A D | httpd.h | 441 uint32_t log_id; member
|
/openbsd/usr.sbin/ospfctl/ |
H A D | output.c | 486 printf("Link State ID: %s\n", log_id(lsa->ls_id)); in show_db_hdr_msg_detail() 490 log_id(lsa->ls_id)); in show_db_hdr_msg_detail() 493 printf("Link State ID: %s (Network ID)\n", log_id(lsa->ls_id)); in show_db_hdr_msg_detail() 497 log_id(lsa->ls_id)); in show_db_hdr_msg_detail() 501 log_id(lsa->ls_id)); in show_db_hdr_msg_detail() 506 printf("Link State ID: %s Type %d ID %d\n", log_id(lsa->ls_id), in show_db_hdr_msg_detail() 528 log_id(lsa->ls_id), log_adv_rtr(lsa->adv_rtr), in show_db_simple()
|
H A D | ospfctl.h | 50 const char *log_id(u_int32_t );
|
H A D | ospfctl.c | 411 log_id(u_int32_t id) in log_id() function
|
/openbsd/usr.sbin/ospf6ctl/ |
H A D | ospf6ctl.c | 50 const char *log_id(u_int32_t ); 533 log_id(u_int32_t id) in log_id() function 633 log_id(lsa->ls_id), log_adv_rtr(lsa->adv_rtr), in show_database_msg() 693 printf("Link State ID: %s\n", log_id(lsa->ls_id)); in show_db_hdr_msg_detail() 697 "Router)\n", log_id(lsa->ls_id)); in show_db_hdr_msg_detail() 701 "Router)\n", log_id(lsa->ls_id)); in show_db_hdr_msg_detail() 901 log_id(rtr_link->iface_id), in show_db_msg_detail()
|
/openbsd/sys/dev/fdt/ |
H A D | if_mvpp.c | 123 uint8_t log_id; member 1418 txq->log_id = i; in mvpp2_port_attach() 2394 (txq->log_id * desc_per_txq); in mvpp2_txq_hw_init() 2404 reg = mvpp2_read(sc->sc, MVPP2_TXQ_SCHED_REFILL_REG(txq->log_id)); in mvpp2_txq_hw_init() 2408 mvpp2_write(sc->sc, MVPP2_TXQ_SCHED_REFILL_REG(txq->log_id), reg); in mvpp2_txq_hw_init() 2410 mvpp2_write(sc->sc, MVPP2_TXQ_SCHED_TOKEN_SIZE_REG(txq->log_id), in mvpp2_txq_hw_init() 2928 sc->sc_dev.dv_xname, sc->sc_id, txq->log_id); in mvpp2_txq_hw_deinit() 2941 mvpp2_write(sc->sc, MVPP2_TXQ_SCHED_TOKEN_CNTR_REG(txq->log_id), 0); in mvpp2_txq_hw_deinit()
|