| 50 | }; |
| 51 | |
| 52 | int |
| 53 | SSLNetProcessor::start(int, size_t stacksize) |
| 54 | { |
| 55 | // This initialization order matters ... |
| 56 | SSLInitializeLibrary(); |
| 57 | SSLClientCoordinator::startup(); |
| 58 | SSLPostConfigInitialize(); |
| 59 | |
| 60 | if (!SSLCertificateConfig::startup()) { |
| 61 | return -1; |
| 62 | } |
| 63 | SSLTicketKeyConfig::startup(); |
| 64 | |
| 65 | // Initialize SSL statistics. This depends on an initial set of certificates being loaded above. |
| 66 | SSLInitializeStatistics(); |
| 67 | |
| 68 | if (SSLConfigParams::ssl_ocsp_enabled) { |
| 69 | EventType ET_OCSP = eventProcessor.spawn_event_threads("ET_OCSP", 1, stacksize); |
| 70 | Continuation *cont = new OCSPContinuation(); |
| 71 | // schedule the update initially to get things populated |
| 72 | eventProcessor.schedule_imm(cont, ET_OCSP); |
| 73 | eventProcessor.schedule_every(cont, HRTIME_SECONDS(SSLConfigParams::ssl_ocsp_update_period), ET_OCSP); |
| 74 | } |
| 75 | |
| 76 | // We have removed the difference between ET_SSL threads and ET_NET threads, |
| 77 | // So just keep on chugging |
| 78 | return 0; |
| 79 | } |
| 80 | |
| 81 | NetAccept * |
| 82 | SSLNetProcessor::createNetAccept(const NetProcessor::AcceptOptions &opt) |
nothing calls this directly
no test coverage detected