# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2026-06-05 06:51+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" # #-#-#-#-# archlinux: X509_STORE_CTX_set_verify_cb.3ssl.pot (PACKAGE VERSION) #-#-#-#-# # #. #-#-#-#-# archlinux: X509_STORE_CTX_set_verify_cb.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# debian-trixie: X509_STORE_CTX_set_verify_cb.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #. #-#-#-#-# debian-unstable: X509_STORE_CTX_set_verify_cb.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Title" msgstr "" # #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #: archlinux #, no-wrap msgid "X509_STORE_CTX_SET_VERIFY_CB 3ssl" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "X509_STORE_CTX_SET_VERIFY_CB" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "2026-04-07" msgstr "" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "3.6.2" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "OpenSSL" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "X509_STORE_CTX_get_cleanup, X509_STORE_CTX_get_lookup_crls, " "X509_STORE_CTX_get_lookup_certs, X509_STORE_CTX_get_check_policy, " "X509_STORE_CTX_get_cert_crl, X509_STORE_CTX_get_check_crl, " "X509_STORE_CTX_get_get_crl, X509_STORE_CTX_set_get_crl, " "X509_STORE_CTX_get_check_revocation, X509_STORE_CTX_get_check_issued, " "X509_STORE_CTX_get_get_issuer, X509_STORE_CTX_get_verify_cb, " "X509_STORE_CTX_set_verify_cb, X509_STORE_CTX_verify_cb, " "X509_STORE_CTX_print_verify_cb, X509_STORE_CTX_set_current_reasons \\&- get " "and set X509_STORE_CTX components such as verification callback" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Header" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& #include Eopenssl/x509_vfy.hE\n" "\\&\n" "\\& typedef int (*X509_STORE_CTX_verify_cb)(int, X509_STORE_CTX *);\n" "\\& int X509_STORE_CTX_print_verify_cb(int ok, X509_STORE_CTX *ctx);\n" "\\&\n" "\\& X509_STORE_CTX_verify_cb X509_STORE_CTX_get_verify_cb(X509_STORE_CTX *ctx);\n" "\\&\n" "\\& void X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx,\n" "\\& X509_STORE_CTX_verify_cb verify_cb);\n" "\\&\n" "\\& X509_STORE_CTX_get_issuer_fn X509_STORE_CTX_get_get_issuer(X509_STORE_CTX *ctx);\n" "\\& X509_STORE_CTX_check_issued_fn X509_STORE_CTX_get_check_issued(X509_STORE_CTX *ctx);\n" "\\& X509_STORE_CTX_check_revocation_fn X509_STORE_CTX_get_check_revocation(X509_STORE_CTX *ctx);\n" "\\&\n" "\\& X509_STORE_CTX_get_crl_fn X509_STORE_CTX_get_get_crl(X509_STORE_CTX *ctx);\n" "\\&\n" "\\& void X509_STORE_CTX_set_get_crl(X509_STORE_CTX *ctx,\n" "\\& X509_STORE_CTX_get_crl_fn get_crl);\n" "\\&\n" "\\& X509_STORE_CTX_check_crl_fn X509_STORE_CTX_get_check_crl(X509_STORE_CTX *ctx);\n" "\\& X509_STORE_CTX_cert_crl_fn X509_STORE_CTX_get_cert_crl(X509_STORE_CTX *ctx);\n" "\\& X509_STORE_CTX_check_policy_fn X509_STORE_CTX_get_check_policy(X509_STORE_CTX *ctx);\n" "\\& X509_STORE_CTX_lookup_certs_fn X509_STORE_CTX_get_lookup_certs(X509_STORE_CTX *ctx);\n" "\\& X509_STORE_CTX_lookup_crls_fn X509_STORE_CTX_get_lookup_crls(X509_STORE_CTX *ctx);\n" "\\& X509_STORE_CTX_cleanup_fn X509_STORE_CTX_get_cleanup(X509_STORE_CTX *ctx);\n" "\\& void X509_STORE_CTX_set_current_reasons(X509_STORE_CTX *ctx,\n" "\\& unsigned int current_reasons);\n" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B sets the verification callback of " "B to \\&B overwriting any existing callback." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The verification callback can be used to customise the operation of " "certificate verification, for instance by overriding error conditions or " "logging errors for debugging purposes." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "However, a verification callback is B essential and the default " "operation is often sufficient." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B parameter to the callback indicates the value the callback should " "return to retain the default behaviour. If it is zero then an error " "condition is indicated. If it is 1 then no error occurred. If the flag " "\\&B is set then B is set to 2 to indicate " "the policy checking is complete." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B parameter to the callback is the B structure that " "is performing the verification operation. A callback can examine this " "structure and receive additional information about the error, for example by " "calling B. Additional application data " "can be passed to the callback via the B mechanism." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B is a verification callback function " "that, when a certificate verification has failed, adds an entry to the error " "queue with code B and with " "diagnostic details, including the most relevant fields of the target " "certificate that failed to verify and, if appropriate, of the available " "untrusted and trusted certificates." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B returns the value of the current " "callback for the specific B." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B, " "\\&B, " "B, " "\\&B, B, " "\\&B, B, " "\\&B, B " "and B return the function pointers cached from " "the corresponding B, please see \\&B\\|" "(3) for more information." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B sets the function to get the crl for a " "given certificate I. When found, the crl must be assigned to I<*crl>. " "This function must return 0 on failure and 1 on success. \\&I" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B is used in conjunction with " "X509_STORE_CTX_get_crl_fn. The X509_STORE_CTX_get_crl_fn callback must use " "this method to set the reason why the certificate is invalid." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "WARNINGS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "In general a verification callback should B unconditionally return 1 in " "all circumstances because this will allow verification to succeed no matter " "what the error. This effectively removes all security from the application " "because B certificate (including untrusted generated ones) will be " "accepted." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "NOTES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The verification callback can be set and inherited from the parent structure " "performing the operation. In some cases (such as S/MIME verification) the " "\\&B structure is created and destroyed internally and the " "only way to set a custom verification callback is by inheriting it from the " "associated B." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "RETURN VALUES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "\\&B does not return a value." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EXAMPLES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Default callback operation:" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& int verify_callback(int ok, X509_STORE_CTX *ctx) {\n" "\\& return ok;\n" "\\& }\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Simple example, suppose a certificate in the chain is expired and we wish to " "continue after this error:" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& int verify_callback(int ok, X509_STORE_CTX *ctx) {\n" "\\& /* Tolerate certificate expiration */\n" "\\& if (X509_STORE_CTX_get_error(ctx) == X509_V_ERR_CERT_HAS_EXPIRED)\n" "\\& return 1;\n" "\\& /* Otherwise don\\*(Aqt override */\n" "\\& return ok;\n" "\\& }\n" msgstr "" #. type: Plain text #: archlinux msgid "" "More complex example, we don\\*(Aqt wish to continue after B " "certificate has expired just one specific case:" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& int verify_callback(int ok, X509_STORE_CTX *ctx)\n" "\\& {\n" "\\& int err = X509_STORE_CTX_get_error(ctx);\n" "\\& X509 *err_cert = X509_STORE_CTX_get_current_cert(ctx);\n" "\\&\n" "\\& if (err == X509_V_ERR_CERT_HAS_EXPIRED) {\n" "\\& if (check_is_acceptable_expired_cert(err_cert)\n" "\\& return 1;\n" "\\& }\n" "\\& return ok;\n" "\\& }\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Full featured logging callback. In this case the B is assumed to be " "a global logging B, an alternative would to store a BIO in B using " "\\&B." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& int verify_callback(int ok, X509_STORE_CTX *ctx)\n" "\\& {\n" "\\& X509 *err_cert;\n" "\\& int err, depth;\n" "\\&\n" "\\& err_cert = X509_STORE_CTX_get_current_cert(ctx);\n" "\\& err = X509_STORE_CTX_get_error(ctx);\n" "\\& depth = X509_STORE_CTX_get_error_depth(ctx);\n" "\\&\n" "\\& BIO_printf(bio_err, \"depth=%d \", depth);\n" "\\& if (err_cert) {\n" "\\& X509_NAME_print_ex(bio_err, X509_get_subject_name(err_cert),\n" "\\& 0, XN_FLAG_ONELINE);\n" "\\& BIO_puts(bio_err, \"\\en\");\n" "\\& }\n" "\\& else\n" "\\& BIO_puts(bio_err, \"Eno certE\\en\");\n" "\\& if (!ok)\n" "\\& BIO_printf(bio_err, \"verify error:num=%d:%s\\en\", err,\n" "\\& X509_verify_cert_error_string(err));\n" "\\& switch (err) {\n" "\\& case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT:\n" "\\& BIO_puts(bio_err, \"issuer= \");\n" "\\& X509_NAME_print_ex(bio_err, X509_get_issuer_name(err_cert),\n" "\\& 0, XN_FLAG_ONELINE);\n" "\\& BIO_puts(bio_err, \"\\en\");\n" "\\& break;\n" "\\& case X509_V_ERR_CERT_NOT_YET_VALID:\n" "\\& case X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD:\n" "\\& BIO_printf(bio_err, \"notBefore=\");\n" "\\& ASN1_TIME_print(bio_err, X509_get_notBefore(err_cert));\n" "\\& BIO_printf(bio_err, \"\\en\");\n" "\\& break;\n" "\\& case X509_V_ERR_CERT_HAS_EXPIRED:\n" "\\& case X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD:\n" "\\& BIO_printf(bio_err, \"notAfter=\");\n" "\\& ASN1_TIME_print(bio_err, X509_get_notAfter(err_cert));\n" "\\& BIO_printf(bio_err, \"\\en\");\n" "\\& break;\n" "\\& case X509_V_ERR_NO_EXPLICIT_POLICY:\n" "\\& policies_print(bio_err, ctx);\n" "\\& break;\n" "\\& }\n" "\\& if (err == X509_V_OK && ok == 2)\n" "\\& /* print out policies */\n" "\\&\n" "\\& BIO_printf(bio_err, \"verify return:%d\\en\", ok);\n" "\\& return(ok);\n" "\\& }\n" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B\\|(3) \\&B\\|" "(3) \\&B\\|(3)" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "HISTORY" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The \\&B, " "\\&B, " "B, " "\\&B, B, " "\\&B, B, " "\\&B, B " "and B functions were added in OpenSSL 1.1.0." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "\\&B was added in OpenSSL 3.0." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "COPYRIGHT" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Copyright 2009-2023 The OpenSSL Project Authors. All Rights Reserved." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Licensed under the Apache License 2.0 (the \"License\"). You may not use " "this file except in compliance with the License. You can obtain a copy in " "the file LICENSE in the source distribution or at Ehttps://" "www.openssl.org/source/license.htmlE." msgstr "" #. ======================================================================== #. type: IX #: debian-trixie debian-unstable #, no-wrap msgid "X509_STORE_CTX_SET_VERIFY_CB 3SSL" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "3.5.6" msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "More complex example, we don't wish to continue after B certificate has " "expired just one specific case:" msgstr ""