QSslError Class
QSslError 클래스는 SSL 오류를 제공합니다. 더 보기...
헤더: | #include <QSslError> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Network) target_link_libraries(mytarget PRIVATE Qt6::Network) |
qmake: | QT += network |
- 상속된 멤버를 포함한 모든 멤버 목록
- QSslError는 네트워크 프로그래밍 API 및 암시적으로 공유되는 클래스의 일부입니다.
참고: 이 클래스의 모든 함수는 재진입됩니다.
공용 유형
enum | SslError { NoError, UnableToGetIssuerCertificate, UnableToDecryptCertificateSignature, UnableToDecodeIssuerPublicKey, CertificateSignatureFailed, …, OcspStatusUnknown } |
공용 함수
QSslError() | |
QSslError(QSslError::SslError error) | |
QSslError(QSslError::SslError error, const QSslCertificate &certificate) | |
QSslError(const QSslError &other) | |
~QSslError() | |
QSslCertificate | certificate() const |
QSslError::SslError | error() const |
QString | errorString() const |
void | swap(QSslError &other) |
bool | operator!=(const QSslError &other) const |
QSslError & | operator=(const QSslError &other) |
bool | operator==(const QSslError &other) const |
상세 설명
QSslError는 QSslSocket 의 SSL 핸드셰이크 중 오류를 관리하기 위한 간단한 API를 제공합니다.
QSslSocket, QSslCertificate, QSslCipher 를참조하십시오 .
멤버 타입 문서
enum QSslError::SslError
SSL 핸드셰이크 중에 발생할 수 있는 모든 인식된 오류를 설명합니다.
상수 | 값 |
---|---|
QSslError::NoError | 0 |
QSslError::UnableToGetIssuerCertificate | 1 |
QSslError::UnableToDecryptCertificateSignature | 2 |
QSslError::UnableToDecodeIssuerPublicKey | 3 |
QSslError::CertificateSignatureFailed | 4 |
QSslError::CertificateNotYetValid | 5 |
QSslError::CertificateExpired | 6 |
QSslError::InvalidNotBeforeField | 7 |
QSslError::InvalidNotAfterField | 8 |
QSslError::SelfSignedCertificate | 9 |
QSslError::SelfSignedCertificateInChain | 10 |
QSslError::UnableToGetLocalIssuerCertificate | 11 |
QSslError::UnableToVerifyFirstCertificate | 12 |
QSslError::CertificateRevoked | 13 |
QSslError::InvalidCaCertificate | 14 |
QSslError::PathLengthExceeded | 15 |
QSslError::InvalidPurpose | 16 |
QSslError::CertificateUntrusted | 17 |
QSslError::CertificateRejected | 18 |
QSslError::SubjectIssuerMismatch | 19 |
QSslError::AuthorityIssuerSerialNumberMismatch | 20 |
QSslError::NoPeerCertificate | 21 |
QSslError::HostNameMismatch | 22 |
QSslError::UnspecifiedError | -1 |
QSslError::NoSslSupport | 23 |
QSslError::CertificateBlacklisted | 24 |
QSslError::CertificateStatusUnknown | 25 |
QSslError::OcspNoResponseFound | 26 |
QSslError::OcspMalformedRequest | 27 |
QSslError::OcspMalformedResponse | 28 |
QSslError::OcspInternalError | 29 |
QSslError::OcspTryLater | 30 |
QSslError::OcspSigRequred | 31 |
QSslError::OcspUnauthorized | 32 |
QSslError::OcspResponseCannotBeTrusted | 33 |
QSslError::OcspResponseCertIdUnknown | 34 |
QSslError::OcspResponseExpired | 35 |
QSslError::OcspStatusUnknown | 36 |
QSslError::errorString()도 참조하세요 .
멤버 함수 문서
QSslError::QSslError()
오류 및 기본 인증서가 없는 QSslError 객체를 구축합니다.
[explicit]
QSslError::QSslError(QSslError::SslError error)
QSslError 객체를 생성합니다. 인수는 발생한 error 을 지정합니다.
QSslError::QSslError(QSslError::SslError error, const QSslCertificate &certificate)
QSslError 객체를 생성합니다. 두 개의 인수는 발생한 error 및 오류와 관련된 certificate 을 지정합니다.
QSslCertificate도 참조하세요 .
QSslError::QSslError(const QSslError &other)
other 의 동일한 복사본을 생성합니다.
[noexcept]
QSslError::~QSslError()
QSslError 객체를 삭제합니다.
QSslCertificate QSslError::certificate() const
이 오류와 관련된 인증서를 반환하거나 오류가 인증서와 관련이 없는 경우 null 인증서를 반환합니다.
error() 및 errorString()도 참조하세요 .
QSslError::SslError QSslError::error() const
오류 유형을 반환합니다.
errorString() 및 certificate()도 참조하세요 .
QString QSslError::errorString() const
사람이 읽을 수 있는 짧은 현지화된 오류 설명을 반환합니다.
error() 및 certificate()도 참조하세요 .
[noexcept]
void QSslError::swap(QSslError &other)
이 오류 인스턴스를 other 로 바꿉니다. 이 작업은 매우 빠르며 실패하지 않습니다.
bool QSslError::operator!=(const QSslError &other) const
이 오류가 other 과 같지 않으면 true
을 반환하고, 그렇지 않으면 false 를 반환합니다.
QSslError &QSslError::operator=(const QSslError &other)
other 의 내용을 이 오류에 할당합니다.
bool QSslError::operator==(const QSslError &other) const
이 오류가 other 과 같으면 true
을 반환하고, 그렇지 않으면 false
을 반환합니다.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.