fuzzer: initialize client context of the ssl manager
clientsession_fuzzer: ./net/Ssl.hpp:114: static ssl::CertificateVerification ssl::Manager::getClientVerification(): Assertion `isClientContextInitialized() && "client context must be initialized"' failed. #8 0x55885edfdc36 in ssl::Manager::getClientVerification() /home/vmiklos/git/collaboraonline/online-fuzz/./net/Ssl.hpp:114:9 #9 0x55885eded51b in ClientSession::loadDocument(char const*, int, StringVector const&, std::shared_ptr<DocumentBroker> const&) /home/vmiklos/git/collaboraonline/online-fuzz/wsd/ClientSession.cpp:1276:13 #10 0x55885edd3436 in ClientSession::_handleInput(char const*, int) /home/vmiklos/git/collaboraonline/online-fuzz/wsd/ClientSession.cpp:686:16 #11 0x55885f1fd1ca in Session::handleMessage(std::vector<char, std::allocator<char>> const&) /home/vmiklos/git/collaboraonline/online-fuzz/common/Session.cpp:288:13 Signed-off-by: Miklos Vajna <vmiklos@collabora.com> Change-Id: If7f346af0e6293bf042c9b211e4efe2dfedbd642
This commit is contained in:
parent
7a5e8508d3
commit
f543a1da9d
2 changed files with 5 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
|||
|
||||
#include "config.h"
|
||||
#include <Log.hpp>
|
||||
#include <Ssl.hpp>
|
||||
|
||||
namespace fuzzer
|
||||
{
|
||||
|
@ -25,6 +26,9 @@ bool DoInitialization()
|
|||
bool logToFile = false;
|
||||
std::map<std::string, std::string> logProperties;
|
||||
Log::initialize("wsd", logLevel, withColor, logToFile, logProperties);
|
||||
ssl::Manager::initializeClientContext(
|
||||
/*certificateFile=*/"", /*privateKeyFile=*/"", /*caLocation=*/"",
|
||||
/*cipherList=*/"", ssl::CertificateVerification::Required);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
load [
|
Loading…
Reference in a new issue