Rewrite the extension code to use an ASN1_ITEM structure
[openssl.git] / crypto / x509v3 / v3_int.c
index 6c966b3265c4ddb58f18742634d1d5c939040fd1..473a9868a6390d117e47ccb5e0c390f4b473a06e 100644 (file)
  */
 
 #include <stdio.h>
-#include <stdlib.h>
-#include <pem.h>
-#include <err.h>
-#include "x509v3.h"
-
-static ASN1_INTEGER *asn1_integer_new();
+#include "cryptlib.h"
+#include <openssl/x509v3.h>
 
 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};
-
+0,
+0,0,0,0, NULL};
 
-static ASN1_INTEGER *asn1_integer_new()
-{
-       return ASN1_INTEGER_new();
-}