83QSslDiffieHellmanParameters QSslDiffieHellmanParameters::fromEncoded(
const QByteArray &encoded, QSsl::EncodingFormat encoding)
85 QSslDiffieHellmanParameters result;
86 const auto *tlsBackend = QSslSocketPrivate::tlsBackendInUse();
91 result.d->initFromDer(encoded);
94 result.d->initFromPem(encoded);
232QString QSslDiffieHellmanParameters::errorString()
const noexcept
235 case QSslDiffieHellmanParameters::NoError:
236 return QCoreApplication::translate(
"QSslDiffieHellmanParameter",
"No error");
237 case QSslDiffieHellmanParameters::InvalidInputDataError:
238 return QCoreApplication::translate(
"QSslDiffieHellmanParameter",
"Invalid input data");
239 case QSslDiffieHellmanParameters::UnsafeParametersError:
240 return QCoreApplication::translate(
"QSslDiffieHellmanParameter",
"The given Diffie-Hellman parameters are deemed unsafe");
243 Q_UNREACHABLE_RETURN(QString());
298QDebug operator<<(QDebug debug,
const QSslDiffieHellmanParameters &dhparam)
300 QDebugStateSaver saver(debug);
301 debug.resetFormat().nospace();
302 debug <<
"QSslDiffieHellmanParameters(" << dhparam.d->derData.toBase64() <<
')';