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