mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 00:49:46 +02:00
fixed cert chain verification and samples
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include "Poco/Net/StringPartSource.h"
|
||||
#include "Poco/Net/SSLManager.h"
|
||||
#include "Poco/Net/ConsoleCertificateHandler.h"
|
||||
#include "Poco/Net/PrivateKeyPassphraseHandler.h"
|
||||
#include "Poco/SharedPtr.h"
|
||||
#include "Poco/Path.h"
|
||||
#include "Poco/Exception.h"
|
||||
@@ -83,7 +84,7 @@ int main(int argc, char** argv)
|
||||
// Note: we must create the passphrase handler prior Context
|
||||
SharedPtr<InvalidCertificateHandler> pCert = new ConsoleCertificateHandler(false); // ask the user via console
|
||||
Context::Ptr pContext = new Context(Context::CLIENT_USE, "");
|
||||
SSLManager::instance().initializeClient(pCert, pContext);
|
||||
SSLManager::instance().initializeClient(0, pCert, pContext);
|
||||
|
||||
MailMessage message;
|
||||
message.setSender(sender);
|
||||
|
Reference in New Issue
Block a user