diff options
Diffstat (limited to 'doc/crypto/X509_STORE_CTX_set_verify_cb.pod')
-rw-r--r-- | doc/crypto/X509_STORE_CTX_set_verify_cb.pod | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/crypto/X509_STORE_CTX_set_verify_cb.pod b/doc/crypto/X509_STORE_CTX_set_verify_cb.pod index ba35a38474..e89b8060f7 100644 --- a/doc/crypto/X509_STORE_CTX_set_verify_cb.pod +++ b/doc/crypto/X509_STORE_CTX_set_verify_cb.pod @@ -2,14 +2,19 @@ =head1 NAME -X509_STORE_CTX_set_verify_cb - set verification callback +X509_STORE_CTX_get_verify_cb, +X509_STORE_CTX_set_verify_cb - get and set verification callback =head1 SYNOPSIS #include <openssl/x509_vfy.h> + typedef int (*X509_STORE_CTX_verify_cb)(int, X509_STORE_CTX *); + + X509_STORE_CTX_verify_cb X509_STORE_CTX_get_verify_cb(X509_STORE_CTX *ctx); + void X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx, - int (*verify_cb)(int ok, X509_STORE_CTX *ctx)); + X509_STORE_CTX_verify_cb verify_cb); =head1 DESCRIPTION @@ -35,6 +40,9 @@ structure and receive additional information about the error, for example by calling X509_STORE_CTX_get_current_cert(). Additional application data can be passed to the callback via the B<ex_data> mechanism. +X509_STORE_CTX_get_verify_cb() returns the value of the current callback +for the specific B<ctx>. + =head1 WARNING In general a verification callback should B<NOT> unconditionally return 1 in |