198QString QSslError::errorString()
const
203 errStr = QSslSocket::tr(
"No error");
205 case UnableToGetIssuerCertificate:
206 errStr = QSslSocket::tr(
"The issuer certificate could not be found");
208 case UnableToDecryptCertificateSignature:
209 errStr = QSslSocket::tr(
"The certificate signature could not be decrypted");
211 case UnableToDecodeIssuerPublicKey:
212 errStr = QSslSocket::tr(
"The public key in the certificate could not be read");
214 case CertificateSignatureFailed:
215 errStr = QSslSocket::tr(
"The signature of the certificate is invalid");
217 case CertificateNotYetValid:
218 errStr = QSslSocket::tr(
"The certificate is not yet valid");
220 case CertificateExpired:
221 errStr = QSslSocket::tr(
"The certificate has expired");
223 case InvalidNotBeforeField:
224 errStr = QSslSocket::tr(
"The certificate's notBefore field contains an invalid time");
226 case InvalidNotAfterField:
227 errStr = QSslSocket::tr(
"The certificate's notAfter field contains an invalid time");
229 case SelfSignedCertificate:
230 errStr = QSslSocket::tr(
"The certificate is self-signed, and untrusted");
232 case SelfSignedCertificateInChain:
233 errStr = QSslSocket::tr(
"The root certificate of the certificate chain is self-signed, and untrusted");
235 case UnableToGetLocalIssuerCertificate:
236 errStr = QSslSocket::tr(
"The issuer certificate of a locally looked up certificate could not be found");
238 case UnableToVerifyFirstCertificate:
239 errStr = QSslSocket::tr(
"No certificates could be verified");
241 case InvalidCaCertificate:
242 errStr = QSslSocket::tr(
"One of the CA certificates is invalid");
244 case PathLengthExceeded:
245 errStr = QSslSocket::tr(
"The basicConstraints path length parameter has been exceeded");
248 errStr = QSslSocket::tr(
"The supplied certificate is unsuitable for this purpose");
250 case CertificateUntrusted:
251 errStr = QSslSocket::tr(
"The root CA certificate is not trusted for this purpose");
253 case CertificateRejected:
254 errStr = QSslSocket::tr(
"The root CA certificate is marked to reject the specified purpose");
256 case SubjectIssuerMismatch:
257 errStr = QSslSocket::tr(
"The current candidate issuer certificate was rejected because its"
258 " subject name did not match the issuer name of the current certificate");
260 case AuthorityIssuerSerialNumberMismatch:
261 errStr = QSslSocket::tr(
"The current candidate issuer certificate was rejected because"
262 " its issuer name and serial number was present and did not match the"
263 " authority key identifier of the current certificate");
265 case NoPeerCertificate:
266 errStr = QSslSocket::tr(
"The peer did not present any certificate");
268 case HostNameMismatch:
269 errStr = QSslSocket::tr(
"The host name did not match any of the valid hosts"
270 " for this certificate");
274 case CertificateBlacklisted:
275 errStr = QSslSocket::tr(
"The peer certificate is blacklisted");
277 case OcspNoResponseFound:
278 errStr = QSslSocket::tr(
"No OCSP status response found");
280 case OcspMalformedRequest:
281 errStr = QSslSocket::tr(
"The OCSP status request had invalid syntax");
283 case OcspMalformedResponse:
284 errStr = QSslSocket::tr(
"OCSP response contains an unexpected number of SingleResponse structures");
286 case OcspInternalError:
287 errStr = QSslSocket::tr(
"OCSP responder reached an inconsistent internal state");
290 errStr = QSslSocket::tr(
"OCSP responder was unable to return a status for the requested certificate");
293 errStr = QSslSocket::tr(
"The server requires the client to sign the OCSP request in order to construct a response");
295 case OcspUnauthorized:
296 errStr = QSslSocket::tr(
"The client is not authorized to request OCSP status from this server");
298 case OcspResponseCannotBeTrusted:
299 errStr = QSslSocket::tr(
"OCSP responder's identity cannot be verified");
301 case OcspResponseCertIdUnknown:
302 errStr = QSslSocket::tr(
"The identity of a certificate in an OCSP response cannot be established");
304 case OcspResponseExpired:
305 errStr = QSslSocket::tr(
"The certificate status response has expired");
307 case OcspStatusUnknown:
308 errStr = QSslSocket::tr(
"The certificate's status is unknown");
311 errStr = QSslSocket::tr(
"Unknown error");
336 QtPrivate::QHashCombine hash;
337 seed = hash(seed, key.error());
338 seed = hash(seed, key.certificate());