✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server.blackpussy.asia ​🇻​♯➤ 5.14.0-611.20.1.el9_7.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 163.245.207.76 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.243
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗞 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ mail,mb_send_mail
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /usr/include/openssl//ct.h
/*
 * WARNING: do not edit!
 * Generated by Makefile from include/openssl/ct.h.in
 *
 * Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved.
 *
 * Licensed under the Apache License 2.0 (the "License").  You may not use
 * this file except in compliance with the License.  You can obtain a copy
 * in the file LICENSE in the source distribution or at
 * https://www.openssl.org/source/license.html
 */

/* clang-format off */

/* clang-format on */

#ifndef OPENSSL_CT_H
#define OPENSSL_CT_H
#pragma once

#include <openssl/macros.h>
#ifndef OPENSSL_NO_DEPRECATED_3_0
#define HEADER_CT_H
#endif

#include <openssl/opensslconf.h>

#ifndef OPENSSL_NO_CT
#include <openssl/types.h>
#include <openssl/safestack.h>
#include <openssl/x509.h>
#include <openssl/cterr.h>
#ifdef __cplusplus
extern "C" {
#endif

/* Minimum RSA key size, from RFC6962 */
#define SCT_MIN_RSA_BITS 2048

/* All hashes are SHA256 in v1 of Certificate Transparency */
#define CT_V1_HASHLEN SHA256_DIGEST_LENGTH

/* clang-format off */
SKM_DEFINE_STACK_OF_INTERNAL(SCT, SCT, SCT)
#define sk_SCT_num(sk) OPENSSL_sk_num(ossl_check_const_SCT_sk_type(sk))
#define sk_SCT_value(sk, idx) ((SCT *)OPENSSL_sk_value(ossl_check_const_SCT_sk_type(sk), (idx)))
#define sk_SCT_new(cmp) ((STACK_OF(SCT) *)OPENSSL_sk_new(ossl_check_SCT_compfunc_type(cmp)))
#define sk_SCT_new_null() ((STACK_OF(SCT) *)OPENSSL_sk_new_null())
#define sk_SCT_new_reserve(cmp, n) ((STACK_OF(SCT) *)OPENSSL_sk_new_reserve(ossl_check_SCT_compfunc_type(cmp), (n)))
#define sk_SCT_reserve(sk, n) OPENSSL_sk_reserve(ossl_check_SCT_sk_type(sk), (n))
#define sk_SCT_free(sk) OPENSSL_sk_free(ossl_check_SCT_sk_type(sk))
#define sk_SCT_zero(sk) OPENSSL_sk_zero(ossl_check_SCT_sk_type(sk))
#define sk_SCT_delete(sk, i) ((SCT *)OPENSSL_sk_delete(ossl_check_SCT_sk_type(sk), (i)))
#define sk_SCT_delete_ptr(sk, ptr) ((SCT *)OPENSSL_sk_delete_ptr(ossl_check_SCT_sk_type(sk), ossl_check_SCT_type(ptr)))
#define sk_SCT_push(sk, ptr) OPENSSL_sk_push(ossl_check_SCT_sk_type(sk), ossl_check_SCT_type(ptr))
#define sk_SCT_unshift(sk, ptr) OPENSSL_sk_unshift(ossl_check_SCT_sk_type(sk), ossl_check_SCT_type(ptr))
#define sk_SCT_pop(sk) ((SCT *)OPENSSL_sk_pop(ossl_check_SCT_sk_type(sk)))
#define sk_SCT_shift(sk) ((SCT *)OPENSSL_sk_shift(ossl_check_SCT_sk_type(sk)))
#define sk_SCT_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_SCT_sk_type(sk),ossl_check_SCT_freefunc_type(freefunc))
#define sk_SCT_insert(sk, ptr, idx) OPENSSL_sk_insert(ossl_check_SCT_sk_type(sk), ossl_check_SCT_type(ptr), (idx))
#define sk_SCT_set(sk, idx, ptr) ((SCT *)OPENSSL_sk_set(ossl_check_SCT_sk_type(sk), (idx), ossl_check_SCT_type(ptr)))
#define sk_SCT_find(sk, ptr) OPENSSL_sk_find(ossl_check_SCT_sk_type(sk), ossl_check_SCT_type(ptr))
#define sk_SCT_find_ex(sk, ptr) OPENSSL_sk_find_ex(ossl_check_SCT_sk_type(sk), ossl_check_SCT_type(ptr))
#define sk_SCT_find_all(sk, ptr, pnum) OPENSSL_sk_find_all(ossl_check_SCT_sk_type(sk), ossl_check_SCT_type(ptr), pnum)
#define sk_SCT_sort(sk) OPENSSL_sk_sort(ossl_check_SCT_sk_type(sk))
#define sk_SCT_is_sorted(sk) OPENSSL_sk_is_sorted(ossl_check_const_SCT_sk_type(sk))
#define sk_SCT_dup(sk) ((STACK_OF(SCT) *)OPENSSL_sk_dup(ossl_check_const_SCT_sk_type(sk)))
#define sk_SCT_deep_copy(sk, copyfunc, freefunc) ((STACK_OF(SCT) *)OPENSSL_sk_deep_copy(ossl_check_const_SCT_sk_type(sk), ossl_check_SCT_copyfunc_type(copyfunc), ossl_check_SCT_freefunc_type(freefunc)))
#define sk_SCT_set_cmp_func(sk, cmp) ((sk_SCT_compfunc)OPENSSL_sk_set_cmp_func(ossl_check_SCT_sk_type(sk), ossl_check_SCT_compfunc_type(cmp)))
SKM_DEFINE_STACK_OF_INTERNAL(CTLOG, CTLOG, CTLOG)
#define sk_CTLOG_num(sk) OPENSSL_sk_num(ossl_check_const_CTLOG_sk_type(sk))
#define sk_CTLOG_value(sk, idx) ((CTLOG *)OPENSSL_sk_value(ossl_check_const_CTLOG_sk_type(sk), (idx)))
#define sk_CTLOG_new(cmp) ((STACK_OF(CTLOG) *)OPENSSL_sk_new(ossl_check_CTLOG_compfunc_type(cmp)))
#define sk_CTLOG_new_null() ((STACK_OF(CTLOG) *)OPENSSL_sk_new_null())
#define sk_CTLOG_new_reserve(cmp, n) ((STACK_OF(CTLOG) *)OPENSSL_sk_new_reserve(ossl_check_CTLOG_compfunc_type(cmp), (n)))
#define sk_CTLOG_reserve(sk, n) OPENSSL_sk_reserve(ossl_check_CTLOG_sk_type(sk), (n))
#define sk_CTLOG_free(sk) OPENSSL_sk_free(ossl_check_CTLOG_sk_type(sk))
#define sk_CTLOG_zero(sk) OPENSSL_sk_zero(ossl_check_CTLOG_sk_type(sk))
#define sk_CTLOG_delete(sk, i) ((CTLOG *)OPENSSL_sk_delete(ossl_check_CTLOG_sk_type(sk), (i)))
#define sk_CTLOG_delete_ptr(sk, ptr) ((CTLOG *)OPENSSL_sk_delete_ptr(ossl_check_CTLOG_sk_type(sk), ossl_check_CTLOG_type(ptr)))
#define sk_CTLOG_push(sk, ptr) OPENSSL_sk_push(ossl_check_CTLOG_sk_type(sk), ossl_check_CTLOG_type(ptr))
#define sk_CTLOG_unshift(sk, ptr) OPENSSL_sk_unshift(ossl_check_CTLOG_sk_type(sk), ossl_check_CTLOG_type(ptr))
#define sk_CTLOG_pop(sk) ((CTLOG *)OPENSSL_sk_pop(ossl_check_CTLOG_sk_type(sk)))
#define sk_CTLOG_shift(sk) ((CTLOG *)OPENSSL_sk_shift(ossl_check_CTLOG_sk_type(sk)))
#define sk_CTLOG_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_CTLOG_sk_type(sk),ossl_check_CTLOG_freefunc_type(freefunc))
#define sk_CTLOG_insert(sk, ptr, idx) OPENSSL_sk_insert(ossl_check_CTLOG_sk_type(sk), ossl_check_CTLOG_type(ptr), (idx))
#define sk_CTLOG_set(sk, idx, ptr) ((CTLOG *)OPENSSL_sk_set(ossl_check_CTLOG_sk_type(sk), (idx), ossl_check_CTLOG_type(ptr)))
#define sk_CTLOG_find(sk, ptr) OPENSSL_sk_find(ossl_check_CTLOG_sk_type(sk), ossl_check_CTLOG_type(ptr))
#define sk_CTLOG_find_ex(sk, ptr) OPENSSL_sk_find_ex(ossl_check_CTLOG_sk_type(sk), ossl_check_CTLOG_type(ptr))
#define sk_CTLOG_find_all(sk, ptr, pnum) OPENSSL_sk_find_all(ossl_check_CTLOG_sk_type(sk), ossl_check_CTLOG_type(ptr), pnum)
#define sk_CTLOG_sort(sk) OPENSSL_sk_sort(ossl_check_CTLOG_sk_type(sk))
#define sk_CTLOG_is_sorted(sk) OPENSSL_sk_is_sorted(ossl_check_const_CTLOG_sk_type(sk))
#define sk_CTLOG_dup(sk) ((STACK_OF(CTLOG) *)OPENSSL_sk_dup(ossl_check_const_CTLOG_sk_type(sk)))
#define sk_CTLOG_deep_copy(sk, copyfunc, freefunc) ((STACK_OF(CTLOG) *)OPENSSL_sk_deep_copy(ossl_check_const_CTLOG_sk_type(sk), ossl_check_CTLOG_copyfunc_type(copyfunc), ossl_check_CTLOG_freefunc_type(freefunc)))
#define sk_CTLOG_set_cmp_func(sk, cmp) ((sk_CTLOG_compfunc)OPENSSL_sk_set_cmp_func(ossl_check_CTLOG_sk_type(sk), ossl_check_CTLOG_compfunc_type(cmp)))

/* clang-format on */

typedef enum {
    CT_LOG_ENTRY_TYPE_NOT_SET = -1,
    CT_LOG_ENTRY_TYPE_X509 = 0,
    CT_LOG_ENTRY_TYPE_PRECERT = 1
} ct_log_entry_type_t;

typedef enum {
    SCT_VERSION_NOT_SET = -1,
    SCT_VERSION_V1 = 0
} sct_version_t;

typedef enum {
    SCT_SOURCE_UNKNOWN,
    SCT_SOURCE_TLS_EXTENSION,
    SCT_SOURCE_X509V3_EXTENSION,
    SCT_SOURCE_OCSP_STAPLED_RESPONSE
} sct_source_t;

typedef enum {
    SCT_VALIDATION_STATUS_NOT_SET,
    SCT_VALIDATION_STATUS_UNKNOWN_LOG,
    SCT_VALIDATION_STATUS_VALID,
    SCT_VALIDATION_STATUS_INVALID,
    SCT_VALIDATION_STATUS_UNVERIFIED,
    SCT_VALIDATION_STATUS_UNKNOWN_VERSION
} sct_validation_status_t;

/******************************************
 * CT policy evaluation context functions *
 ******************************************/

/*
 * Creates a new, empty policy evaluation context associated with the given
 * library context and property query string.
 * The caller is responsible for calling CT_POLICY_EVAL_CTX_free when finished
 * with the CT_POLICY_EVAL_CTX.
 */
CT_POLICY_EVAL_CTX *CT_POLICY_EVAL_CTX_new_ex(OSSL_LIB_CTX *libctx,
    const char *propq);

/*
 * The same as CT_POLICY_EVAL_CTX_new_ex() but the default library
 * context and property query string is used.
 */
CT_POLICY_EVAL_CTX *CT_POLICY_EVAL_CTX_new(void);

/* Deletes a policy evaluation context and anything it owns. */
void CT_POLICY_EVAL_CTX_free(CT_POLICY_EVAL_CTX *ctx);

/* Gets the peer certificate that the SCTs are for */
X509 *CT_POLICY_EVAL_CTX_get0_cert(const CT_POLICY_EVAL_CTX *ctx);

/*
 * Sets the certificate associated with the received SCTs.
 * Increments the reference count of cert.
 * Returns 1 on success, 0 otherwise.
 */
int CT_POLICY_EVAL_CTX_set1_cert(CT_POLICY_EVAL_CTX *ctx, X509 *cert);

/* Gets the issuer of the aforementioned certificate */
X509 *CT_POLICY_EVAL_CTX_get0_issuer(const CT_POLICY_EVAL_CTX *ctx);

/*
 * Sets the issuer of the certificate associated with the received SCTs.
 * Increments the reference count of issuer.
 * Returns 1 on success, 0 otherwise.
 */
int CT_POLICY_EVAL_CTX_set1_issuer(CT_POLICY_EVAL_CTX *ctx, X509 *issuer);

/* Gets the CT logs that are trusted sources of SCTs */
const CTLOG_STORE *CT_POLICY_EVAL_CTX_get0_log_store(const CT_POLICY_EVAL_CTX *ctx);

/* Sets the log store that is in use. It must outlive the CT_POLICY_EVAL_CTX. */
void CT_POLICY_EVAL_CTX_set_shared_CTLOG_STORE(CT_POLICY_EVAL_CTX *ctx,
    CTLOG_STORE *log_store);

/*
 * Gets the time, in milliseconds since the Unix epoch, that will be used as the
 * current time when checking whether an SCT was issued in the future.
 * Such SCTs will fail validation, as required by RFC6962.
 */
uint64_t CT_POLICY_EVAL_CTX_get_time(const CT_POLICY_EVAL_CTX *ctx);

/*
 * Sets the time to evaluate SCTs against, in milliseconds since the Unix epoch.
 * If an SCT's timestamp is after this time, it will be interpreted as having
 * been issued in the future. RFC6962 states that "TLS clients MUST reject SCTs
 * whose timestamp is in the future", so an SCT will not validate in this case.
 */
void CT_POLICY_EVAL_CTX_set_time(CT_POLICY_EVAL_CTX *ctx, uint64_t time_in_ms);

/*****************
 * SCT functions *
 *****************/

/*
 * Creates a new, blank SCT.
 * The caller is responsible for calling SCT_free when finished with the SCT.
 */
SCT *SCT_new(void);

/*
 * Creates a new SCT from some base64-encoded strings.
 * The caller is responsible for calling SCT_free when finished with the SCT.
 */
SCT *SCT_new_from_base64(unsigned char version,
    const char *logid_base64,
    ct_log_entry_type_t entry_type,
    uint64_t timestamp,
    const char *extensions_base64,
    const char *signature_base64);

/*
 * Frees the SCT and the underlying data structures.
 */
void SCT_free(SCT *sct);

/*
 * Free a stack of SCTs, and the underlying SCTs themselves.
 * Intended to be compatible with X509V3_EXT_FREE.
 */
void SCT_LIST_free(STACK_OF(SCT) *a);

/*
 * Returns the version of the SCT.
 */
sct_version_t SCT_get_version(const SCT *sct);

/*
 * Set the version of an SCT.
 * Returns 1 on success, 0 if the version is unrecognized.
 */
__owur int SCT_set_version(SCT *sct, sct_version_t version);

/*
 * Returns the log entry type of the SCT.
 */
ct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct);

