Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
cX509Cert Class Reference

#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
 

Detailed Description

Definition at line 18 of file X509Cert.h.

Constructor & Destructor Documentation

◆ cX509Cert()

cX509Cert::cX509Cert ( void  )

Definition at line 13 of file X509Cert.cpp.

◆ ~cX509Cert()

cX509Cert::~cX509Cert ( void  )

Definition at line 22 of file X509Cert.cpp.

Member Function Documentation

◆ GetInternal()

mbedtls_x509_crt* cX509Cert::GetInternal ( void  )
inlineprotected

Returns the internal cert ptr.

Only use in mbedTLS API calls.

Definition at line 35 of file X509Cert.h.

◆ Parse()

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.

Friends And Related Function Documentation

◆ cSslConfig

friend class cSslConfig
friend

Definition at line 20 of file X509Cert.h.

Member Data Documentation

◆ m_Cert

mbedtls_x509_crt cX509Cert::m_Cert
protected

Definition at line 32 of file X509Cert.h.


The documentation for this class was generated from the following files: