Lines Matching defs:log
22 * Information about a CT log server.
42 /* The context when loading a CT log list from a CONF file. */
50 * Creates an empty context for loading a CT log store.
56 * Deletes a CT log store load context.
76 /* Converts a log's public key into a SHA256 log ID */
77 static int ct_v1_log_id_from_pkey(CTLOG *log, EVP_PKEY *pkey)
89 sha256 = EVP_MD_fetch(log->libctx, "SHA2-256", log->propq);
95 ret = EVP_Digest(pkey_der, pkey_der_len, log->log_id, &len, sha256,
180 * Otherwise, one bad log entry would stop loading of any of
181 * the following log entries.
209 /* If we can't load this log, record that fact and skip it */
307 /* Frees CT log and associated structures */
308 void CTLOG_free(CTLOG *log)
310 if (log != NULL) {
311 OPENSSL_free(log->name);
312 EVP_PKEY_free(log->public_key);
313 OPENSSL_free(log->propq);
314 OPENSSL_free(log);
318 const char *CTLOG_get0_name(const CTLOG *log)
320 return log->name;
323 void CTLOG_get0_log_id(const CTLOG *log, const uint8_t **log_id,
326 *log_id = log->log_id;
330 EVP_PKEY *CTLOG_get0_public_key(const CTLOG *log)
332 return log->public_key;
336 * Given a log ID, finds the matching log.
346 const CTLOG *log = sk_CTLOG_value(store->logs, i);
347 if (memcmp(log->log_id, log_id, log_id_len) == 0)
348 return log;