/*
 * Set the log entry type of an SCT.
 * Returns 1 on success, 0 otherwise.
 */
__owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type);

/*
 * Gets the ID of the log that an SCT came from.
 * Ownership of the log ID remains with the SCT.
 * Returns the length of the log ID.
 */
size_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id);

/*
 * Set the log ID of an SCT to point directly to the *log_id specified.
 * The SCT takes ownership of the specified pointer.
 * Returns 1 on success, 0 otherwise.
 */
__owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len);

/*
 * Set the log ID of an SCT.
 * This makes a copy of the log_id.
 * Returns 1 on success, 0 otherwise.
 */
__owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id,
    size_t log_id_len);

/*
 * Returns the timestamp for the SCT (epoch time in milliseconds).
 */
uint64_t SCT_get_timestamp(const SCT *sct);

/*
 * Set the timestamp of an SCT (epoch time in milliseconds).
 */
void SCT_set_timestamp(SCT *sct, uint64_t timestamp);

/*
 * Return the NID for the signature used by the SCT.
 * For CT v1, this will be either NID_sha256WithRSAEncryption or
 * NID_ecdsa_with_SHA256 (or NID_undef if incorrect/unset).
 */
int SCT_get_signature_nid(const SCT *sct);

/*
 * Set the signature type of an SCT
 * For CT v1, this should be either NID_sha256WithRSAEncryption or
 * NID_ecdsa_with_SHA256.
 * Returns 1 on success, 0 otherwise.
 */
