a normal ASN1 time is 13 octets
authorAlan T. DeKok <aland@freeradius.org>
Thu, 13 Jul 2017 15:49:29 +0000 (11:49 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 17 Jul 2017 12:38:31 +0000 (08:38 -0400)
YYMMDDHHMMSSZ

src/main/tls.c

index 6816ce6..3d8b1b5 100644 (file)
@@ -1454,7 +1454,7 @@ static int ocsp_asn1time_to_epoch(time_t *out, char const *asn1)
 
        memset(&t, 0, sizeof(t));
 
-       if ((end - p) <= 12) {
+       if ((end - p) <= 13) {
                if ((end - p) < 2) {
                        fr_strerror_printf("ASN1 date string too short, expected 2 additional bytes, got %zu bytes",
                                           end - p);