Owns the certificate chain returned by Sunshine's TLS certificate loader.
More...
#include <src/crypto.h>
|
| 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 that a certificate exactly matches one stored trust anchor.
|
Owns the certificate chain returned by Sunshine's TLS certificate loader.
◆ cert_chain_t() [1/2]
| crypto::cert_chain_t::cert_chain_t |
( |
cert_chain_t && | | ) |
|
|
defaultnoexcept |
Defaulted move constructor for the generated type.
◆ cert_chain_t() [2/2]
| crypto::cert_chain_t::cert_chain_t |
( |
| ) |
|
Default constructor for the generated type.
◆ add()
| void crypto::cert_chain_t::add |
( |
x509_t && | cert | ) |
|
Add a certificate to the verification chain.
- Parameters
-
| cert | Certificate data or object used by the operation. |
◆ operator=()
Defaulted move assignment for the generated type. * *.
◆ verify()
Verify that a certificate exactly matches one stored trust anchor.
- Parameters
-
| cert | Client certificate to verify. |
- Returns
- nullptr when the exact certificate is trusted, otherwise an OpenSSL error string.
The documentation for this class was generated from the following files: