Set scheduled flag
| 291 | |
| 292 | // Set scheduled flag |
| 293 | int |
| 294 | set_schedule(const std::string &commonName, bool flag) |
| 295 | { |
| 296 | int ret = -1; |
| 297 | TSMutexLock(list_mutex); |
| 298 | auto iter = cnDataMap.find(commonName); |
| 299 | if (iter != cnDataMap.end()) { |
| 300 | iter->second->scheduled = flag; |
| 301 | ret = 0; |
| 302 | } |
| 303 | TSMutexUnlock(list_mutex); |
| 304 | return ret; |
| 305 | } |
| 306 | }; |
| 307 | |
| 308 | // Flag for dynamic cert generation |
no test coverage detected