| 143 | } |
| 144 | |
| 145 | static void |
| 146 | add_cipher_stat(const char *cipherName, const std::string &statName) |
| 147 | { |
| 148 | // If not already registered ... |
| 149 | if (cipherName && cipher_map.find(cipherName) == cipher_map.end()) { |
| 150 | Metrics::Counter::AtomicType *metric = Metrics::Counter::createPtr(statName); |
| 151 | |
| 152 | cipher_map.emplace(cipherName, metric); |
| 153 | Dbg(dbg_ctl_ssl, "registering SSL cipher metric '%s'", statName.c_str()); |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | void |
| 158 | SSLInitializeStatistics() |
no test coverage detected