#include <gadgets.h>
Public Member Functions | |
CertificateProperties () | |
Public Attributes | |
Security::CertPointer | mimicCert |
Certificate to mimic. More... | |
Security::CertPointer | signWithX509 |
Certificate to sign the generated request. More... | |
Security::PrivateKeyPointer | signWithPkey |
The key of the signing certificate. More... | |
bool | setValidAfter |
Do not mimic "Not Valid After" field. More... | |
bool | setValidBefore |
Do not mimic "Not Valid Before" field. More... | |
bool | setCommonName |
Replace the CN field of the mimicking subject with the given. More... | |
std::string | commonName |
A CN to use for the generated certificate. More... | |
CertSignAlgorithm | signAlgorithm |
The signing algorithm to use. More... | |
const EVP_MD * | signHash |
The signing hash to use. More... | |
Private Member Functions | |
CertificateProperties (CertificateProperties &) | |
CertificateProperties & | operator= (CertificateProperties const &) |
Detailed Description
Simple struct to pass certificate generation parameters to generateSslCertificate function.
Constructor & Destructor Documentation
◆ CertificateProperties() [1/2]
Ssl::CertificateProperties::CertificateProperties | ( | ) |
Definition at line 244 of file gadgets.cc.
◆ CertificateProperties() [2/2]
|
private |
Member Function Documentation
◆ operator=()
|
private |
Member Data Documentation
◆ commonName
std::string Ssl::CertificateProperties::commonName |
Definition at line 238 of file gadgets.h.
Referenced by buildCertificate(), ConnStateData::buildSslCertGenerationParams(), Ssl::certificateMatchesProperties(), Ssl::CrtdMessage::composeRequest(), Ssl::generateUntrustedCert(), ConnStateData::getSslContextStart(), ConnStateData::getTlsContextFromCache(), Ssl::InRamCertificateDbKey(), Ssl::OnDiskCertificateDbKey(), and Ssl::CrtdMessage::parseRequest().
◆ mimicCert
Security::CertPointer Ssl::CertificateProperties::mimicCert |
Definition at line 232 of file gadgets.h.
Referenced by buildCertificate(), ConnStateData::buildSslCertGenerationParams(), Ssl::certificateMatchesProperties(), Ssl::CrtdMessage::composeRequest(), Ssl::generateUntrustedCert(), Ssl::InRamCertificateDbKey(), Ssl::OnDiskCertificateDbKey(), Ssl::CrtdMessage::parseRequest(), and processNewRequest().
◆ setCommonName
bool Ssl::CertificateProperties::setCommonName |
Definition at line 237 of file gadgets.h.
Referenced by buildCertificate(), ConnStateData::buildSslCertGenerationParams(), Ssl::certificateMatchesProperties(), Ssl::CrtdMessage::composeRequest(), Ssl::generateUntrustedCert(), Ssl::InRamCertificateDbKey(), Ssl::OnDiskCertificateDbKey(), and Ssl::CrtdMessage::parseRequest().
◆ setValidAfter
bool Ssl::CertificateProperties::setValidAfter |
Definition at line 235 of file gadgets.h.
Referenced by buildCertificate(), ConnStateData::buildSslCertGenerationParams(), Ssl::certificateMatchesProperties(), Ssl::CrtdMessage::composeRequest(), Ssl::InRamCertificateDbKey(), Ssl::OnDiskCertificateDbKey(), and Ssl::CrtdMessage::parseRequest().
◆ setValidBefore
bool Ssl::CertificateProperties::setValidBefore |
Definition at line 236 of file gadgets.h.
Referenced by buildCertificate(), ConnStateData::buildSslCertGenerationParams(), Ssl::certificateMatchesProperties(), Ssl::CrtdMessage::composeRequest(), Ssl::InRamCertificateDbKey(), Ssl::OnDiskCertificateDbKey(), and Ssl::CrtdMessage::parseRequest().
◆ signAlgorithm
CertSignAlgorithm Ssl::CertificateProperties::signAlgorithm |
Definition at line 239 of file gadgets.h.
Referenced by ConnStateData::buildSslCertGenerationParams(), Ssl::certificateMatchesProperties(), Ssl::CrtdMessage::composeRequest(), generateFakeSslCertificate(), Ssl::generateUntrustedCert(), ConnStateData::getSslContextStart(), Ssl::InRamCertificateDbKey(), Ssl::OnDiskCertificateDbKey(), and Ssl::CrtdMessage::parseRequest().
◆ signHash
const EVP_MD* Ssl::CertificateProperties::signHash |
Definition at line 240 of file gadgets.h.
Referenced by ConnStateData::buildSslCertGenerationParams(), Ssl::CrtdMessage::composeRequest(), generateFakeSslCertificate(), Ssl::InRamCertificateDbKey(), Ssl::OnDiskCertificateDbKey(), and Ssl::CrtdMessage::parseRequest().
◆ signWithPkey
Security::PrivateKeyPointer Ssl::CertificateProperties::signWithPkey |
Definition at line 234 of file gadgets.h.
Referenced by ConnStateData::buildSslCertGenerationParams(), Ssl::CrtdMessage::composeRequest(), generateFakeSslCertificate(), Ssl::generateUntrustedCert(), and Ssl::CrtdMessage::parseRequest().
◆ signWithX509
Security::CertPointer Ssl::CertificateProperties::signWithX509 |
Definition at line 233 of file gadgets.h.
Referenced by buildCertificate(), ConnStateData::buildSslCertGenerationParams(), Ssl::certificateMatchesProperties(), Ssl::CrtdMessage::composeRequest(), createSerial(), generateFakeSslCertificate(), and Ssl::CrtdMessage::parseRequest().
The documentation for this class was generated from the following files:
- src/ssl/gadgets.h
- src/ssl/gadgets.cc