Sunshine latest
Self-hosted game stream host for Moonlight.
crypto::cert_chain_t Class Reference

Public Member Functions

void add (x509_t &&cert)
 
 cert_chain_t (cert_chain_t &&) noexcept=default
 
void clear ()
 
cert_chain_toperator= (cert_chain_t &&) noexcept=default
 
const char * verify (x509_t::element_type *cert)
 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.
 

Member Function Documentation

◆ verify()

const char * crypto::cert_chain_t::verify ( x509_t::element_type * cert)

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.

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