Index: asn1_time_t.c
--- asn1_time_t.c.orig
+++ asn1_time_t.c
@@ -14,6 +14,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include <string.h>
 #include <time.h>
 
 #include <openssl/ssl.h>
@@ -22,7 +23,7 @@
 
 /* Returns the wall time in the specified time zone. */
 time_t
-asn1_time_to_timestamp(ASN1_TIME *as)
+asn1_time_to_timestamp(const ASN1_TIME *as)
 {
 #define B2I(byte)	((byte) - '0')
 /* offset from GMT has to be in seconds - format +HHMM */
