18 #ifndef QGSAUTHCERTUTILS_H 19 #define QGSAUTHCERTUTILS_H 23 #include <QSslCertificate> 28 #if QT_VERSION >= 0x050000 29 #define SSL_ISSUER_INFO( var, prop ) var.issuerInfo( prop ).value(0) 31 #define SSL_ISSUER_INFO( var, prop ) var.issuerInfo( prop ) 34 #if QT_VERSION >= 0x050000 35 #define SSL_SUBJECT_INFO( var, prop ) var.subjectInfo( prop ).value(0) 37 #define SSL_SUBJECT_INFO( var, prop ) var.subjectInfo( prop ) 67 UndeterminedUsage = 0,
89 static QString getSslProtocolName( QSsl::SslProtocol protocol );
136 bool reencrypt =
true );
146 bool reencrypt =
true );
171 const QCA::Certificate& acert = QCA::Certificate(),
172 bool issuer =
false );
189 static QCA::Certificate qtCertToQcaCert(
const QSslCertificate& cert );
199 static QCA::KeyBundle qcaKeyBundle(
const QString &path,
const QString &pass );
204 static QString qcaValidityMessage( QCA::Validity validity );
209 static QString qcaSignatureAlgorithm( QCA::SignatureAlgorithm algorithm );
214 static QString qcaKnownConstraint( QCA::ConstraintTypeKnown constraint );
231 static bool certificateIsAuthorityOrIssuer(
const QSslCertificate& cert );
240 static QString sslErrorEnumString( QSslError::SslError errenum );
251 #endif // QGSAUTHCERTUTILS_H
ConstraintGroup
Type of certificate key group.
CertUsageType
Type of certificate usage.
Utilities for working with certificates and keys.
CaCertSource
Type of CA certificate source.
CertTrustPolicy
Type of certificate trust policy.