ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
pem_object_t Struct Reference

One decoded PEM (Privacy-Enhanced Mail) block. More...

Data Fields

char * name
 PEM object name (e.g., "CERTIFICATE", "PRIVATE KEY").
unsigned char * data
 Decoded binary data.
size_t data_len
 Length of data in bytes.

Detailed Description

One decoded PEM (Privacy-Enhanced Mail) block.

PEM is the text armor used for objects such as CERTIFICATE and PRIVATE KEY: it wraps binary DER bytes in a labeled Base64 block. name stores the label from the BEGIN/END lines, while data and data_len own the decoded binary payload. The PEM parser frees all three fields when the object list is released, unless a consumer explicitly transfers the payload.

Definition at line 200 of file pem.c.

Field Documentation

◆ data

unsigned char* pem_object_t::data

Decoded binary data.

Definition at line 202 of file pem.c.

◆ data_len

size_t pem_object_t::data_len

Length of data in bytes.

Definition at line 203 of file pem.c.

◆ name

char* pem_object_t::name

PEM object name (e.g., "CERTIFICATE", "PRIVATE KEY").

Definition at line 201 of file pem.c.


The documentation for this struct was generated from the following file: