Skip to content

Mbed TLS platform

Struct SolidSyslogMbedTlsPemBuffer

ClassList > SolidSyslogMbedTlsPemBuffer

  • #include <SolidSyslogMbedTlsPemBufferCredentials.h>
struct SolidSyslogMbedTlsPemBuffer
{
    const unsigned char* Bytes;
    size_t Length;
};

Detailed Description

PEM text and its extent.

Borrowed - the caller owns the bytes and must keep them valid for the lifetime of the credentials.

Public Attributes Documentation

Bytes

PEM text; NULL means this piece of material is not supplied.

const unsigned char* SolidSyslogMbedTlsPemBuffer::Bytes;


Length

Length of Bytes including the terminating NUL, which is the length Mbed TLS's own parsers require of PEM - sostrlen(pem) + 1 .

size_t SolidSyslogMbedTlsPemBuffer::Length;

Getting this wrong is reported rather than left to surface as a parse failure: Mbed TLS reads a certificate buffer whose last byte is not NUL as DER instead, which fails as "not a certificate" and says nothing about the length.



The documentation for this class was generated from the following file Platform/MbedTls/Interface/SolidSyslogMbedTlsPemBufferCredentials.h