__owur int SCT_set_signature_nid(SCT *sct, int nid);

/*
 * Set *ext to point to the extension data for the SCT. ext must not be NULL.
 * The SCT retains ownership of this pointer.
 * Returns length of the data pointed to.
 */
size_t SCT_get0_extensions(const SCT *sct, unsigned char **ext);

/*
 * Set the extensions of an SCT to point directly to the *ext specified.
 * The SCT takes ownership of the specified pointer.
 */
void SCT_set0_extensions(SCT *sct, unsigned char *ext, size_t ext_len);

/*
 * Set the extensions of an SCT.
 * This takes a copy of the ext.
 * Returns 1 on success, 0 otherwise.
 */
__owur int SCT_set1_extensions(SCT *sct, const unsigned char *ext,
    size_t ext_len);

/*
 * Set *sig to point to the signature for the SCT. sig must not be NULL.
 * The SCT retains ownership of this pointer.
 * Returns length of the data pointed to.
 */
size_t SCT_get0_signature(const SCT *sct, unsigned char **sig);

/*
 * Set the signature of an SCT to point directly to the *sig specified.
 * The SCT takes ownership of the specified pointer.
 */
void SCT_set0_signature(SCT *sct, unsigned char *sig, size_t sig_len);

/*
 * Set the signature of an SCT to be a copy of the *sig specified.
 * Returns 1 on success, 0 otherwise.
 */
