Cuberite
A lightweight, fast and extensible game server for Minecraft
|
#include <X509Cert.h>
Public Member Functions | |
cX509Cert (void) | |
int | Parse (const void *a_CertContents, size_t a_Size) |
Parses the certificate chain data into the context. More... | |
~cX509Cert (void) | |
Protected Member Functions | |
mbedtls_x509_crt * | GetInternal (void) |
Returns the internal cert ptr. More... | |
Protected Attributes | |
mbedtls_x509_crt | m_Cert |
Friends | |
class | cSslConfig |
Definition at line 18 of file X509Cert.h.
cX509Cert::cX509Cert | ( | void | ) |
Definition at line 13 of file X509Cert.cpp.
cX509Cert::~cX509Cert | ( | void | ) |
Definition at line 22 of file X509Cert.cpp.
|
inlineprotected |
Returns the internal cert ptr.
Only use in mbedTLS API calls.
Definition at line 35 of file X509Cert.h.
int cX509Cert::Parse | ( | const void * | a_CertContents, |
size_t | a_Size | ||
) |
Parses the certificate chain data into the context.
The certificate can be DER- or PEM-encoded. Returns 0 on succes, or mbedTLS error code on failure.
Definition at line 31 of file X509Cert.cpp.
|
friend |
Definition at line 20 of file X509Cert.h.
|
protected |
Definition at line 32 of file X509Cert.h.