This is a multi-part message in MIME format.

------_=_NextPart_001_01C824FD.40A64337
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Hi,
=20
In an application we are using the certificate authentication to validate=
the user and am using X509 certificates for this authentication. To read=
these certificates am using the open-ssl functions in my code.
My requirement is to get the value of the extension from the configuration=
file for each CA (certificate authority). That's the reason am using the=
below function to get the value of the extension and my code looks like as=
below.
=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
STACK_OF(GENERAL_NAME) *altnames;
int nid=3D0;
nid=3DOBJ_sn2nid(trimmedExtensionName);
altnames =3D (STACK_OF(GENERAL_NAME) *)X509_get_ext_d2i(cert, nid, NULL,=
NULL);
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D
=20
In some cases the function X509_get_ext_d2i function is executing=
successfully and in some case it is failing and when it fails the total=
system is crashing. We are unable to decide why it is failing sometimes.=
Please let me know if anybody faced the same problems or anybody aware of=
this function.
=20
Regards
Sunil.
=20
=20
=20
=20



The information contained in this electronic message and any attachments to=
this message are intended for the exclusive use of the addressee(s) and=
may contain proprietary, confidential or privileged information. If you=
are not the intended recipient, you should not disseminate, distribute or=
copy this e-mail. Please notify the sender immediately and destroy all=
copies of this message and any attachments.=20

WARNING: Computer viruses can be transmitted via email. The recipient=
should check this email and any attachments for the presence of viruses.=
The company accepts no liability for any damage caused by any virus=
transmitted by this email.
=20
www.wipro.com
------_=_NextPart_001_01C824FD.40A64337
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable





Hi,

 

In an application we are using the=
certificate authentication to validate the user and am
=3DArial size=3D2> using X509 certificates for this authentication. To=
read these certificates am using the open-ssl functions in my=
code.

My requirement is to get the value of the=
extension from the configuration file for each  CA (certificate=
authority). That's the reason am using the below function to get the value=
of the extension and my code looks like as below.

 

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

STACK_OF(GENERAL_NAME) *altnames;

int nid=3D0;

nid=3DOBJ_sn2nid(trimmedExtensionName);

altnames =3D (STACK_OF(GENERAL_NAME) *)X509_get_ext_d2i(cert, nid,=
NULL, NULL);

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D

 

    In some cases the=
function X509_get_ext_d2i =
function is executing successfully and in some case it is failing and when=
it fails the total system is crashing. We are unable to decide why it=
is failing sometimes. Please let me know if anybody faced the same=
problems or anybody aware of this function.

 

Regards

Sunil.

 

     =

 

 



The information contained in this electronic message and any attachments to=
this message are intended for the exclusive use of the addressee(s) and=
may contain proprietary, confidential or privileged information. If you=
are not the intended recipient, you should not disseminate, distribute or=
copy this e-mail. Please notify the sender immediately and destroy all=
copies of this message and any attachments.



WARNING: Computer viruses can be transmitted via email. The recipient=
should check this email and any attachments for the presence of viruses.=
The company accepts no liability for any damage caused by any virus=
transmitted by this email.



www.wipro.com


------_=_NextPart_001_01C824FD.40A64337--
__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majordomo@openssl.org