Support for inhibitAnyPolicy extension.
[openssl.git] / crypto / x509v3 / v3_int.c
index f34cbfb7315cfa2fc3e49f1deb68e1ed9bfd953e..a352f68a993e71cef904b5a3b3e372f2a82fc8a4 100644 (file)
@@ -3,7 +3,7 @@
  * project 1999.
  */
 /* ====================================================================
- * Copyright (c) 1999 The OpenSSL Project.  All rights reserved.
+ * Copyright (c) 1999-2004 The OpenSSL Project.  All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
 #include <openssl/x509v3.h>
 
 X509V3_EXT_METHOD v3_crl_num = { 
-NID_crl_number, 0, ASN1_ITEM_ref(ASN1_INTEGER),
-0,0,0,0,
-(X509V3_EXT_I2S)i2s_ASN1_INTEGER,
-0,
-0,0,0,0, NULL};
+       NID_crl_number, 0, ASN1_ITEM_ref(ASN1_INTEGER),
+       0,0,0,0,
+       (X509V3_EXT_I2S)i2s_ASN1_INTEGER,
+       0,
+       0,0,0,0, NULL};
+
+void * s2i_asn1_int(X509V3_EXT_METHOD *meth, X509V3_CTX *ctx, char *value)
+       {
+       return s2i_ASN1_INTEGER(meth, value);
+       }
+
+X509V3_EXT_METHOD v3_inhibit_anyp = { 
+       NID_inhibit_any_policy, 0, ASN1_ITEM_ref(ASN1_INTEGER),
+       0,0,0,0,
+       (X509V3_EXT_I2S)i2s_ASN1_INTEGER,
+       (X509V3_EXT_S2I)s2i_asn1_int,
+       0,0,0,0, NULL};
+