DLL-safe typed failure, with a leaf-to-anchor certificate index.
More...
#include <StormByte/crypto/x509/tls_peer.hxx>
DLL-safe typed failure, with a leaf-to-anchor certificate index.
- Note
- All state is trivial; all value operations are out of line.
◆ TLSPeerFailure() [1/6]
| StormByte::Crypto::X509::TLSPeerFailure::TLSPeerFailure |
( |
| ) |
|
|
noexcept |
Constructs an invalid-certificate failure at the leaf.
◆ TLSPeerFailure() [2/6]
| StormByte::Crypto::X509::TLSPeerFailure::TLSPeerFailure |
( |
TLSPeerError | code, |
|
|
std::size_t | index = 0 ) |
|
explicitnoexcept |
Constructs a chain or request failure.
- Parameters
-
| code | Failure category. |
| index | Leaf is 0, intermediates are 1..N, anchor is N+1. |
◆ TLSPeerFailure() [3/6]
| StormByte::Crypto::X509::TLSPeerFailure::TLSPeerFailure |
( |
PurposeError | detail, |
|
|
std::size_t | index ) |
|
explicitnoexcept |
Preserves a purpose failure.
- Parameters
-
| detail | Exact purpose error. |
| index | Certificate that failed. |
◆ TLSPeerFailure() [4/6]
| StormByte::Crypto::X509::TLSPeerFailure::TLSPeerFailure |
( |
IdentityError | detail, |
|
|
std::size_t | index = 0 ) |
|
explicitnoexcept |
Preserves an identity or SAN-validation failure.
- Parameters
-
| detail | Exact identity error. |
| index | Certificate that failed; identity matching uses the leaf. |
◆ TLSPeerFailure() [5/6]
| StormByte::Crypto::X509::TLSPeerFailure::TLSPeerFailure |
( |
const TLSPeerFailure & | other | ) |
|
|
noexcept |
Copies a failure.
- Parameters
-
◆ TLSPeerFailure() [6/6]
| StormByte::Crypto::X509::TLSPeerFailure::TLSPeerFailure |
( |
TLSPeerFailure && | other | ) |
|
|
noexcept |
Moves a failure; the source remains usable.
- Parameters
-
◆ ~TLSPeerFailure()
| StormByte::Crypto::X509::TLSPeerFailure::~TLSPeerFailure |
( |
| ) |
|
|
noexcept |
◆ CertificateIndex()
| std::size_t StormByte::Crypto::X509::TLSPeerFailure::CertificateIndex |
( |
| ) |
const |
|
noexcept |
Returns the certificate position.
- Returns
- Leaf-to-anchor index; request and identity-matching errors use 0.
◆ Code()
| TLSPeerError StormByte::Crypto::X509::TLSPeerFailure::Code |
( |
| ) |
const |
|
noexcept |
Returns the failure category.
- Returns
- Failure category.
◆ IdentityDetail()
| IdentityError StormByte::Crypto::X509::TLSPeerFailure::IdentityDetail |
( |
| ) |
const |
|
noexcept |
Returns the preserved identity error.
- Returns
- Identity error; meaningful only when Code() is Identity.
◆ operator=() [1/2]
Copies a failure.
- Parameters
-
- Returns
- This failure.
◆ operator=() [2/2]
Moves a failure; the source remains usable.
- Parameters
-
- Returns
- This failure.
◆ PurposeDetail()
| PurposeError StormByte::Crypto::X509::TLSPeerFailure::PurposeDetail |
( |
| ) |
const |
|
noexcept |
Returns the preserved purpose error.
- Returns
- Purpose error; meaningful only when Code() is Purpose.
The documentation for this class was generated from the following file: