.Dd $Mdocdate: November 4 2016 $ .Dt X509_STORE_SET_VERIFY_CB_FUNC 3 .Os .Sh NAME .Nm X509_STORE_set_verify_cb_func , .Nm X509_STORE_set_verify_cb .Nd set verification callback .Sh SYNOPSIS .In openssl/x509_vfy.h .Ft void .Fo X509_STORE_set_verify_cb .Fa "X509_STORE *st" .Fa "int (*verify_cb)(int ok, X509_STORE_CTX *ctx)" .Fc .Ft void .Fo X509_STORE_set_verify_cb_func .Fa "X509_STORE *st" .Fa "int (*verify_cb)(int ok, X509_STORE_CTX *ctx)" .Fc .Sh DESCRIPTION .Fn X509_STORE_set_verify_cb sets the verification callback of .Sy ctx to .Sy verify_cb overwriting any existing callback. .Pp .Fn X509_STORE_set_verify_cb_func also sets the verification callback but it is implemented as a macro. .Pp The verification callback from an .Vt X509_STORE is inherited by the corresponding .Vt X509_STORE_CTX structure when it is initialized. This can be used to set the verification callback when the .Vt X509_STORE_CTX is otherwise inaccessible (for example during S/MIME verification). .Sh RETURN VALUES .Fn X509_STORE_set_verify_cb and .Fn X509_STORE_set_verify_cb_func do not return a value. .Sh SEE ALSO .Xr X509_STORE_CTX_set_verify_cb 3 .Sh HISTORY .Fn X509_STORE_set_verify_cb_func is available in all versions of SSLeay and OpenSSL. .Pp .Fn X509_STORE_set_verify_cb was added to OpenSSL 1.0.0. .Sh BUGS The macro version of this function was the only one available before OpenSSL 1.0.0.