MCPcopy Create free account
hub / github.com/acl-dev/acl / ssl_init

Function ssl_init

lib_fiber/samples-c++/https_server/main.cpp:61–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61static void ssl_init(acl::sslbase_conf& conf, const acl::string& crt,
62 const acl::string& key)
63{
64 conf.enable_cache(1);
65
66 if (!conf.add_cert(crt)) {
67 printf("load %s error\r\n", crt.c_str());
68 exit (1);
69 }
70
71 if (!conf.set_key(key)) {
72 printf("set_key %s error\r\n", key.c_str());
73 exit (1);
74 }
75
76 printf(">>> ssl_init ok, ssl_crt: %s, ssl_key: %s\r\n",
77 crt.c_str(), key.c_str());
78}
79
80static void fiber_accept(ACL_FIBER *, void *ctx)
81{

Callers 1

fiber_acceptFunction · 0.70

Calls 4

enable_cacheMethod · 0.45
add_certMethod · 0.45
c_strMethod · 0.45
set_keyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…