Given a path to a file, return the last time it was accessed (in seconds) */
| 221 | |
| 222 | /* Given a path to a file, return the last time it was accessed (in seconds) */ |
| 223 | time_t getLastModifiedTime(const char* path){ |
| 224 | struct stat path_stat; |
| 225 | stat(path, &path_stat); |
| 226 | |
| 227 | #ifdef __APPLE__ |
| 228 | return path_stat.st_mtimespec.tv_sec; |
| 229 | #else |
| 230 | return path_stat.st_mtime; |
| 231 | #endif |
| 232 | } |
| 233 | |
| 234 | /* Create a *base* SSL_CTX using the SSL configuration provided. The base context |
| 235 | * includes everything that's common for both client-side and server-side connections. |
no test coverage detected