Re: Re: Using X509 get ext d2i

2005-03-11 Thread Peter Sylvester
> > > > Is there somewhere I can look at the correct code to check the DNS name > > in a subjectAltName? > > > > Not in the OpenSSL core code but it isn't hard. You just have to loop through > the GENERAL_NAME STACK and look for a type GEN_DNS and check the dNSName field > of those. > in curl,

Re: Re: Using X509 get ext d2i

2005-03-11 Thread Dr. Stephen Henson
On Fri, Mar 11, 2005, Doug Sauder wrote: > > Thanks for the reply. > > Is there somewhere I can look at the correct code to check the DNS name > in a subjectAltName? > Not in the OpenSSL core code but it isn't hard. You just have to loop through the GENERAL_NAME STACK and look for a type GEN_D

Re: Re: Using X509 get ext d2i

2005-03-11 Thread Doug Sauder
Thanks for the reply. Is there somewhere I can look at the correct code to check the DNS name in a subjectAltName? -- Doug Sauder "Dr. Stephen Henson" <[EMAIL PROTECTED]> wrote on 03/11/2005, 01:32:29 PM: > On Fri, Mar 11, 2005, [EMAIL PROTECTED] wrote: > > > > > Looking at the OpenSSL source

Re: Using X509 get ext d2i

2005-03-11 Thread Dr. Stephen Henson
On Fri, Mar 11, 2005, [EMAIL PROTECTED] wrote: > > Looking at the OpenSSL source code, I believe that the caller must free > the struct that X509_get_ext_d2i returns. What function should I call > to free the returned struct? > > My code looks like this: > > X509_EXTENSION* ext = 0; >