mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
genTime: Move validate above normalizer
This commit is contained in:
parent
3705a26f2d
commit
854b6d1839
@ -1469,6 +1469,16 @@ utcTimeValidate(
|
||||
return check_time_syntax(in, 1, parts);
|
||||
}
|
||||
|
||||
static int
|
||||
generalizedTimeValidate(
|
||||
Syntax *syntax,
|
||||
struct berval *in )
|
||||
{
|
||||
int parts[9];
|
||||
|
||||
return check_time_syntax(in, 0, parts);
|
||||
}
|
||||
|
||||
static int
|
||||
generalizedTimeNormalize(
|
||||
Syntax *syntax,
|
||||
@ -1503,16 +1513,6 @@ generalizedTimeNormalize(
|
||||
return LDAP_SUCCESS;
|
||||
}
|
||||
|
||||
static int
|
||||
generalizedTimeValidate(
|
||||
Syntax *syntax,
|
||||
struct berval *in )
|
||||
{
|
||||
int parts[9];
|
||||
|
||||
return check_time_syntax(in, 0, parts);
|
||||
}
|
||||
|
||||
struct syntax_defs_rec {
|
||||
char *sd_desc;
|
||||
int sd_flags;
|
||||
|
Loading…
Reference in New Issue
Block a user