| 59 | } |
| 60 | |
| 61 | static 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 | |
| 80 | static void fiber_accept(ACL_FIBER *, void *ctx) |
| 81 | { |
no test coverage detected
searching dependent graphs…