]> WPIA git - cassiopeia.git/blobdiff - src/config.cpp
upd: Add max validity period to profile configurations
[cassiopeia.git] / src / config.cpp
index e88ec2bee52e3331a9c67ea13777964832826c41..ce78f417582a8a8049389f18435279cde60b7fa8 100644 (file)
@@ -87,6 +87,7 @@ int parseProfiles() {
         prof.id = std::stoi( id );
         prof.eku = map->at( "eku" );
         prof.ku = map->at( "ku" );
+        prof.maxValidity = std::stoi( map->at( "days" ) ) * /* DAYS */24 * 60 * 60;
 
         std::string cas = map->at( "ca" );