Add an extra 'raw' function r2i to the extension code. Nothing uses this yet and
authorDr. Stephen Henson <steve@openssl.org>
Sat, 6 Mar 1999 02:34:07 +0000 (02:34 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 6 Mar 1999 02:34:07 +0000 (02:34 +0000)
it is just a place holder for functionality to be added later. Its been added
now so the X509V3_EXT_METHOD structure shouldn't (hopefully) have to change
after the release.

crypto/x509v3/v3_akey.c
crypto/x509v3/v3_alt.c
crypto/x509v3/v3_bcons.c
crypto/x509v3/v3_enum.c
crypto/x509v3/v3_extku.c
crypto/x509v3/v3_int.c
crypto/x509v3/v3_pku.c
crypto/x509v3/v3_skey.c
crypto/x509v3/x509v3.h

index ab488f936d9ff416b34adb0d3ffbf09f2ca34886..8bee98cc18fa69519e11daf84b118e5b5010203a 100644 (file)
@@ -83,7 +83,7 @@ i2d_AUTHORITY_KEYID,
 NULL, NULL,
 (X509V3_EXT_I2V)i2v_AUTHORITY_KEYID,
 (X509V3_EXT_V2I)v2i_AUTHORITY_KEYID,
-NULL,
+NULL,NULL,
 NULL
 };
 
index 7f02dfc6b43cd7e8f2f2b3eb160baa1da17c6920..3adf50966867f13ecd98360c6ce7f8d145b66af8 100644 (file)
@@ -82,7 +82,7 @@ i2d_GENERAL_NAMES,
 NULL, NULL,
 (X509V3_EXT_I2V)i2v_GENERAL_NAMES,
 (X509V3_EXT_V2I)v2i_subject_alt,
-NULL, NULL},
+NULL, NULL, NULL},
 { NID_issuer_alt_name, 0,
 (X509V3_EXT_NEW)GENERAL_NAMES_new,
 GENERAL_NAMES_free,
@@ -91,7 +91,7 @@ i2d_GENERAL_NAMES,
 NULL, NULL,
 (X509V3_EXT_I2V)i2v_GENERAL_NAMES,
 (X509V3_EXT_V2I)v2i_issuer_alt,
-NULL, NULL},
+NULL, NULL, NULL},
 EXT_END
 };
 
index 1a33778e010eb1ad316e9f16f930b410d609e413..ddd5a66a20970eb28d62c8913db51e2d11a83fc4 100644 (file)
@@ -84,7 +84,7 @@ i2d_BASIC_CONSTRAINTS,
 NULL, NULL,
 (X509V3_EXT_I2V)i2v_BASIC_CONSTRAINTS,
 (X509V3_EXT_V2I)v2i_BASIC_CONSTRAINTS,
-NULL,
+NULL,NULL,
 NULL
 };
 
index 835bde919f278ad2b2a46358b15557d318904f9a..8c0b37ce860d74939d0dc952fa0177dec0b5359b 100644 (file)
@@ -81,7 +81,7 @@ NID_crl_reason, 0,
 i2d_ASN1_ENUMERATED,
 (X509V3_EXT_I2S)i2s_ASN1_ENUMERATED_TABLE,
 (X509V3_EXT_S2I)NULL,
-NULL, NULL, NULL, (char *)crl_reasons};
+NULL, NULL, NULL, NULL, (char *)crl_reasons};
 
 
 static ASN1_ENUMERATED *asn1_enumerated_new()
index 7a6bbf69c297aa7a035dae9839ee6590fde0dde9..aa8fe1e5a6de2ce69f96f995def9e20025996127 100644 (file)
@@ -80,7 +80,7 @@ i2d_ext_ku,
 NULL, NULL,
 (X509V3_EXT_I2V)i2v_ext_ku,
 (X509V3_EXT_V2I)v2i_ext_ku,
-NULL,
+NULL,NULL,
 NULL
 };
 
