Struct SolidSyslogMbedTlsPemBuffer¶
ClassList > SolidSyslogMbedTlsPemBuffer
#include <SolidSyslogMbedTlsPemBufferCredentials.h>
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.
Length¶
Length of Bytes including the terminating NUL, which is the length Mbed TLS's own parsers require of PEM - at leaststrlen(pem) + 1 .
It may be the whole buffer, with every byte after the PEM a NUL, because the parser stops at the first NUL; that is how a buffer is sized to rotate material of another length into. The last byte must be a NUL. 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