__owur int SCT_set1_signature(SCT *sct, const unsigned char *sig,
    size_t sig_len);

/*
 * The origin of this SCT, e.g. TLS extension, OCSP response, etc.
 */
sct_source_t SCT_get_source(const SCT *sct);

/*
 * Set the origin of this SCT, e.g. TLS extension, OCSP response, etc.
 * Returns 1 on success, 0 otherwise.
 */
__owur int SCT_set_source(SCT *sct, sct_source_t source);

/*
 * Returns a text string describing the validation status of |sct|.
 */
const char *SCT_validation_status_string(const SCT *sct);

/*
 * Pretty-prints an |sct| to |out|.
 * It will be indented by the number of spaces specified by |indent|.
 * If |logs| is not NULL, it will be used to lookup the CT log that the SCT came
 * from, so that the log name can be printed.
 */
void SCT_print(const SCT *sct, BIO *out, int indent, const CTLOG_STORE *logs);

/*
 * Pretty-prints an |sct_list| to |out|.
 * It will be indented by the number of spaces specified by |indent|.
 * SCTs will be delimited by |separator|.
 * If |logs| is not NULL, it will be used to lookup the CT log that each SCT
 * came from, so that the log names can be printed.
 */
void SCT_LIST_print(const STACK_OF(SCT) *sct_list, BIO *out, int indent,
    const char *separator, const CTLOG_STORE *logs);

/*
 * Gets the last result of validating this SCT.
 * If it has not been validated yet, returns SCT_VALIDATION_STATUS_NOT_SET.
 */
sct_validation_status_t SCT_get_validation_status(const SCT *sct);

/*
 * Validates the given SCT with the provided context.
 * Sets the "validation_status" field of the SCT.
 * Returns 1 if the SCT is valid and the signature verifies.
 * Returns 0 if the SCT is invalid or could not be verified.
 * Returns -1 if an error occurs.
 */
__owur int SCT_validate(SCT *sct, const CT_POLICY_EVAL_CTX *ctx);

/*
 * Validates the given list of SCTs with the provided context.
 * Sets the "validation_status" field of each SCT.
 * Returns 1 if there are no invalid SCTs and all signatures verify.
 * Returns 0 if at least one SCT is invalid or could not be verified.
 * Returns a negative integer if an error occurs.
 */
