Below please find a small mod of two files to allow the usage of a
Subject Information Access extension.
Since the actual trament is almost identical with the
Authority Information Access, the routines use the same v2i and i2v
routines.
It may be better taste to remove the 'AUTHORITY_' part of the names.
I leave this to the maintainers :-)
Thanks to Richard for having added the OID into objects.txt yesterday.
*** x509v3/ext_dat.h Fri Feb 16 03:01:12 2001
--- ../../openssl-new/crypto/x509v3/ext_dat.h Tue Oct 9 14:01:48 2001
***************
*** 58,64 ****
/* This file contains a table of "standard" extensions */
extern X509V3_EXT_METHOD v3_bcons, v3_nscert, v3_key_usage, v3_ext_ku;
! extern X509V3_EXT_METHOD v3_pkey_usage_period, v3_sxnet, v3_info;
extern X509V3_EXT_METHOD v3_ns_ia5_list[], v3_alt[], v3_skey_id, v3_akey_id;
extern X509V3_EXT_METHOD v3_crl_num, v3_crl_reason, v3_crl_invdate, v3_cpols,
v3_crld;
extern X509V3_EXT_METHOD v3_ocsp_nonce, v3_ocsp_accresp, v3_ocsp_acutoff;
--- 58,64 ----
/* This file contains a table of "standard" extensions */
extern X509V3_EXT_METHOD v3_bcons, v3_nscert, v3_key_usage, v3_ext_ku;
! extern X509V3_EXT_METHOD v3_pkey_usage_period, v3_sxnet, v3_info, v3_sinfo;
extern X509V3_EXT_METHOD v3_ns_ia5_list[], v3_alt[], v3_skey_id, v3_akey_id;
extern X509V3_EXT_METHOD v3_crl_num, v3_crl_reason, v3_crl_invdate, v3_cpols,
v3_crld;
extern X509V3_EXT_METHOD v3_ocsp_nonce, v3_ocsp_accresp, v3_ocsp_acutoff;
***************
*** 93,98 ****
--- 93,99 ----
&v3_crl_invdate,
&v3_sxnet,
&v3_info,
+ &v3_sinfo,
&v3_ocsp_nonce,
&v3_ocsp_crlid,
&v3_ocsp_accresp,
*** x509v3/v3_info.c Fri Feb 23 14:01:13 2001
--- ../../openssl-new/crypto/x509v3/v3_info.c Tue Oct 9 15:53:33 2001
***************
*** 78,83 ****
--- 78,92 ----
0,0,
NULL};
+ X509V3_EXT_METHOD v3_sinfo =
+ { NID_sinfo_access, X509V3_EXT_MULTILINE, ASN1_ITEM_ref(AUTHORITY_INFO_ACCESS),
+ 0,0,0,0,
+ 0,0,
+ (X509V3_EXT_I2V)i2v_AUTHORITY_INFO_ACCESS,
+ (X509V3_EXT_V2I)v2i_AUTHORITY_INFO_ACCESS,
+ 0,0,
+ NULL};
+
ASN1_SEQUENCE(ACCESS_DESCRIPTION) = {
ASN1_SIMPLE(ACCESS_DESCRIPTION, method, ASN1_OBJECT),
ASN1_SIMPLE(ACCESS_DESCRIPTION, location, GENERAL_NAME)
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]