Introduce limits to prevent malicious keys being able to
[oweals/openssl.git] / crypto / asn1 / a_meth.c
index 0beb958aa6544cc2aad75402063a006fa163a524..50bea917e38be7f89c0a647336ace6ff3d4c6a29 100644 (file)
@@ -1,5 +1,5 @@
 /* crypto/asn1/a_meth.c */
-/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
  * This package is an SSL implementation written
 
 #include <stdio.h>
 #include "cryptlib.h"
-#include "buffer.h"
-#include "x509.h"
+#include <openssl/buffer.h>
+#include <openssl/asn1.h>
 
 static  ASN1_METHOD ia5string_meth={
-       (int (*)())     i2d_ASN1_IA5STRING,
-       (char *(*)())   d2i_ASN1_IA5STRING,
-       (char *(*)())   ASN1_STRING_new,
-       (void (*)())    ASN1_STRING_free};
+       (I2D_OF(void))  i2d_ASN1_IA5STRING,
+       (D2I_OF(void))  d2i_ASN1_IA5STRING,
+       (void *(*)(void))ASN1_STRING_new,
+       (void (*)(void *))ASN1_STRING_free};
 
 static  ASN1_METHOD bit_string_meth={
-       (int (*)())     i2d_ASN1_BIT_STRING,
-       (char *(*)())   d2i_ASN1_BIT_STRING,
-       (char *(*)())   ASN1_STRING_new,
-       (void (*)())    ASN1_STRING_free};
+       (I2D_OF(void))  i2d_ASN1_BIT_STRING,
+       (D2I_OF(void))  d2i_ASN1_BIT_STRING,
+       (void *(*)(void))ASN1_STRING_new,
+       (void (*)(void *))ASN1_STRING_free};
 
-ASN1_METHOD *ASN1_IA5STRING_asn1_meth()
+ASN1_METHOD *ASN1_IA5STRING_asn1_meth(void)
        {
        return(&ia5string_meth);
        }
 
-ASN1_METHOD *ASN1_BIT_STRING_asn1_meth()
+ASN1_METHOD *ASN1_BIT_STRING_asn1_meth(void)
        {
        return(&bit_string_meth);
        }