]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/ocsp/ocsp_err.c
Generalize the HTTP client so far implemented mostly in crypto/ocsp/ocsp_ht.c
[thirdparty/openssl.git] / crypto / ocsp / ocsp_err.c
CommitLineData
b6cff313 1/*
0cd0a820 2 * Generated by util/mkerr.pl DO NOT EDIT
cbfa5b03 3 * Copyright 1995-2019 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>
eb64730b 13
cf1b7d96 14#ifndef OPENSSL_NO_ERR
29dc3508 15
52df25cf
RS
16static const ERR_STRING_DATA OCSP_str_reasons[] = {
17 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_CERTIFICATE_VERIFY_ERROR),
18 "certificate verify error"},
19 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_DIGEST_ERR), "digest err"},
20 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_ERROR_IN_NEXTUPDATE_FIELD),
21 "error in nextupdate field"},
22 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_ERROR_IN_THISUPDATE_FIELD),
23 "error in thisupdate field"},
52df25cf
RS
24 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_MISSING_OCSPSIGNING_USAGE),
25 "missing ocspsigning usage"},
26 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE),
27 "nextupdate before thisupdate"},
28 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_NOT_BASIC_RESPONSE),
29 "not basic response"},
30 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_NO_CERTIFICATES_IN_CHAIN),
31 "no certificates in chain"},
32 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_NO_RESPONSE_DATA), "no response data"},
33 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_NO_REVOKED_TIME), "no revoked time"},
34 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_NO_SIGNER_KEY), "no signer key"},
35 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE),
36 "private key does not match certificate"},
37 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_REQUEST_NOT_SIGNED),
38 "request not signed"},
39 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA),
40 "response contains no revocation data"},
41 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_ROOT_CA_NOT_TRUSTED),
42 "root ca not trusted"},
52df25cf
RS
43 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_SIGNATURE_FAILURE), "signature failure"},
44 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND),
45 "signer certificate not found"},
46 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_STATUS_EXPIRED), "status expired"},
47 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_STATUS_NOT_YET_VALID),
48 "status not yet valid"},
49 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_STATUS_TOO_OLD), "status too old"},
50 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_UNKNOWN_MESSAGE_DIGEST),
51 "unknown message digest"},
52 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_UNKNOWN_NID), "unknown nid"},
53 {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE),
54 "unsupported requestorname type"},
0f113f3e
MC
55 {0, NULL}
56};
eb64730b
RL
57
58#endif
59
69588edb 60int ERR_load_OCSP_strings(void)
0f113f3e 61{
47a9d527 62#ifndef OPENSSL_NO_ERR
0cd1b144 63 if (ERR_reason_error_string(OCSP_str_reasons[0].error) == NULL)
52df25cf 64 ERR_load_strings_const(OCSP_str_reasons);
47a9d527 65#endif
69588edb 66 return 1;
0f113f3e 67}