1// qsslerror.sip generated by MetaSIP 2// 3// This file is part of the QtNetwork Python extension module. 4// 5// Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com> 6// 7// This file is part of PyQt5. 8// 9// This file may be used under the terms of the GNU General Public License 10// version 3.0 as published by the Free Software Foundation and appearing in 11// the file LICENSE included in the packaging of this file. Please review the 12// following information to ensure the GNU General Public License version 3.0 13// requirements will be met: http://www.gnu.org/copyleft/gpl.html. 14// 15// If you do not wish to use this file under the terms of the GPL version 3.0 16// then you may purchase a commercial license. For more information contact 17// info@riverbankcomputing.com. 18// 19// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 20// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 21 22 23%If (PyQt_SSL) 24 25class QSslError 26{ 27%TypeHeaderCode 28#include <qsslerror.h> 29%End 30 31public: 32 enum SslError 33 { 34 UnspecifiedError, 35 NoError, 36 UnableToGetIssuerCertificate, 37 UnableToDecryptCertificateSignature, 38 UnableToDecodeIssuerPublicKey, 39 CertificateSignatureFailed, 40 CertificateNotYetValid, 41 CertificateExpired, 42 InvalidNotBeforeField, 43 InvalidNotAfterField, 44 SelfSignedCertificate, 45 SelfSignedCertificateInChain, 46 UnableToGetLocalIssuerCertificate, 47 UnableToVerifyFirstCertificate, 48 CertificateRevoked, 49 InvalidCaCertificate, 50 PathLengthExceeded, 51 InvalidPurpose, 52 CertificateUntrusted, 53 CertificateRejected, 54 SubjectIssuerMismatch, 55 AuthorityIssuerSerialNumberMismatch, 56 NoPeerCertificate, 57 HostNameMismatch, 58 NoSslSupport, 59 CertificateBlacklisted, 60%If (Qt_5_13_0 -) 61 CertificateStatusUnknown, 62%End 63%If (Qt_5_13_0 -) 64 OcspNoResponseFound, 65%End 66%If (Qt_5_13_0 -) 67 OcspMalformedRequest, 68%End 69%If (Qt_5_13_0 -) 70 OcspMalformedResponse, 71%End 72%If (Qt_5_13_0 -) 73 OcspInternalError, 74%End 75%If (Qt_5_13_0 -) 76 OcspTryLater, 77%End 78%If (Qt_5_13_0 -) 79 OcspSigRequred, 80%End 81%If (Qt_5_13_0 -) 82 OcspUnauthorized, 83%End 84%If (Qt_5_13_0 -) 85 OcspResponseCannotBeTrusted, 86%End 87%If (Qt_5_13_0 -) 88 OcspResponseCertIdUnknown, 89%End 90%If (Qt_5_13_0 -) 91 OcspResponseExpired, 92%End 93%If (Qt_5_13_0 -) 94 OcspStatusUnknown, 95%End 96 }; 97 98 QSslError(); 99 QSslError(QSslError::SslError error); 100 QSslError(QSslError::SslError error, const QSslCertificate &certificate); 101 QSslError(const QSslError &other); 102 ~QSslError(); 103 QSslError::SslError error() const; 104 QString errorString() const; 105 QSslCertificate certificate() const; 106 bool operator==(const QSslError &other) const; 107 bool operator!=(const QSslError &other) const; 108 void swap(QSslError &other /Constrained/); 109%If (Qt_5_4_0 -) 110 long __hash__() const; 111%MethodCode 112 sipRes = qHash(*sipCpp); 113%End 114 115%End 116}; 117 118%End 119