__owur int SCT_LIST_validate(const STACK_OF(SCT) *scts,
    CT_POLICY_EVAL_CTX *ctx);

/*********************************
 * SCT parsing and serialization *
 *********************************/

/*
 * Serialize (to TLS format) a stack of SCTs and return the length.
 * "a" must not be NULL.
 * If "pp" is NULL, just return the length of what would have been serialized.
 * If "pp" is not NULL and "*pp" is null, function will allocate a new pointer
 * for data that caller is responsible for freeing (only if function returns
 * successfully).
 * If "pp" is NULL and "*pp" is not NULL, caller is responsible for ensuring
 * that "*pp" is large enough to accept all of the serialized data.
 * Returns < 0 on error, >= 0 indicating bytes written (or would have been)
 * on success.
 */
__owur int i2o_SCT_LIST(const STACK_OF(SCT) *a, unsigned char **pp);

/*
 * Convert TLS format SCT list to a stack of SCTs.
 * If "a" or "*a" is NULL, a new stack will be created that the caller is
 * responsible for freeing (by calling SCT_LIST_free).
 * "**pp" and "*pp" must not be NULL.
 * Upon success, "*pp" will point to after the last bytes read, and a stack
 * will be returned.
 * Upon failure, a NULL pointer will be returned, and the position of "*pp" is
 * not defined.
 */
STACK_OF(SCT) *o2i_SCT_LIST(STACK_OF(SCT) **a, const unsigned char **pp,
    size_t len);

/*
 * Serialize (to DER format) a stack of SCTs and return the length.
 * "a" must not be NULL.
 * If "pp" is NULL, just returns the length of what would have been serialized.
 * If "pp" is not NULL and "*pp" is null, function will allocate a new pointer
 * for data that caller is responsible for freeing (only if function returns
 * successfully).
 * If "pp" is NULL and "*pp" is not NULL, caller is responsible for ensuring
 * that "*pp" is large enough to accept all of the serialized data.
 * Returns < 0 on error, >= 0 indicating bytes written (or would have been)
 * on success.
 */
__owur int i2d_SCT_LIST(const STACK_OF(SCT) *a, unsigned char **pp);

/*
 * Parses an SCT list in DER format and returns it.
 * If "a" or "*a" is NULL, a new stack will be created that the caller is
 * responsible for freeing (by calling SCT_LIST_free).
 * "**pp" and "*pp" must not be NULL.
 * Upon success, "*pp" will point to after the last bytes read, and a stack
 * will be returned.
 * Upon failure, a NULL pointer will be returned, and the position of "*pp" is
 * not defined.
 */
STACK_OF(SCT) *d2i_SCT_LIST(STACK_OF(SCT) **a, const unsigned char **pp,
    long len);

/*
 * Serialize (to TLS format) an |sct| and write it to |out|.
 * If |out| is null, no SCT will be output but the length will still be returned.
 * If |out| points to a null pointer, a string will be allocated to hold the
 * TLS-format SCT. It is the responsibility of the caller to free it.
 * If |out| points to an allocated string, the TLS-format SCT will be written
 * to it.
 * The length of the SCT in TLS format will be returned.
 */
__owur int i2o_SCT(const SCT *sct, unsigned char **out);

/*
 * Parses an SCT in TLS format and returns it.
 * If |psct| is not null, it will end up pointing to the parsed SCT. If it
 * already points to a non-null pointer, the pointer will be free'd.
 * |in| should be a pointer to a string containing the TLS-format SCT.
 * |in| will be advanced to the end of the SCT if parsing succeeds.
 * |len| should be the length of the SCT in |in|.
 * Returns NULL if an error occurs.
 * If the SCT is an unsupported version, only the SCT's 'sct' and 'sct_len'
 * fields will be populated (with |in| and |len| respectively).
 */
SCT *o2i_SCT(SCT **psct, const unsigned char **in, size_t len);

/********************
 * CT log functions *
 ********************/

/*
 * Creates a new CT log instance with the given |public_key| and |name| and
 * associates it with the give library context |libctx| and property query
 * string |propq|.
 * Takes ownership of |public_key| but copies |name|.
 * Returns NULL if malloc fails or if |public_key| cannot be converted to DER.
 * Should be deleted by the caller using CTLOG_free when no longer needed.
 */
CTLOG *CTLOG_new_ex(EVP_PKEY *public_key, const char *name, OSSL_LIB_CTX *libctx,
    const char *propq);

/*
 * The same as CTLOG_new_ex except that the default library context and
 * property query string are used.
 */
CTLOG *CTLOG_new(EVP_PKEY *public_key, const char *name);

/*
 * Creates a new CTLOG instance with the base64-encoded SubjectPublicKeyInfo DER
 * in |pkey_base64| and associated with the given library context |libctx| and
 * property query string |propq|. The |name| is a string to help users identify
 * this log.
 * Returns 1 on success, 0 on failure.
 * Should be deleted by the caller using CTLOG_free when no longer needed.
 */
int CTLOG_new_from_base64_ex(CTLOG **ct_log, const char *pkey_base64,
    const char *name, OSSL_LIB_CTX *libctx,
    const char *propq);

