Re: SSL_CTX 's app_verify_callback .... what for is this..??
On Wed, Aug 22, 2001 at 10:09:12AM -0400, Aslam wrote: > What do u suggest on this, Openssl is not compatible with C++ code..?? Any > work arounds for this..?? I don't see a problem. The header files have the necessary #ifdef __cplusplus extern "C" { #endif wrapping. So what you are going to supply is a callback int app_verify_callback(X509_STORE_CTX *ctx) { ... } WARNING: Steve Henson put quite some effort into writing/extending OpenSSL's internal verification mechanisms. I would strongly recommend to stay with these routines unless you have a very special reason. Best regards, Lutz -- Lutz Jaenicke [EMAIL PROTECTED] BTU Cottbus http://www.aet.TU-Cottbus.DE/personen/jaenicke/ Lehrstuhl Allgemeine Elektrotechnik Tel. +49 355 69-4129 Universitaetsplatz 3-4, D-03044 Cottbus Fax. +49 355 69-4153 __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
RE: SSL_CTX 's app_verify_callback .... what for is this..??
Hi, What do u suggest on this, Openssl is not compatible with C++ code..?? Any work arounds for this..?? Thanks Aslam -Original Message- From: Lutz Jaenicke [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 21, 2001 2:49 PM To: [EMAIL PROTECTED] Subject: Re: SSL_CTX 's app_verify_callback what for is this..?? On Tue, Aug 21, 2001 at 02:39:19PM -0400, Aslam wrote: > But from ssl.h, it seems that app_verify_callback prototype should be like > int (*app_verify_callback)(); > Then how to pass SSL_CTX to app_verify_callback Please grep for "app_verify_callback" in openssl/ssl/*.[ch] and see what I mean. Please note, that "func()" in C means: no prototype, arguments are not checked. (In C++, func() means no arguments -> in C func(void).) Best regards, Lutz PS. I wrote X509_STORE_CTX, not SSL_CTX, even though that does not matter with respect to the discussion above. -- Lutz Jaenicke [EMAIL PROTECTED] BTU Cottbus http://www.aet.TU-Cottbus.DE/personen/jaenicke/ Lehrstuhl Allgemeine Elektrotechnik Tel. +49 355 69-4129 Universitaetsplatz 3-4, D-03044 Cottbus Fax. +49 355 69-4153 __ 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]
SSL_CTX 's app_verify_callback .... what for is this..??
Hi, I have a doubt about SSL_CTX 's app_verify_callback member variable. What for is this ? It seems that it this is set by using SSL_CTX_set_cert_verify_callback(SSL_CTX* ctx, int(*cb)(), char* arg), then cb() get called instead of X509_verify_cert(). Aslo what it looks that the int(*cb)() does not have any passed parameters, then how is it going to work. Any one has any ideas about it. Thanks Aslam __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]