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