/*
 * The same as CTLOG_new_from_base64_ex() except that the default
 * library context and property query string are used.
 * Returns 1 on success, 0 on failure.
 */
int CTLOG_new_from_base64(CTLOG **ct_log,
    const char *pkey_base64, const char *name);

/*
 * Deletes a CT log instance and its fields.
 */
void CTLOG_free(CTLOG *log);

/* Gets the name of the CT log */
const char *CTLOG_get0_name(const CTLOG *log);
/* Gets the ID of the CT log */
void CTLOG_get0_log_id(const CTLOG *log, const uint8_t **log_id,
    size_t *log_id_len);
/* Gets the public key of the CT log */
EVP_PKEY *CTLOG_get0_public_key(const CTLOG *log);

/**************************
 * CT log store functions *
 **************************/

/*
 * Creates a new CT log store and associates it with the given libctx and
 * property query string.
 * Should be deleted by the caller using CTLOG_STORE_free when no longer needed.
 */
CTLOG_STORE *CTLOG_STORE_new_ex(OSSL_LIB_CTX *libctx, const char *propq);

/*
 * Same as CTLOG_STORE_new_ex except that the default libctx and
 * property query string are used.
 * Should be deleted by the caller using CTLOG_STORE_free when no longer needed.
 */
CTLOG_STORE *CTLOG_STORE_new(void);

/*
 * Deletes a CT log store and all of the CT log instances held within.
 */
void CTLOG_STORE_free(CTLOG_STORE *store);

/*
 * Finds a CT log in the store based on its log ID.
 * Returns the CT log, or NULL if no match is found.
 */
const CTLOG *CTLOG_STORE_get0_log_by_id(const CTLOG_STORE *store,
    const uint8_t *log_id,
    size_t log_id_len);

/*
 * Loads a CT log list into a |store| from a |file|.
 * Returns 1 if loading is successful, or 0 otherwise.
 */
__owur int CTLOG_STORE_load_file(CTLOG_STORE *store, const char *file);

/*
 * Loads the default CT log list into a |store|.
 * Returns 1 if loading is successful, or 0 otherwise.
 */
__owur int CTLOG_STORE_load_default_file(CTLOG_STORE *store);

