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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -

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