Not sure what the void* parameter is, but here is some docco I did some time
ago. 

Hope it helps.

Jason.

/**************************************** Function Header *********************
**  Function   : cb()
**
**  Description: This is the verification callback function used by SSLeay when
**               checking the validity of certificates.
**
**  Parameters : ok (int)
**               This is passed from the X509 verify function, this is set to
**               what the (SSLeay) verify function would return before the
**               intervention of our callback here.
**
**               xs (X509*)
**               Subjects certificate structure.
**
**               xi (X509*)
**               Issuers certificate structure.
**
**               depth (int)
**               If this is 0, then we are checking the subject certificate.
**               If this is > 0, then we are checking the CA chain.
**
**               arg (char*)
**               Optional arguments for the callback.
**
**  Returns    : If our test on the certificate error passes then we return 1.
**               If our test fails, then we return 0.
******************************************************************************/

cb(int ok,
   X509* xs,
   X509* xi,
   int depth,
   int error,
   char* arg)
{
        ...
}


Alessandro Vesely wrote:
> 
> someone wrote:
> >
> > >
> > > > > Hello,
> > > ...
> > > > You might want to use global variables to guess [...]
> 
> Uh? So what was it all about that extra void* parameter in the cb?
> 
> cheers
> A.
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to