mirror of
https://github.com/QuasarApp/qca.git
synced 2025-04-26 11:34:32 +00:00
tlsunittest: Fix memory leak
This commit is contained in:
parent
e23bf00919
commit
5d027c8012
@ -57,7 +57,7 @@ void TLSUnitTest::testCipherList()
|
||||
if(!QCA::isSupported("tls", QStringLiteral("qca-ossl")))
|
||||
QWARN("TLS not supported for qca-ossl");
|
||||
else {
|
||||
QCA::TLS *tls = new QCA::TLS(QCA::TLS::Stream, nullptr, QStringLiteral("qca-ossl"));
|
||||
QScopedPointer<QCA::TLS> tls(new QCA::TLS(QCA::TLS::Stream, nullptr, QStringLiteral("qca-ossl")));
|
||||
QStringList cipherList = tls->supportedCipherSuites(QCA::TLS::TLS_v1);
|
||||
QVERIFY( cipherList.contains(QStringLiteral("TLS_DHE_RSA_WITH_AES_256_CBC_SHA")) );
|
||||
QVERIFY( cipherList.contains(QStringLiteral("TLS_RSA_WITH_AES_256_CBC_SHA")) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user