Avoid converting void * to a function pointer when NULL is defined as
[openssl.git] / crypto / x509v3 / v3_int.c
index 03b1c2539a6d5baffb111c5a771f887f652d3d64..63c201e5f409163169e218e7fd4a9d6e85a613d9 100644 (file)
 
 #include <stdio.h>
 #include "cryptlib.h"
 
 #include <stdio.h>
 #include "cryptlib.h"
-#include "x509v3.h"
-
-static ASN1_INTEGER *asn1_integer_new();
+#include <openssl/x509v3.h>
 
 X509V3_EXT_METHOD v3_crl_num = { 
 NID_crl_number, 0,
 
 X509V3_EXT_METHOD v3_crl_num = { 
 NID_crl_number, 0,
-(X509V3_EXT_NEW)asn1_integer_new, ASN1_STRING_free,
+(X509V3_EXT_NEW)ASN1_INTEGER_new,
+(X509V3_EXT_FREE)ASN1_INTEGER_free,
 (X509V3_EXT_D2I)d2i_ASN1_INTEGER,
 (X509V3_EXT_D2I)d2i_ASN1_INTEGER,
-i2d_ASN1_INTEGER,
+(X509V3_EXT_I2D)i2d_ASN1_INTEGER,
 (X509V3_EXT_I2S)i2s_ASN1_INTEGER,
 (X509V3_EXT_I2S)i2s_ASN1_INTEGER,
-(X509V3_EXT_S2I)NULL,
+(X509V3_EXT_S2I)0,
 NULL, NULL, NULL, NULL, NULL};
 
 NULL, NULL, NULL, NULL, NULL};
 
-
-static ASN1_INTEGER *asn1_integer_new()
-{
-       return ASN1_INTEGER_new();
-}