|
Sunshine master
Self-hosted game stream host for Moonlight.
|
Owns the certificate chain returned by Sunshine's TLS certificate loader. More...
#include <src/crypto.h>
Public Member Functions | |
| void | add (x509_t &&cert) |
| Add a certificate to the verification chain. | |
| cert_chain_t () | |
| Default constructor for the generated type. | |
| cert_chain_t (cert_chain_t &&) noexcept=default | |
| Defaulted move constructor for the generated type. | |
| void | clear () |
| Remove all certificates from the verification chain. | |
| cert_chain_t & | operator= (cert_chain_t &&) noexcept=default |
| Defaulted move assignment for the generated type. * *. | |
| 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. | |
Owns the certificate chain returned by Sunshine's TLS certificate loader.
|
defaultnoexcept |
Defaulted move constructor for the generated type.
| crypto::cert_chain_t::cert_chain_t | ( | ) |
Default constructor for the generated type.
| void crypto::cert_chain_t::add | ( | x509_t && | cert | ) |
Add a certificate to the verification chain.
| cert | Certificate data or object used by the operation. |
|
defaultnoexcept |
Defaulted move assignment for the generated type. * *.
| 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.
| cert | The certificate to verify. |