Add NOTBEFORE and NOTAFTER command options similar to what is

already available in LDAP.
This commit is contained in:
Todd C. Miller
2017-02-18 15:35:48 -07:00
parent 3b19d05fe9
commit e5dee1557e
29 changed files with 2719 additions and 1812 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011-2016 Todd C. Miller <Todd.Miller@courtesan.com>
* Copyright (c) 2011-2017 Todd C. Miller <Todd.Miller@courtesan.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -481,6 +481,19 @@ sudo_debug_exit_ssize_t_v1(const char *func, const char *file, int line,
"<- %s @ %s:%d := %zd", func, file, line, ret);
}
void
sudo_debug_exit_time_t_v1(const char *func, const char *file, int line,
int subsys, time_t ret)
{
#if SIZEOF_TIME_T == 8
sudo_debug_printf2(NULL, NULL, 0, subsys | SUDO_DEBUG_TRACE,
"<- %s @ %s:%d := %lld", func, file, line, (long long)ret);
#else
sudo_debug_printf2(NULL, NULL, 0, subsys | SUDO_DEBUG_TRACE,
"<- %s @ %s:%d := %d", func, file, line, (int)ret);
#endif
}
void
sudo_debug_exit_bool_v1(const char *func, const char *file, int line,
int subsys, bool ret)