SSL_CTX_set_cert_verify_callback vs. SSL_CTX_set_verify

Posted by BreakPoint on Stack Overflow See other posts from Stack Overflow or by BreakPoint
Published on 2010-04-28T12:11:19Z Indexed on 2010/04/28 12:13 UTC
Read the original article Hit count: 221

Filed under:
|
|
|

Hello,

Can anyone tell me what is the difference between SSL_CTX_set_cert_verify_callback and SSL_CTX_set_verify? From OpenSSL docs:

SSL_CTX_set_cert_verify_callback() sets the verification callback function for ctx. SSL objects that are created from ctx inherit the setting valid at the time when SSL_new(3) is called.

and:

SSL_CTX_set_verify() sets the verification flags for ctx to be mode and specifies the verify_callback function to be used. If no callback function shall be specified, the NULL pointer can be used for verify_callback.

So I'm trying to understand which callback to send for each one (from client side).

Thanks experts.

© Stack Overflow or respective owner

Related posts about openssl

Related posts about callback