Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
crypto::cert_chain_t Class Reference

Public Member Functions

 cert_chain_t (cert_chain_t &&) noexcept=default
cert_chain_t & operator= (cert_chain_t &&) noexcept=default
void add (p_named_cert_t &named_cert_p)
void clear ()
const char * verify (x509_t::element_type *cert, p_named_cert_t &named_cert_out)
 Verify the certificate chain. When certificates from two or more instances of Moonlight have been added to x509_store_t, only one of them will be verified by X509_verify_cert, resulting in only a single instance of Moonlight to be able to use Sunshine.

Detailed Description

Definition at line 137 of file crypto.h.

Constructor & Destructor Documentation

◆ cert_chain_t()

crypto::cert_chain_t::cert_chain_t ( )

Definition at line 15 of file crypto.cpp.

Member Function Documentation

◆ add()

void crypto::cert_chain_t::add ( p_named_cert_t & named_cert_p)

Definition at line 18 of file crypto.cpp.

◆ clear()

void crypto::cert_chain_t::clear ( )

Definition at line 25 of file crypto.cpp.

◆ verify()

const char * crypto::cert_chain_t::verify ( x509_t::element_type * cert,
p_named_cert_t & named_cert_out )

Verify the certificate chain. When certificates from two or more instances of Moonlight have been added to x509_store_t, only one of them will be verified by X509_verify_cert, resulting in only a single instance of Moonlight to be able to use Sunshine.

To circumvent this, x509_store_t instance will be created for each instance of the certificates.

Parameters
certThe certificate to verify.
Returns
nullptr if the certificate is valid, otherwise an error string.

Definition at line 55 of file crypto.cpp.


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