#include "kdb5_ldap_util.h"
#include "kdb5_ldap_list.h"
#include "ldap_tkt_policy.h"
+extern time_t get_date(char *); /* kadmin/cli/getdate.o */
static void print_policy_params(krb5_ldap_policy_params *policyparams, int mask);
static char *strdur(time_t duration);
-/* get_date() function used from src/kadmin/ldap_util/getdate.c */
-
extern char *yes;
-
/*
* This function will create a ticket policy object with the
* specified attributes.
if (++i > argc - 1)
goto err_usage;
- date = get_date(argv[i], NULL);
+ date = get_date(argv[i]);
if (date == (time_t)(-1)) {
retval = EINVAL;
com_err (me, retval, "while providing time specification");
if (++i > argc - 1)
goto err_usage;
- date = get_date(argv[i], NULL);
+ date = get_date(argv[i]);
if (date == (time_t)(-1)) {
retval = EINVAL;
com_err (me, retval, "while providing time specification");
if (++i > argc - 1)
goto err_usage;
- date = get_date(argv[i], NULL);
+ date = get_date(argv[i]);
if (date == (time_t)(-1)) {
retval = EINVAL;
com_err (me, retval, "while providing time specification");
if (++i > argc - 1)
goto err_usage;
- date = get_date(argv[i], NULL);
+ date = get_date(argv[i]);
if (date == (time_t)(-1)) {
retval = EINVAL;
com_err (me, retval, "while providing time specification");
#include "kdb5_ldap_util.h"
#include "kdb5_ldap_list.h"
#include <ldap_principal.h>
+extern time_t get_date(char *); /* kadmin/cli/getdate.o */
char *yes = "yes\n"; /* \n to compare against result of fgets */
krb5_key_salt_tuple def_kslist = {ENCTYPE_DES_CBC_CRC, KRB5_KDB_SALTTYPE_NORMAL};
if (!strcmp(argv[*i], "-maxtktlife")) {
if (++(*i) > argc-1)
goto err_usage;
- date = get_date(argv[*i], NULL);
+ date = get_date(argv[*i]);
if (date == (time_t)(-1)) {
retval = EINVAL;
com_err (me, retval, "while providing time specification");
if (++(*i) > argc-1)
goto err_usage;
- date = get_date(argv[*i], NULL);
+ date = get_date(argv[*i]);
if (date == (time_t)(-1)) {
retval = EINVAL;
com_err (me, retval, "while providing time specification");