equal
deleted
inserted
replaced
322 return false; |
322 return false; |
323 } |
323 } |
324 |
324 |
325 // Check if the certificate matches the private key. |
325 // Check if the certificate matches the private key. |
326 if (!q_SSL_CTX_check_private_key(ctx)) { |
326 if (!q_SSL_CTX_check_private_key(ctx)) { |
327 q->setErrorString(QSslSocket::tr("Private key does not certificate public key, %1").arg(SSL_ERRORSTR())); |
327 q->setErrorString(QSslSocket::tr("Private key does not certify public key, %1").arg(SSL_ERRORSTR())); |
328 emit q->error(QAbstractSocket::UnknownSocketError); |
328 emit q->error(QAbstractSocket::UnknownSocketError); |
329 return false; |
329 return false; |
330 } |
330 } |
331 } |
331 } |
332 |
332 |