Go to the
documentation of this file.
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 #ifndef QSSLERROR_H
00044 #define QSSLERROR_H
00045
00046 #include <QtCore/qvariant.h>
00047 #include <QtNetwork/qsslcertificate.h>
00048
00049 QT_BEGIN_HEADER
00050
00051 QT_BEGIN_NAMESPACE
00052
00053 QT_MODULE(Network)
00054
00055 #ifndef QT_NO_OPENSSL
00056
00057 class QSslErrorPrivate;
00058 class Q_NETWORK_EXPORT QSslError
00059 {
00060 public:
00061 enum SslError {
00062 NoError,
00063 UnableToGetIssuerCertificate,
00064 UnableToDecryptCertificateSignature,
00065 UnableToDecodeIssuerPublicKey,
00066 CertificateSignatureFailed,
00067 CertificateNotYetValid,
00068 CertificateExpired,
00069 InvalidNotBeforeField,
00070 InvalidNotAfterField,
00071 SelfSignedCertificate,
00072 SelfSignedCertificateInChain,
00073 UnableToGetLocalIssuerCertificate,
00074 UnableToVerifyFirstCertificate,
00075 CertificateRevoked,
00076 InvalidCaCertificate,
00077 PathLengthExceeded,
00078 InvalidPurpose,
00079 CertificateUntrusted,
00080 CertificateRejected,
00081 SubjectIssuerMismatch,
00082 AuthorityIssuerSerialNumberMismatch,
00083 NoPeerCertificate,
00084 HostNameMismatch,
00085 NoSslSupport,
00086 UnspecifiedError = -1
00087 };
00088
00089
00090
00091 QSslError();
00092 QSslError(SslError error);
00093 QSslError(SslError error, const QSslCertificate &certificate);
00094
00095 QSslError(const QSslError &other);
00096
00097 ~QSslError();
00098 QSslError &operator=(const QSslError &other);
00099 bool operator==(const QSslError &other) const;
00100 inline bool operator!=(const QSslError &other) const
00101 { return !(*this == other); }
00102
00103 SslError error() const;
00104 QString errorString() const;
00105 QSslCertificate certificate() const;
00106
00107 private:
00108 QScopedPointer<QSslErrorPrivate> d;
00109 };
00110
00111 #ifndef QT_NO_DEBUG_STREAM
00112 class QDebug;
00113 Q_NETWORK_EXPORT QDebug operator<<(QDebug debug, const QSslError &error);
00114 Q_NETWORK_EXPORT QDebug operator<<(QDebug debug, const QSslError::SslError &error);
00115 #endif
00116
00117 #endif // QT_NO_OPENSSL
00118
00119 QT_END_NAMESPACE
00120
00121 QT_END_HEADER
00122
00123 #endif