CTLOG_NEW - Online Linux Manual PageSection : 3
Updated : 2021-03-26
Source : 1.1.1k
Note : OpenSSL

NAMECTLOG_new, CTLOG_new_from_base64, CTLOG_free, CTLOG_get0_name, CTLOG_get0_log_id, CTLOG_get0_public_key − encapsulates information about a Certificate Transparency log

SYNOPSIS​ #include <openssl/ct.h> ​ ​ CTLOG *CTLOG_new(EVP_PKEY *public_key, const char *name); ​ int CTLOG_new_from_base64(CTLOG ** ct_log, ​ const char *pkey_base64, const char *name); ​ void CTLOG_free(CTLOG *log); ​ const char *CTLOG_get0_name(const CTLOG *log); ​ void CTLOG_get0_log_id(const CTLOG *log, const uint8_t **log_id, ​ size_t *log_id_len); ​ EVP_PKEY *CTLOG_get0_public_key(const CTLOG *log);

DESCRIPTIONCTLOG_new() returns a new CTLOG that represents the Certificate Transparency (CT) log with the given public key. A name must also be provided that can be used to help users identify this log. Ownership of the public key is transferred. CTLOG_new_from_base64() also creates a new CTLOG, but takes the public key in base64−encoded DER form and sets the ct_log pointer to point to the new CTLOG. The base64 will be decoded and the public key parsed. Regardless of whether CTLOG_new() or CTLOG_new_from_base64() is used, it is the caller's responsibility to pass the CTLOG to CTLOG_free() once it is no longer needed. This will delete it and, if created by CTLOG_new(), the EVP_PKEY that was passed to it. CTLOG_get0_name() returns the name of the log, as provided when the CTLOG was created. Ownership of the string remains with the CTLOG. CTLOG_get0_log_id() sets *log_id to point to a string containing that log's LogID (see RFC 6962). It sets *log_id_len to the length of that LogID. For a v1 CT log, the LogID will be a SHA−256 hash (i.e. 32 bytes long). Ownership of the string remains with the CTLOG. CTLOG_get0_public_key() returns the public key of the CT log. Ownership of the ​EVP_PKEY remains with the CTLOG.

RETURN VALUESCTLOG_new() will return NULL if an error occurs. CTLOG_new_from_base64() will return 1 on success, 0 otherwise.

SEE ALSOct(7)

HISTORYThese functions were added in OpenSSL 1.1.0.

COPYRIGHTCopyright 2016 The OpenSSL Project Authors. All Rights Reserved. Licensed under the OpenSSL license (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>.
0
Johanes Gumabo
Data Size   :   8,669 byte
man-CTLOG_get0_public_key.3sslBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 172,591
Visitor ID   :     :  
Visitor IP   :   3.135.184.124   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|C___TLOG_free.3ssl|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|C___TLOG_free.3ssl|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|C___TLOG_free.3ssl|43|br══─}─══|'br══─}─══ )         (htmlprn|149|C___TLOG_free.3ssl|43|'br══─}─══ |'br══─}─══ )