Fix memory overrun in rsa padding check functions
[openssl.git] / crypto / asn1 / a_utctm.c
index b88aa4218e11ffa7b01fff090da3c1995adbb5e7..000cd4bd44b18dc1ccaf856400dcc94afccecfa7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
  *
- * Licensed under the OpenSSL license (the "License").  You may not use
+ * Licensed under the Apache License 2.0 (the "License").  You may not use
  * this file except in compliance with the License.  You can obtain a copy
  * in the file LICENSE in the source distribution or at
  * https://www.openssl.org/source/license.html
@@ -9,7 +9,6 @@
 
 #include <stdio.h>
 #include <time.h>
-#include <ctype.h>
 #include "internal/cryptlib.h"
 #include <openssl/asn1.h>
 #include "asn1_locl.h"
@@ -17,7 +16,7 @@
 /* This is the primary function used to parse ASN1_UTCTIME */
 int asn1_utctime_to_tm(struct tm *tm, const ASN1_UTCTIME *d)
 {
-    /* wrapper around ans1_time_to_tm */
+    /* wrapper around asn1_time_to_tm */
     if (d->type != V_ASN1_UTCTIME)
         return 0;
     return asn1_time_to_tm(tm, d);