{
return strict? "fatal (expired)" : "warning (expired)";
}
-/* {
+
+ {
static char buf[35];
const char* unit = "second";
unit = "minute";
}
snprintf(buf, sizeof(buf), "warning (expires in %d %s%s)", time_left, unit, (time_left == 1)?"":"s");
-} */
- /* TODO: check_expiry from pluto is a hack: it returns a buffer to its stack.
- * this is dangerous and may cause crashes! Reimplement this another way!!!
- */
- return "warning (expires in under 30days)";
+
+ /* TODO: This is not thread save and may result in corrupted strings. Rewrite this! */
+ return buf;
+ }
}
/**