193QString QSslError::errorString()
const
198 errStr = QSslSocket::tr(
"No error");
200 case UnableToGetIssuerCertificate:
201 errStr = QSslSocket::tr(
"The issuer certificate could not be found");
203 case UnableToDecryptCertificateSignature:
204 errStr = QSslSocket::tr(
"The certificate signature could not be decrypted");
206 case UnableToDecodeIssuerPublicKey:
207 errStr = QSslSocket::tr(
"The public key in the certificate could not be read");
209 case CertificateSignatureFailed:
210 errStr = QSslSocket::tr(
"The signature of the certificate is invalid");
212 case CertificateNotYetValid:
213 errStr = QSslSocket::tr(
"The certificate is not yet valid");
215 case CertificateExpired:
216 errStr = QSslSocket::tr(
"The certificate has expired");
218 case InvalidNotBeforeField:
219 errStr = QSslSocket::tr(
"The certificate's notBefore field contains an invalid time");
221 case InvalidNotAfterField:
222 errStr = QSslSocket::tr(
"The certificate's notAfter field contains an invalid time");
224 case SelfSignedCertificate:
225 errStr = QSslSocket::tr(
"The certificate is self-signed, and untrusted");
227 case SelfSignedCertificateInChain:
228 errStr = QSslSocket::tr(
"The root certificate of the certificate chain is self-signed, and untrusted");
230 case UnableToGetLocalIssuerCertificate:
231 errStr = QSslSocket::tr(
"The issuer certificate of a locally looked up certificate could not be found");
233 case UnableToVerifyFirstCertificate:
234 errStr = QSslSocket::tr(
"No certificates could be verified");
236 case InvalidCaCertificate:
237 errStr = QSslSocket::tr(
"One of the CA certificates is invalid");
239 case PathLengthExceeded:
240 errStr = QSslSocket::tr(
"The basicConstraints path length parameter has been exceeded");
243 errStr = QSslSocket::tr(
"The supplied certificate is unsuitable for this purpose");
245 case CertificateUntrusted:
246 errStr = QSslSocket::tr(
"The root CA certificate is not trusted for this purpose");
248 case CertificateRejected:
249 errStr = QSslSocket::tr(
"The root CA certificate is marked to reject the specified purpose");
251 case SubjectIssuerMismatch:
252 errStr = QSslSocket::tr(
"The current candidate issuer certificate was rejected because its"
253 " subject name did not match the issuer name of the current certificate");
255 case AuthorityIssuerSerialNumberMismatch:
256 errStr = QSslSocket::tr(
"The current candidate issuer certificate was rejected because"
257 " its issuer name and serial number was present and did not match the"
258 " authority key identifier of the current certificate");
260 case NoPeerCertificate:
261 errStr = QSslSocket::tr(
"The peer did not present any certificate");
263 case HostNameMismatch:
264 errStr = QSslSocket::tr(
"The host name did not match any of the valid hosts"
265 " for this certificate");
269 case CertificateBlacklisted:
270 errStr = QSslSocket::tr(
"The peer certificate is blacklisted");
272 case OcspNoResponseFound:
273 errStr = QSslSocket::tr(
"No OCSP status response found");
275 case OcspMalformedRequest:
276 errStr = QSslSocket::tr(
"The OCSP status request had invalid syntax");
278 case OcspMalformedResponse:
279 errStr = QSslSocket::tr(
"OCSP response contains an unexpected number of SingleResponse structures");
281 case OcspInternalError:
282 errStr = QSslSocket::tr(
"OCSP responder reached an inconsistent internal state");
285 errStr = QSslSocket::tr(
"OCSP responder was unable to return a status for the requested certificate");
288 errStr = QSslSocket::tr(
"The server requires the client to sign the OCSP request in order to construct a response");
290 case OcspUnauthorized:
291 errStr = QSslSocket::tr(
"The client is not authorized to request OCSP status from this server");
293 case OcspResponseCannotBeTrusted:
294 errStr = QSslSocket::tr(
"OCSP responder's identity cannot be verified");
296 case OcspResponseCertIdUnknown:
297 errStr = QSslSocket::tr(
"The identity of a certificate in an OCSP response cannot be established");
299 case OcspResponseExpired:
300 errStr = QSslSocket::tr(
"The certificate status response has expired");
302 case OcspStatusUnknown:
303 errStr = QSslSocket::tr(
"The certificate's status is unknown");
306 errStr = QSslSocket::tr(
"Unknown error");
330 QtPrivate::QHashCombine hash(seed);
331 seed = hash(seed, key.error());
332 seed = hash(seed, key.certificate());