c++ - Poco SecureServerSocket without SSLManager -


i want use poco secureserversocket construktor context, got exception: ssl exception: error:140c5042:ssl routines:ssl_undefined_function:called function should not call

i don't want use sslmanager. code:

socketaddress sendsockadr2("127.0.0.1", 8080);     poco::net::initializessl();     context::ptr pcontext = new poco::net::context(                             poco::net::context::client_use, "", "", "cacert.pem",                             poco::net::context::verify_relaxed, 9, true,                             "all:!adh:!low:!exp:!md5:@strength");     secureserversocket sendsecsrv2(sendsockadr2,64,pcontext);        

i have bad flag in context...i had client_use instead of server_use...now works

socketaddress sendsockadr2("127.0.0.1", 8080); poco::net::initializessl(); context::ptr pcontext = new poco::net::context(                         poco::net::context::server_use, "", "", "cacert.pem",                         poco::net::context::verify_relaxed, 9, true,                         "all:!adh:!low:!exp:!md5:@strength"); secureserversocket sendsecsrv2(sendsockadr2,64,pcontext);      

Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -