![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qx509_generic_p.h>
Static Public Member Functions | |
static QList< QSslCertificate > | certificatesFromPem (const QByteArray &pem, int count) |
static QList< QSslCertificate > | certificatesFromDer (const QByteArray &der, int count) |
Static Public Member Functions inherited from QTlsPrivate::X509CertificateBase | |
static QByteArray | subjectInfoToString (QSslCertificate::SubjectInfo info) |
static bool | matchLineFeed (const QByteArray &pem, int *offset) |
Protected Member Functions | |
bool | parse (const QByteArray &data) |
bool | parseExtension (const QByteArray &data, X509CertificateExtension &extension) |
Protected Member Functions inherited from QTlsPrivate::X509CertificateBase | |
bool | validIndex (qsizetype index) const |
Protected Attributes | |
bool | subjectMatchesIssuer = false |
QSsl::KeyAlgorithm | publicKeyAlgorithm = QSsl::Rsa |
QByteArray | publicKeyDerData |
QMultiMap< QSsl::AlternativeNameEntryType, QString > | saNames |
QByteArray | derData |
Protected Attributes inherited from QTlsPrivate::X509CertificateBase | |
bool | null = true |
QByteArray | versionString |
QByteArray | serialNumberString |
QMultiMap< QByteArray, QString > | issuerInfoEntries |
QMultiMap< QByteArray, QString > | subjectInfoEntries |
QDateTime | notValidAfter |
QDateTime | notValidBefore |
QList< X509CertificateExtension > | extensions |
Definition at line 32 of file qx509_generic_p.h.
|
static |
Definition at line 128 of file qx509_generic.cpp.
|
static |
Definition at line 100 of file qx509_generic.cpp.
|
overridevirtual |
This function is expected to return a pointer to the native certificate handle, if there is one, else nullptr.
Implements QTlsPrivate::X509Certificate.
Reimplemented in QTlsPrivate::X509CertificateSchannel.
Definition at line 89 of file qx509_generic.cpp.
|
overridevirtualnoexcept |
This function is expected to return the hash value for this certificate, using seed to seed the calculation.
Implements QTlsPrivate::X509Certificate.
Definition at line 95 of file qx509_generic.cpp.
|
overridevirtual |
This function is expected to return true
if this certificate is the same as the other, false
otherwise. Used by QSslCertificate's comparison operators.
Implements QTlsPrivate::X509Certificate.
Definition at line 38 of file qx509_generic.cpp.
|
overridevirtual |
This function is needed to implement QSslCertificate::isSelfSigned()
Implements QTlsPrivate::X509Certificate.
Definition at line 44 of file qx509_generic.cpp.
References QTlsPrivate::X509CertificateBase::null, and subjectMatchesIssuer.
|
protected |
Definition at line 146 of file qx509_generic.cpp.
References QAsn1Element::Context0Type, QAsn1Element::Context3Type, QAsn1Element::GeneralizedTimeType, QAsn1Element::IntegerType, QAsn1Element::IpAddressType, QTlsPrivate::X509CertificateBase::null, QAsn1Element::ObjectIdentifierType, QAsn1Element::SequenceType, subjectMatchesIssuer, QTlsPrivate::X509CertificateBase::X509CertificateExtension::supported, and QAsn1Element::UtcTimeType.
|
protected |
Definition at line 325 of file qx509_generic.cpp.
References QAsn1Element::BooleanType, QTlsPrivate::X509CertificateBase::X509CertificateExtension::critical, QAsn1Element::ObjectIdentifierType, QAsn1Element::OctetStringType, QAsn1Element::SequenceType, QTlsPrivate::X509CertificateBase::X509CertificateExtension::supported, and QAsn1Element::toBool().
|
overridevirtual |
This function is expected to return the list of alternative subject names for this certificate. The alternative names typically contain host names, optionally with wildcards, that are valid for this certificate.
Implements QTlsPrivate::X509Certificate.
Definition at line 52 of file qx509_generic.cpp.
|
overridevirtual |
This function is expected to return this certificate converted to a DER (binary) encoded representation.
Implements QTlsPrivate::X509Certificate.
Definition at line 78 of file qx509_generic.cpp.
|
overridevirtual |
This function is expected to return this certificate converted to a PEM (Base64) encoded representation.
Implements QTlsPrivate::X509Certificate.
Definition at line 60 of file qx509_generic.cpp.
|
overridevirtual |
This function is expected to return this certificate converted to a human-readable text representation.
Implements QTlsPrivate::X509Certificate.
Definition at line 83 of file qx509_generic.cpp.
|
protected |
Definition at line 56 of file qx509_generic_p.h.
|
protected |
Definition at line 52 of file qx509_generic_p.h.
|
protected |
Definition at line 53 of file qx509_generic_p.h.
|
protected |
Definition at line 55 of file qx509_generic_p.h.
|
protected |
Definition at line 51 of file qx509_generic_p.h.
Referenced by isSelfSigned(), and parse().