New function X509V3_add_i2d() this is used for
[openssl.git] / crypto / x509v3 / v3_int.c
index 33239dd6c09db8fd8493c84c478e1cbc041190ba..473a9868a6390d117e47ccb5e0c390f4b473a06e 100644 (file)
 #include "cryptlib.h"
 #include <openssl/x509v3.h>
 
-static ASN1_INTEGER *asn1_integer_new();
-
 X509V3_EXT_METHOD v3_crl_num = { 
-NID_crl_number, 0,
-(X509V3_EXT_NEW)asn1_integer_new, ASN1_STRING_free,
-(X509V3_EXT_D2I)d2i_ASN1_INTEGER,
-i2d_ASN1_INTEGER,
+NID_crl_number, 0, &ASN1_INTEGER_it,
+0,0,0,0,
 (X509V3_EXT_I2S)i2s_ASN1_INTEGER,
-(X509V3_EXT_S2I)NULL,
-NULL, NULL, NULL, NULL, NULL};
-
+0,
+0,0,0,0, NULL};
 
-static ASN1_INTEGER *asn1_integer_new(void)
-{
-       return ASN1_INTEGER_new();
-}