1e1051a39Sopenharmony_ci/*
2e1051a39Sopenharmony_ci * Generated by util/mkerr.pl DO NOT EDIT
3e1051a39Sopenharmony_ci * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
4e1051a39Sopenharmony_ci *
5e1051a39Sopenharmony_ci * Licensed under the Apache License 2.0 (the "License").  You may not use
6e1051a39Sopenharmony_ci * this file except in compliance with the License.  You can obtain a copy
7e1051a39Sopenharmony_ci * in the file LICENSE in the source distribution or at
8e1051a39Sopenharmony_ci * https://www.openssl.org/source/license.html
9e1051a39Sopenharmony_ci */
10e1051a39Sopenharmony_ci
11e1051a39Sopenharmony_ci#include <openssl/err.h>
12e1051a39Sopenharmony_ci#include <openssl/ocsperr.h>
13e1051a39Sopenharmony_ci#include "crypto/ocsperr.h"
14e1051a39Sopenharmony_ci
15e1051a39Sopenharmony_ci#ifndef OPENSSL_NO_OCSP
16e1051a39Sopenharmony_ci
17e1051a39Sopenharmony_ci# ifndef OPENSSL_NO_ERR
18e1051a39Sopenharmony_ci
19e1051a39Sopenharmony_cistatic const ERR_STRING_DATA OCSP_str_reasons[] = {
20e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_CERTIFICATE_VERIFY_ERROR),
21e1051a39Sopenharmony_ci    "certificate verify error"},
22e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_DIGEST_ERR), "digest err"},
23e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_DIGEST_NAME_ERR), "digest name err"},
24e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_DIGEST_SIZE_ERR), "digest size err"},
25e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_ERROR_IN_NEXTUPDATE_FIELD),
26e1051a39Sopenharmony_ci    "error in nextupdate field"},
27e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_ERROR_IN_THISUPDATE_FIELD),
28e1051a39Sopenharmony_ci    "error in thisupdate field"},
29e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_MISSING_OCSPSIGNING_USAGE),
30e1051a39Sopenharmony_ci    "missing ocspsigning usage"},
31e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE),
32e1051a39Sopenharmony_ci    "nextupdate before thisupdate"},
33e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_NOT_BASIC_RESPONSE),
34e1051a39Sopenharmony_ci    "not basic response"},
35e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_NO_CERTIFICATES_IN_CHAIN),
36e1051a39Sopenharmony_ci    "no certificates in chain"},
37e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_NO_RESPONSE_DATA), "no response data"},
38e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_NO_REVOKED_TIME), "no revoked time"},
39e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_NO_SIGNER_KEY), "no signer key"},
40e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE),
41e1051a39Sopenharmony_ci    "private key does not match certificate"},
42e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_REQUEST_NOT_SIGNED),
43e1051a39Sopenharmony_ci    "request not signed"},
44e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA),
45e1051a39Sopenharmony_ci    "response contains no revocation data"},
46e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_ROOT_CA_NOT_TRUSTED),
47e1051a39Sopenharmony_ci    "root ca not trusted"},
48e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_SIGNATURE_FAILURE), "signature failure"},
49e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND),
50e1051a39Sopenharmony_ci    "signer certificate not found"},
51e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_STATUS_EXPIRED), "status expired"},
52e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_STATUS_NOT_YET_VALID),
53e1051a39Sopenharmony_ci    "status not yet valid"},
54e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_STATUS_TOO_OLD), "status too old"},
55e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_UNKNOWN_MESSAGE_DIGEST),
56e1051a39Sopenharmony_ci    "unknown message digest"},
57e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_UNKNOWN_NID), "unknown nid"},
58e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE),
59e1051a39Sopenharmony_ci    "unsupported requestorname type"},
60e1051a39Sopenharmony_ci    {0, NULL}
61e1051a39Sopenharmony_ci};
62e1051a39Sopenharmony_ci
63e1051a39Sopenharmony_ci# endif
64e1051a39Sopenharmony_ci
65e1051a39Sopenharmony_ciint ossl_err_load_OCSP_strings(void)
66e1051a39Sopenharmony_ci{
67e1051a39Sopenharmony_ci# ifndef OPENSSL_NO_ERR
68e1051a39Sopenharmony_ci    if (ERR_reason_error_string(OCSP_str_reasons[0].error) == NULL)
69e1051a39Sopenharmony_ci        ERR_load_strings_const(OCSP_str_reasons);
70e1051a39Sopenharmony_ci# endif
71e1051a39Sopenharmony_ci    return 1;
72e1051a39Sopenharmony_ci}
73e1051a39Sopenharmony_ci#else
74e1051a39Sopenharmony_ciNON_EMPTY_TRANSLATION_UNIT
75e1051a39Sopenharmony_ci#endif
76