#ifdef __cplusplus
}
#endif
#endif
#endif

Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]

Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
12 Sep 2026 4.57 AM
root / root
0755
aes.h
3.233 KB
27 Jul 2026 6.11 PM
root / root
0644
asn1.h
56.383 KB
27 Jul 2026 6.11 PM
root / root
0644
asn1err.h
5.048 KB
27 Jul 2026 6.11 PM
root / root
0644
asn1t.h
37.696 KB
27 Jul 2026 6.11 PM
root / root
0644
async.h
2.948 KB
27 Jul 2026 6.11 PM
root / root
0644
asyncerr.h
0.722 KB
27 Jul 2026 6.11 PM
root / root
0644
bio.h
40.434 KB
27 Jul 2026 6.11 PM
root / root
0644
bioerr.h
2.3 KB
27 Jul 2026 6.11 PM
root / root
0644
blowfish.h
2.086 KB
27 Jul 2026 6.11 PM
root / root
0644
bn.h
21.786 KB
27 Jul 2026 6.11 PM
root / root
0644
bnerr.h
1.298 KB
27 Jul 2026 6.11 PM
root / root
0644
buffer.h
1.554 KB
27 Jul 2026 6.11 PM
root / root
0644
buffererr.h
0.573 KB
27 Jul 2026 6.11 PM
root / root
0644
byteorder.h
8.246 KB
27 Jul 2026 6.11 PM
root / root
0644
camellia.h
3.189 KB
27 Jul 2026 6.11 PM
root / root
0644
cast.h
1.836 KB
27 Jul 2026 6.11 PM
root / root
0644
cmac.h
1.415 KB
27 Jul 2026 6.11 PM
root / root
0644
cmp.h
46.912 KB
27 Jul 2026 6.11 PM
root / root
0644
cmp_util.h
1.589 KB
27 Jul 2026 6.11 PM
root / root
0644
cmperr.h
4.708 KB
27 Jul 2026 6.11 PM
root / root
0644
cms.h
30.374 KB
27 Jul 2026 6.11 PM
root / root
0644
cmserr.h
4.44 KB
27 Jul 2026 6.11 PM
root / root
0644
comp.h
4.586 KB
27 Jul 2026 6.11 PM
root / root
0644
comperr.h
0.979 KB
27 Jul 2026 6.11 PM
root / root
0644
conf.h
10.144 KB
27 Jul 2026 6.11 PM
root / root
0644
conf_api.h
1.297 KB
27 Jul 2026 6.11 PM
root / root
0644
conferr.h
1.657 KB
27 Jul 2026 6.11 PM
root / root
0644
configuration-x86_64.h
4.364 KB
27 Jul 2026 6.12 PM
root / root
0644
configuration.h
1.547 KB
27 Jul 2026 6.12 PM
root / root
0644
conftypes.h
1.148 KB
27 Jul 2026 6.11 PM
root / root
0644
core.h
7.637 KB
27 Jul 2026 6.11 PM
root / root
0644
core_dispatch.h
45.848 KB
27 Jul 2026 6.11 PM
root / root
0644
core_names.h
29.143 KB
27 Jul 2026 6.11 PM
root / root
0644
core_object.h
1.022 KB
27 Jul 2026 6.11 PM
root / root
0644
crmf.h
19.184 KB
27 Jul 2026 6.11 PM
root / root
0644
crmferr.h
1.814 KB
27 Jul 2026 6.11 PM
root / root
0644
crypto.h
22.577 KB
27 Jul 2026 6.11 PM
root / root
0644
cryptoerr.h
1.939 KB
27 Jul 2026 6.11 PM
root / root
0644
cryptoerr_legacy.h
46.894 KB
27 Jul 2026 6.11 PM
root / root
0644
ct.h
21.717 KB
27 Jul 2026 6.11 PM
root / root
0644
cterr.h
1.212 KB
27 Jul 2026 6.11 PM
root / root
0644
decoder.h
4.792 KB
27 Jul 2026 6.11 PM
root / root
0644
decodererr.h
0.723 KB
27 Jul 2026 6.11 PM
root / root
0644
des.h
7.582 KB
27 Jul 2026 6.11 PM
root / root
0644
dh.h
12.72 KB
27 Jul 2026 6.11 PM
root / root
0644
dherr.h
1.662 KB
27 Jul 2026 6.11 PM
root / root
0644
dsa.h
10.725 KB
27 Jul 2026 6.11 PM
root / root
0644
dsaerr.h
1.137 KB
27 Jul 2026 6.11 PM
root / root
0644
dtls1.h
1.21 KB
27 Jul 2026 6.11 PM
root / root
0644
e_os2.h
8.247 KB
27 Jul 2026 6.11 PM
root / root
0644
e_ostime.h
1.12 KB
27 Jul 2026 6.11 PM
root / root
0644
ebcdic.h
1.001 KB
27 Jul 2026 6.11 PM
root / root
0644
ec.h
60.853 KB
27 Jul 2026 6.11 PM
root / root
0644
ecdh.h
0.353 KB
27 Jul 2026 6.11 PM
root / root
0644
ecdsa.h
0.353 KB
27 Jul 2026 6.11 PM
root / root
0644
ecerr.h
3.28 KB
27 Jul 2026 6.11 PM
root / root
0644
encoder.h
4.463 KB
27 Jul 2026 6.11 PM
root / root
0644
encodererr.h
0.724 KB
27 Jul 2026 6.11 PM
root / root
0644
engine.h
36.656 KB
27 Jul 2026 6.11 PM
root / root
0644
engineerr.h
1.986 KB
27 Jul 2026 6.11 PM
root / root
0644
err.h
19.957 KB
27 Jul 2026 6.11 PM
root / root
0644
ess.h
8.5 KB
27 Jul 2026 6.11 PM
root / root
0644
esserr.h
0.959 KB
27 Jul 2026 6.11 PM
root / root
0644
evp.h
93.393 KB
27 Jul 2026 6.11 PM
root / root
0644
evperr.h
5.398 KB
27 Jul 2026 6.11 PM
root / root
0644
fips.h
0.587 KB
27 Jul 2026 6.11 PM
root / root
0644
fips_names.h
1.6 KB
27 Jul 2026 6.11 PM
root / root
0644
fipskey.h
1.207 KB
27 Jul 2026 6.11 PM
root / root
0644
hmac.h
1.848 KB
27 Jul 2026 6.11 PM
root / root
0644
hpke.h
5.938 KB
27 Jul 2026 6.11 PM
root / root
0644
http.h
4.606 KB
27 Jul 2026 6.11 PM
root / root
0644
httperr.h
1.808 KB
27 Jul 2026 6.11 PM
root / root
0644
idea.h
2.231 KB
27 Jul 2026 6.11 PM
root / root
0644
indicator.h
0.799 KB
27 Jul 2026 6.11 PM
root / root
0644
kdf.h
4.981 KB
27 Jul 2026 6.11 PM
root / root
0644
kdferr.h
0.469 KB
27 Jul 2026 6.11 PM
root / root
0644
lhash.h
32.593 KB
27 Jul 2026 6.11 PM
root / root
0644
macros.h
10.467 KB
27 Jul 2026 6.11 PM
root / root
0644
md2.h
1.305 KB
27 Jul 2026 6.11 PM
root / root
0644
md4.h
1.572 KB
27 Jul 2026 6.11 PM
root / root
0644
md5.h
1.57 KB
27 Jul 2026 6.11 PM
root / root
0644
mdc2.h
1.281 KB
27 Jul 2026 6.11 PM
root / root
0644
ml_kem.h
0.937 KB
27 Jul 2026 6.11 PM
root / root
0644
modes.h
7.944 KB
27 Jul 2026 6.11 PM
root / root
0644
obj_mac.h
282.739 KB
27 Jul 2026 6.11 PM
root / root
0644
objects.h
7.39 KB
27 Jul 2026 6.11 PM
root / root
0644
objectserr.h
0.67 KB
27 Jul 2026 6.11 PM
root / root
0644
ocsp.h
27.203 KB
27 Jul 2026 6.11 PM
root / root
0644
ocsperr.h
1.598 KB
27 Jul 2026 6.11 PM
root / root
0644
opensslconf.h
0.498 KB
27 Jul 2026 6.12 PM
root / root
0644
opensslv.h
3.368 KB
27 Jul 2026 6.11 PM
root / root
0644
ossl_typ.h
0.548 KB
27 Jul 2026 6.11 PM
root / root
0644
param_build.h
2.308 KB
27 Jul 2026 6.11 PM
root / root
0644
params.h
6.895 KB
27 Jul 2026 6.11 PM
root / root
0644
pem.h
22.136 KB
27 Jul 2026 6.11 PM
root / root
0644
pem2.h
0.511 KB
27 Jul 2026 6.11 PM
root / root
0644
pemerr.h
1.793 KB
27 Jul 2026 6.11 PM
root / root
0644
pkcs12.h
16.605 KB
27 Jul 2026 6.11 PM
root / root
0644
pkcs12err.h
1.394 KB
27 Jul 2026 6.11 PM
root / root
0644
pkcs7.h
21.358 KB
27 Jul 2026 6.11 PM
root / root
0644
pkcs7err.h
2.189 KB
27 Jul 2026 6.11 PM
root / root
0644
prov_ssl.h
0.946 KB
27 Jul 2026 6.11 PM
root / root
0644
proverr.h
6.264 KB
27 Jul 2026 6.11 PM
root / root
0644
provider.h
3.304 KB
27 Jul 2026 6.11 PM
root / root
0644
quic.h
2.052 KB
27 Jul 2026 6.11 PM
root / root
0644
rand.h
3.963 KB
27 Jul 2026 6.11 PM
root / root
0644
randerr.h
2.428 KB
27 Jul 2026 6.11 PM
root / root
0644
rc2.h
1.729 KB
27 Jul 2026 6.11 PM
root / root
0644
rc4.h
1.05 KB
27 Jul 2026 6.11 PM
root / root
0644
rc5.h
2.096 KB
27 Jul 2026 6.11 PM
root / root
0644
ripemd.h
1.501 KB
27 Jul 2026 6.11 PM
root / root
0644
rsa.h
21.776 KB
27 Jul 2026 6.11 PM
root / root
0644
rsaerr.h
3.771 KB
27 Jul 2026 6.11 PM
root / root
0644
safestack.h
28.471 KB
27 Jul 2026 6.11 PM
root / root
0644
seed.h
3.526 KB
27 Jul 2026 6.11 PM
root / root
0644
self_test.h
4.609 KB
27 Jul 2026 6.11 PM
root / root
0644
sha.h
4.301 KB
27 Jul 2026 6.11 PM
root / root
0644
srp.h
14.804 KB
27 Jul 2026 6.11 PM
root / root
0644
srtp.h
1.844 KB
27 Jul 2026 6.11 PM
root / root
0644
ssl.h
119.349 KB
27 Jul 2026 6.11 PM
root / root
0644
ssl2.h
0.61 KB
27 Jul 2026 6.11 PM
root / root
0644
ssl3.h
12.449 KB
27 Jul 2026 6.11 PM
root / root
0644
sslerr.h
15.052 KB
27 Jul 2026 6.11 PM
root / root
0644
sslerr_legacy.h
17.841 KB
27 Jul 2026 6.11 PM
root / root
0644
stack.h
3.049 KB
27 Jul 2026 6.11 PM
root / root
0644
store.h
13.68 KB
27 Jul 2026 6.11 PM
root / root
0644
storeerr.h
1.662 KB
27 Jul 2026 6.11 PM
root / root
0644
symhacks.h
1.076 KB
27 Jul 2026 6.11 PM
root / root
0644
thread.h
0.845 KB
27 Jul 2026 6.11 PM
root / root
0644
tls1.h
61.837 KB
27 Jul 2026 6.11 PM
root / root
0644
trace.h
10.569 KB
27 Jul 2026 6.11 PM
root / root
0644
ts.h
18.964 KB
27 Jul 2026 6.11 PM
root / root
0644
tserr.h
2.028 KB
27 Jul 2026 6.11 PM
root / root
0644
txt_db.h
1.597 KB
27 Jul 2026 6.11 PM
root / root
0644
types.h
7.131 KB
27 Jul 2026 6.11 PM
root / root
0644
ui.h
18.078 KB
27 Jul 2026 6.11 PM
root / root
0644
uierr.h
1.037 KB
27 Jul 2026 6.11 PM
root / root
0644
whrlpool.h
1.642 KB
27 Jul 2026 6.11 PM
root / root
0644
x509.h
65.907 KB
27 Jul 2026 6.11 PM
root / root
0644
x509_acert.h
21.405 KB
27 Jul 2026 6.11 PM
root / root
0644
x509_vfy.h
46.07 KB
27 Jul 2026 6.11 PM
root / root
0644
x509err.h
2.262 KB
27 Jul 2026 6.11 PM
root / root
0644
x509v3.h
126.315 KB
27 Jul 2026 6.11 PM
root / root
0644
x509v3err.h
3.494 KB
27 Jul 2026 6.11 PM
root / root
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF