Manual fixes after copyright consolidation
[openssl.git] / crypto / ocsp / ocsp_err.c
1 /*
2  * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the OpenSSL license (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9
10 /*
11  * NOTE: this file was auto generated by the mkerr.pl script: any changes
12  * made to it will be overwritten when the script next updates this file,
13  * only reason strings will be preserved.
14  */
15
16 #include <stdio.h>
17 #include <openssl/err.h>
18 #include <openssl/ocsp.h>
19
20 /* BEGIN ERROR CODES */
21 #ifndef OPENSSL_NO_ERR
22
23 # define ERR_FUNC(func) ERR_PACK(ERR_LIB_OCSP,func,0)
24 # define ERR_REASON(reason) ERR_PACK(ERR_LIB_OCSP,0,reason)
25
26 static ERR_STRING_DATA OCSP_str_functs[] = {
27     {ERR_FUNC(OCSP_F_ASN1_STRING_ENCODE), "ASN1_STRING_encode"},
28     {ERR_FUNC(OCSP_F_D2I_OCSP_NONCE), "d2i_ocsp_nonce"},
29     {ERR_FUNC(OCSP_F_OCSP_BASIC_ADD1_STATUS), "OCSP_basic_add1_status"},
30     {ERR_FUNC(OCSP_F_OCSP_BASIC_SIGN), "OCSP_basic_sign"},
31     {ERR_FUNC(OCSP_F_OCSP_BASIC_VERIFY), "OCSP_basic_verify"},
32     {ERR_FUNC(OCSP_F_OCSP_CERT_ID_NEW), "OCSP_cert_id_new"},
33     {ERR_FUNC(OCSP_F_OCSP_CHECK_DELEGATED), "ocsp_check_delegated"},
34     {ERR_FUNC(OCSP_F_OCSP_CHECK_IDS), "ocsp_check_ids"},
35     {ERR_FUNC(OCSP_F_OCSP_CHECK_ISSUER), "ocsp_check_issuer"},
36     {ERR_FUNC(OCSP_F_OCSP_CHECK_VALIDITY), "OCSP_check_validity"},
37     {ERR_FUNC(OCSP_F_OCSP_MATCH_ISSUERID), "ocsp_match_issuerid"},
38     {ERR_FUNC(OCSP_F_OCSP_PARSE_URL), "OCSP_parse_url"},
39     {ERR_FUNC(OCSP_F_OCSP_REQUEST_SIGN), "OCSP_request_sign"},
40     {ERR_FUNC(OCSP_F_OCSP_REQUEST_VERIFY), "OCSP_request_verify"},
41     {ERR_FUNC(OCSP_F_OCSP_RESPONSE_GET1_BASIC), "OCSP_response_get1_basic"},
42     {ERR_FUNC(OCSP_F_OCSP_SENDREQ_BIO), "OCSP_sendreq_bio"},
43     {ERR_FUNC(OCSP_F_OCSP_SENDREQ_NBIO), "OCSP_sendreq_nbio"},
44     {ERR_FUNC(OCSP_F_PARSE_HTTP_LINE1), "parse_http_line1"},
45     {ERR_FUNC(OCSP_F_REQUEST_VERIFY), "REQUEST_VERIFY"},
46     {0, NULL}
47 };
48
49 static ERR_STRING_DATA OCSP_str_reasons[] = {
50     {ERR_REASON(OCSP_R_BAD_DATA), "bad data"},
51     {ERR_REASON(OCSP_R_CERTIFICATE_VERIFY_ERROR), "certificate verify error"},
52     {ERR_REASON(OCSP_R_DIGEST_ERR), "digest err"},
53     {ERR_REASON(OCSP_R_ERROR_IN_NEXTUPDATE_FIELD),
54      "error in nextupdate field"},
55     {ERR_REASON(OCSP_R_ERROR_IN_THISUPDATE_FIELD),
56      "error in thisupdate field"},
57     {ERR_REASON(OCSP_R_ERROR_PARSING_URL), "error parsing url"},
58     {ERR_REASON(OCSP_R_MISSING_OCSPSIGNING_USAGE),
59      "missing ocspsigning usage"},
60     {ERR_REASON(OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE),
61      "nextupdate before thisupdate"},
62     {ERR_REASON(OCSP_R_NOT_BASIC_RESPONSE), "not basic response"},
63     {ERR_REASON(OCSP_R_NO_CERTIFICATES_IN_CHAIN), "no certificates in chain"},
64     {ERR_REASON(OCSP_R_NO_CONTENT), "no content"},
65     {ERR_REASON(OCSP_R_NO_PUBLIC_KEY), "no public key"},
66     {ERR_REASON(OCSP_R_NO_RESPONSE_DATA), "no response data"},
67     {ERR_REASON(OCSP_R_NO_REVOKED_TIME), "no revoked time"},
68     {ERR_REASON(OCSP_R_NO_SIGNER_KEY), "no signer key"},
69     {ERR_REASON(OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE),
70      "private key does not match certificate"},
71     {ERR_REASON(OCSP_R_REQUEST_NOT_SIGNED), "request not signed"},
72     {ERR_REASON(OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA),
73      "response contains no revocation data"},
74     {ERR_REASON(OCSP_R_ROOT_CA_NOT_TRUSTED), "root ca not trusted"},
75     {ERR_REASON(OCSP_R_SERVER_READ_ERROR), "server read error"},
76     {ERR_REASON(OCSP_R_SERVER_RESPONSE_ERROR), "server response error"},
77     {ERR_REASON(OCSP_R_SERVER_RESPONSE_PARSE_ERROR),
78      "server response parse error"},
79     {ERR_REASON(OCSP_R_SERVER_WRITE_ERROR), "server write error"},
80     {ERR_REASON(OCSP_R_SIGNATURE_FAILURE), "signature failure"},
81     {ERR_REASON(OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND),
82      "signer certificate not found"},
83     {ERR_REASON(OCSP_R_STATUS_EXPIRED), "status expired"},
84     {ERR_REASON(OCSP_R_STATUS_NOT_YET_VALID), "status not yet valid"},
85     {ERR_REASON(OCSP_R_STATUS_TOO_OLD), "status too old"},
86     {ERR_REASON(OCSP_R_UNKNOWN_MESSAGE_DIGEST), "unknown message digest"},
87     {ERR_REASON(OCSP_R_UNKNOWN_NID), "unknown nid"},
88     {ERR_REASON(OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE),
89      "unsupported requestorname type"},
90     {0, NULL}
91 };
92
93 #endif
94
95 void ERR_load_OCSP_strings(void)
96 {
97 #ifndef OPENSSL_NO_ERR
98
99     if (ERR_func_error_string(OCSP_str_functs[0].error) == NULL) {
100         ERR_load_strings(0, OCSP_str_functs);
101         ERR_load_strings(0, OCSP_str_reasons);
102     }
103 #endif
104 }