Thanks much Steve!

--- "Dr. Stephen Henson" <[EMAIL PROTECTED]> wrote:

> On Fri, Oct 05, 2007, Shanku Roy wrote:
> 
> > Hello,
> >       I am looking for a way to obtain the "SSL *"
> > handle on the app_verify_callback menthod on
> > SSL_CTX/ssl_ctx_st struct; currently, the function
> > looks like:
> > 
> > struct ssl_ctx_st
> >         {
> > ----------
> >         /* if defined, these override the
> > X509_verify_cert() calls */
> >         int (*app_verify_callback)(X509_STORE_CTX
> *,
> > void *);
> >         void *app_verify_arg;
> >         /* before OpenSSL 0.9.
> > ----------
> >         };
> > 
> > Ideally I want it to be like following with one
> extra
> > parameter for "SSL *" handle:
> > 
> > int (*app_verify_callback)(SSL *s, X509_STORE_CTX
> *,
> > void *);
> > 
> > Is there a way I can obtain the "SSL *" handle
> from
> > the existing data structs and APIs/functions.
> > 
> 
> You can retrieve it using the ex_data functions.
> This should work:
> 
> SSL *s = X509_STORE_CTX_get_ex_data(ctx,
>                                                                       
> SSL_get_ex_data_X509_STORE_CTX_idx());
> 
> 
> Steve.
> --
> Dr Stephen N. Henson. Email, S/MIME and PGP keys:
> see homepage
> OpenSSL project core developer and freelance
> consultant.
> Funding needed! Details on homepage.
> Homepage: http://www.drh-consultancy.demon.co.uk
>
______________________________________________________________________
> OpenSSL Project                                
> http://www.openssl.org
> User Support Mailing List                   
> openssl-users@openssl.org
> Automated List Manager                          
> [EMAIL PROTECTED]
> 



       
____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to