index 199ba104c87b0fa9afe2846004141556640491ce..03b1c2539a6d5baffb111c5a771f887f652d3d64 100644 (file)
@@ -69,7 +69,7 @@ NID_crl_number, 0,
 i2d_ASN1_INTEGER,
 (X509V3_EXT_I2S)i2s_ASN1_INTEGER,
 (X509V3_EXT_S2I)NULL,
-NULL, NULL, NULL, NULL};
+NULL, NULL, NULL, NULL, NULL};
 
 
 static ASN1_INTEGER *asn1_integer_new()
index c3808cce7a017a59ad1f5c1b02c560c3caf5f9a7..a602191c55ecfadb3d27c2f8678de5c31c664066 100644 (file)
@@ -81,7 +81,7 @@ PKEY_USAGE_PERIOD_free,
 (X509V3_EXT_D2I)d2i_PKEY_USAGE_PERIOD,
 i2d_PKEY_USAGE_PERIOD,
 NULL, NULL, NULL, NULL,
-(X509V3_EXT_I2R)i2r_PKEY_USAGE_PERIOD,
+(X509V3_EXT_I2R)i2r_PKEY_USAGE_PERIOD, NULL,
 NULL
 };
 
index c9402e6ccaeb6f45484cde6e8fb150d30d73c49c..20c9c2c5e31d3e46fbaf672d0e1a9bff49ac65b5 100644 (file)
@@ -76,7 +76,7 @@ NID_subject_key_identifier, 0,
 i2d_ASN1_OCTET_STRING,
 (X509V3_EXT_I2S)i2s_ASN1_OCTET_STRING,
 (X509V3_EXT_S2I)s2i_skey_id,
-NULL, NULL, NULL, NULL};
+NULL, NULL, NULL, NULL, NULL};
 
 
 static ASN1_OCTET_STRING *octet_string_new(void)
index 1f25fc8f86b3e3078a0ae0ad411de9f08bc10825..282732e8ef422473f795342a38c049462e582e95 100644 (file)
@@ -80,6 +80,7 @@ typedef char * (*X509V3_EXT_V2I)(struct v3_ext_method *method, struct v3_ext_ctx
 typedef char * (*X509V3_EXT_I2S)(struct v3_ext_method *method, char *ext);
 typedef char * (*X509V3_EXT_S2I)(struct v3_ext_method *method, struct v3_ext_ctx *ctx, char *str);
 typedef int (*X509V3_EXT_I2R)(struct v3_ext_method *method, char *ext, BIO *out);
+typedef char *(*X509V3_EXT_R2I)(struct v3_ext_method *method, char *db, char *value);
 
 /* V3 extension structure */
 
@@ -99,8 +100,9 @@ X509V3_EXT_S2I s2i;
 X509V3_EXT_I2V i2v;
 X509V3_EXT_V2I v2i;
 
-/* The following is used for raw extensions */
+/* The following are used for raw extensions */
 X509V3_EXT_I2R i2r;
+X509V3_EXT_R2I r2i;    /* Doesn't do anything *YET* */
 
 char *usr_data;        /* Any extension specific data */
 };
@@ -184,7 +186,7 @@ union {
                        NULL, NULL, \
                        (X509V3_EXT_I2V)i2v_ASN1_BIT_STRING, \
                        (X509V3_EXT_V2I)v2i_ASN1_BIT_STRING, \
-                       NULL, \
+                       NULL, NULL, \
                        (char *)table}
 
 #define EXT_IA5STRING(nid) { nid, 0, \
@@ -193,11 +195,11 @@ union {
                        i2d_ASN1_IA5STRING, \
                        (X509V3_EXT_I2S)i2s_ASN1_IA5STRING, \
                        (X509V3_EXT_S2I)s2i_ASN1_IA5STRING, \
-                       NULL, NULL, NULL, \
+                       NULL, NULL, NULL, NULL, \
                        NULL}
 
 #define EXT_END { -1, 0, NULL, NULL, NULL, NULL, NULL, NULL, \
-                        NULL, NULL, NULL, \
+                        NULL, NULL, NULL, NULL, \
                         NULL}
 
 #ifndef NOPROTO