mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 02:53:10 +01:00
Remove trailing whitespace (#3668)
This commit is contained in:
@@ -46,7 +46,7 @@ public:
|
||||
{
|
||||
Poco::Net::initializeSSL();
|
||||
}
|
||||
|
||||
|
||||
~SSLInitializer()
|
||||
{
|
||||
Poco::Net::uninitializeSSL();
|
||||
@@ -72,16 +72,16 @@ int main(int argc, char** argv)
|
||||
std::cerr << " using a secure connection to the SMTP server at <mailhost>." << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
std::string mailhost(argv[1]);
|
||||
std::string sender(argv[2]);
|
||||
std::string recipient(argv[3]);
|
||||
std::string username(argc >= 5 ? argv[4] : "");
|
||||
std::string password(argc >= 6 ? argv[5] : "");
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
// Note: we must create the passphrase handler prior Context
|
||||
// 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, "", "", "", Context::VERIFY_RELAXED, 9, true, "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH");
|
||||
SSLManager::instance().initializeClient(0, pCert, pContext);
|
||||
@@ -98,7 +98,7 @@ int main(int argc, char** argv)
|
||||
std::string logo(reinterpret_cast<const char*>(PocoLogo), sizeof(PocoLogo));
|
||||
message.addContent(new StringPartSource(content));
|
||||
message.addAttachment("logo", new StringPartSource(logo, "image/gif"));
|
||||
|
||||
|
||||
SecureSMTPClientSession session(mailhost);
|
||||
session.login();
|
||||
session.startTLS(pContext);
|
||||
|
||||
Reference in New Issue
Block a user