1 | /*
|
---|
2 | * Generated by util/mkerr.pl DO NOT EDIT
|
---|
3 | * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Licensed under the OpenSSL license (the "License"). You may not use
|
---|
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
|
---|
9 | */
|
---|
10 |
|
---|
11 | #include <openssl/err.h>
|
---|
12 | #include <openssl/ocsperr.h>
|
---|
13 |
|
---|
14 | #ifndef OPENSSL_NO_ERR
|
---|
15 |
|
---|
16 | static const ERR_STRING_DATA OCSP_str_functs[] = {
|
---|
17 | {ERR_PACK(ERR_LIB_OCSP, OCSP_F_D2I_OCSP_NONCE, 0), "d2i_ocsp_nonce"},
|
---|
18 | {ERR_PACK(ERR_LIB_OCSP, OCSP_F_OCSP_BASIC_ADD1_STATUS, 0),
|
---|
19 | "OCSP_basic_add1_status"},
|
---|
20 | {ERR_PACK(ERR_LIB_OCSP, OCSP_F_OCSP_BASIC_SIGN, 0), "OCSP_basic_sign"},
|
---|
21 | {ERR_PACK(ERR_LIB_OCSP, OCSP_F_OCSP_BASIC_SIGN_CTX, 0),
|
---|
22 | "OCSP_basic_sign_ctx"},
|
---|
23 | {ERR_PACK(ERR_LIB_OCSP, OCSP_F_OCSP_BASIC_VERIFY, 0), "OCSP_basic_verify"},
|
---|
24 | {ERR_PACK(ERR_LIB_OCSP, OCSP_F_OCSP_CERT_ID_NEW, 0), "OCSP_cert_id_new"},
|
---|
25 | {ERR_PACK(ERR_LIB_OCSP, OCSP_F_OCSP_CHECK_DELEGATED, 0),
|
---|
26 | "ocsp_check_delegated"},
|
---|
27 | {ERR_PACK(ERR_LIB_OCSP, OCSP_F_OCSP_CHECK_IDS, 0), "ocsp_check_ids"},
|
---|
28 | {ERR_PACK(ERR_LIB_OCSP, OCSP_F_OCSP_CHECK_ISSUER, 0), "ocsp_check_issuer"},
|
---|
29 | {ERR_PACK(ERR_LIB_OCSP, OCSP_F_OCSP_CHECK_VALIDITY, 0),
|
---|
30 | "OCSP_check_validity"},
|
---|
31 | {ERR_PACK(ERR_LIB_OCSP, OCSP_F_OCSP_MATCH_ISSUERID, 0),
|
---|
32 | "ocsp_match_issuerid"},
|
---|
33 | {ERR_PACK(ERR_LIB_OCSP, OCSP_F_OCSP_PARSE_URL, 0), "OCSP_parse_url"},
|
---|
34 | {ERR_PACK(ERR_LIB_OCSP, OCSP_F_OCSP_REQUEST_SIGN, 0), "OCSP_request_sign"},
|
---|
35 | {ERR_PACK(ERR_LIB_OCSP, OCSP_F_OCSP_REQUEST_VERIFY, 0),
|
---|
36 | "OCSP_request_verify"},
|
---|
37 | {ERR_PACK(ERR_LIB_OCSP, OCSP_F_OCSP_RESPONSE_GET1_BASIC, 0),
|
---|
38 | "OCSP_response_get1_basic"},
|
---|
39 | {ERR_PACK(ERR_LIB_OCSP, OCSP_F_PARSE_HTTP_LINE1, 0), "parse_http_line1"},
|
---|
40 | {0, NULL}
|
---|
41 | };
|
---|
42 |
|
---|
43 | static const ERR_STRING_DATA OCSP_str_reasons[] = {
|
---|
44 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_CERTIFICATE_VERIFY_ERROR),
|
---|
45 | "certificate verify error"},
|
---|
46 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_DIGEST_ERR), "digest err"},
|
---|
47 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_ERROR_IN_NEXTUPDATE_FIELD),
|
---|
48 | "error in nextupdate field"},
|
---|
49 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_ERROR_IN_THISUPDATE_FIELD),
|
---|
50 | "error in thisupdate field"},
|
---|
51 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_ERROR_PARSING_URL), "error parsing url"},
|
---|
52 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_MISSING_OCSPSIGNING_USAGE),
|
---|
53 | "missing ocspsigning usage"},
|
---|
54 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE),
|
---|
55 | "nextupdate before thisupdate"},
|
---|
56 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_NOT_BASIC_RESPONSE),
|
---|
57 | "not basic response"},
|
---|
58 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_NO_CERTIFICATES_IN_CHAIN),
|
---|
59 | "no certificates in chain"},
|
---|
60 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_NO_RESPONSE_DATA), "no response data"},
|
---|
61 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_NO_REVOKED_TIME), "no revoked time"},
|
---|
62 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_NO_SIGNER_KEY), "no signer key"},
|
---|
63 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE),
|
---|
64 | "private key does not match certificate"},
|
---|
65 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_REQUEST_NOT_SIGNED),
|
---|
66 | "request not signed"},
|
---|
67 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA),
|
---|
68 | "response contains no revocation data"},
|
---|
69 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_ROOT_CA_NOT_TRUSTED),
|
---|
70 | "root ca not trusted"},
|
---|
71 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_SERVER_RESPONSE_ERROR),
|
---|
72 | "server response error"},
|
---|
73 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_SERVER_RESPONSE_PARSE_ERROR),
|
---|
74 | "server response parse error"},
|
---|
75 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_SIGNATURE_FAILURE), "signature failure"},
|
---|
76 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND),
|
---|
77 | "signer certificate not found"},
|
---|
78 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_STATUS_EXPIRED), "status expired"},
|
---|
79 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_STATUS_NOT_YET_VALID),
|
---|
80 | "status not yet valid"},
|
---|
81 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_STATUS_TOO_OLD), "status too old"},
|
---|
82 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_UNKNOWN_MESSAGE_DIGEST),
|
---|
83 | "unknown message digest"},
|
---|
84 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_UNKNOWN_NID), "unknown nid"},
|
---|
85 | {ERR_PACK(ERR_LIB_OCSP, 0, OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE),
|
---|
86 | "unsupported requestorname type"},
|
---|
87 | {0, NULL}
|
---|
88 | };
|
---|
89 |
|
---|
90 | #endif
|
---|
91 |
|
---|
92 | int ERR_load_OCSP_strings(void)
|
---|
93 | {
|
---|
94 | #ifndef OPENSSL_NO_ERR
|
---|
95 | if (ERR_func_error_string(OCSP_str_functs[0].error) == NULL) {
|
---|
96 | ERR_load_strings_const(OCSP_str_functs);
|
---|
97 | ERR_load_strings_const(OCSP_str_reasons);
|
---|
98 | }
|
---|
99 | #endif
|
---|
100 | return 1;
|
---|
101 | }
|
---|