"Fossies" - the Fresh Open Source Software Archive

Member "openssl-1.0.2r/doc/crypto/X509_STORE_set_verify_cb_func.pod" (26 Feb 2019, 1383 Bytes) of package /linux/misc/openssl-1.0.2r.tar.gz:

Caution: As a special service "Fossies" has tried to format the requested pod source page into HTML format but links to other pod pages may be missing or even errorneous. Alternatively you can here view or download the uninterpreted pod source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.


X509_STORE_set_verify_cb_func, X509_STORE_set_verify_cb - set verification callback


 #include <openssl/x509_vfy.h>

 void X509_STORE_set_verify_cb(X509_STORE *st,
                                int (*verify_cb)(int ok, X509_STORE_CTX *ctx));

 void X509_STORE_set_verify_cb_func(X509_STORE *st,
                                int (*verify_cb)(int ok, X509_STORE_CTX *ctx));


X509_STORE_set_verify_cb() sets the verification callback of ctx to verify_cb overwriting any existing callback.

X509_STORE_set_verify_cb_func() also sets the verification callback but it is implemented as a macro.


The verification callback from an X509_STORE is inherited by the corresponding X509_STORE_CTX structure when it is initialized. This can be used to set the verification callback when the X509_STORE_CTX is otherwise inaccessible (for example during S/MIME verification).


The macro version of this function was the only one available before OpenSSL 1.0.0.


X509_STORE_set_verify_cb() and X509_STORE_set_verify_cb_func() do not return a value.


X509_STORE_CTX_set_verify_cb(3) CMS_verify(3)


X509_STORE_set_verify_cb_func() is available in all versions of SSLeay and OpenSSL.

X509_STORE_set_verify_cb() was added to OpenSSL 1.0.0.