QSslError Class

QSslError 클래스는 SSL 오류를 제공합니다. 더 보기...

헤더: #include <QSslError>
CMake: find_package(Qt6 REQUIRED COMPONENTS Network)
target_link_libraries(mytarget PRIVATE Qt6::Network)
qmake: QT += network

참고: 이 클래스의 모든 함수는 재진입됩니다.

공용 유형

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::NoError0
QSslError::UnableToGetIssuerCertificate1
QSslError::UnableToDecryptCertificateSignature2
QSslError::UnableToDecodeIssuerPublicKey3
QSslError::CertificateSignatureFailed4
QSslError::CertificateNotYetValid5
QSslError::CertificateExpired6
QSslError::InvalidNotBeforeField7
QSslError::InvalidNotAfterField8
QSslError::SelfSignedCertificate9
QSslError::SelfSignedCertificateInChain10
QSslError::UnableToGetLocalIssuerCertificate11
QSslError::UnableToVerifyFirstCertificate12
QSslError::CertificateRevoked13
QSslError::InvalidCaCertificate14
QSslError::PathLengthExceeded15
QSslError::InvalidPurpose16
QSslError::CertificateUntrusted17
QSslError::CertificateRejected18
QSslError::SubjectIssuerMismatch19
QSslError::AuthorityIssuerSerialNumberMismatch20
QSslError::NoPeerCertificate21
QSslError::HostNameMismatch22
QSslError::UnspecifiedError-1
QSslError::NoSslSupport23
QSslError::CertificateBlacklisted24
QSslError::CertificateStatusUnknown25
QSslError::OcspNoResponseFound26
QSslError::OcspMalformedRequest27
QSslError::OcspMalformedResponse28
QSslError::OcspInternalError29
QSslError::OcspTryLater30
QSslError::OcspSigRequred31
QSslError::OcspUnauthorized32
QSslError::OcspResponseCannotBeTrusted33
QSslError::OcspResponseCertIdUnknown34
QSslError::OcspResponseExpired35
QSslError::OcspStatusUnknown36

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.