2 * Generated by util/mkerr.pl DO NOT EDIT
3 * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
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
12 #include <openssl/err.h>
13 #include <openssl/ocsp.h>
15 /* BEGIN ERROR CODES */
16 #ifndef OPENSSL_NO_ERR
18 # define ERR_FUNC(func) ERR_PACK(ERR_LIB_OCSP,func,0)
19 # define ERR_REASON(reason) ERR_PACK(ERR_LIB_OCSP,0,reason)
21 static ERR_STRING_DATA OCSP_str_functs
[] = {
22 {ERR_FUNC(OCSP_F_D2I_OCSP_NONCE
), "d2i_ocsp_nonce"},
23 {ERR_FUNC(OCSP_F_OCSP_BASIC_ADD1_STATUS
), "OCSP_basic_add1_status"},
24 {ERR_FUNC(OCSP_F_OCSP_BASIC_SIGN
), "OCSP_basic_sign"},
25 {ERR_FUNC(OCSP_F_OCSP_BASIC_VERIFY
), "OCSP_basic_verify"},
26 {ERR_FUNC(OCSP_F_OCSP_CERT_ID_NEW
), "OCSP_cert_id_new"},
27 {ERR_FUNC(OCSP_F_OCSP_CHECK_DELEGATED
), "ocsp_check_delegated"},
28 {ERR_FUNC(OCSP_F_OCSP_CHECK_IDS
), "ocsp_check_ids"},
29 {ERR_FUNC(OCSP_F_OCSP_CHECK_ISSUER
), "ocsp_check_issuer"},
30 {ERR_FUNC(OCSP_F_OCSP_CHECK_VALIDITY
), "OCSP_check_validity"},
31 {ERR_FUNC(OCSP_F_OCSP_MATCH_ISSUERID
), "ocsp_match_issuerid"},
32 {ERR_FUNC(OCSP_F_OCSP_PARSE_URL
), "OCSP_parse_url"},
33 {ERR_FUNC(OCSP_F_OCSP_REQUEST_SIGN
), "OCSP_request_sign"},
34 {ERR_FUNC(OCSP_F_OCSP_REQUEST_VERIFY
), "OCSP_request_verify"},
35 {ERR_FUNC(OCSP_F_OCSP_RESPONSE_GET1_BASIC
), "OCSP_response_get1_basic"},
36 {ERR_FUNC(OCSP_F_PARSE_HTTP_LINE1
), "parse_http_line1"},
40 static ERR_STRING_DATA OCSP_str_reasons
[] = {
41 {ERR_REASON(OCSP_R_CERTIFICATE_VERIFY_ERROR
), "certificate verify error"},
42 {ERR_REASON(OCSP_R_DIGEST_ERR
), "digest err"},
43 {ERR_REASON(OCSP_R_ERROR_IN_NEXTUPDATE_FIELD
),
44 "error in nextupdate field"},
45 {ERR_REASON(OCSP_R_ERROR_IN_THISUPDATE_FIELD
),
46 "error in thisupdate field"},
47 {ERR_REASON(OCSP_R_ERROR_PARSING_URL
), "error parsing url"},
48 {ERR_REASON(OCSP_R_MISSING_OCSPSIGNING_USAGE
),
49 "missing ocspsigning usage"},
50 {ERR_REASON(OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE
),
51 "nextupdate before thisupdate"},
52 {ERR_REASON(OCSP_R_NOT_BASIC_RESPONSE
), "not basic response"},
53 {ERR_REASON(OCSP_R_NO_CERTIFICATES_IN_CHAIN
), "no certificates in chain"},
54 {ERR_REASON(OCSP_R_NO_RESPONSE_DATA
), "no response data"},
55 {ERR_REASON(OCSP_R_NO_REVOKED_TIME
), "no revoked time"},
56 {ERR_REASON(OCSP_R_NO_SIGNER_KEY
), "no signer key"},
57 {ERR_REASON(OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE
),
58 "private key does not match certificate"},
59 {ERR_REASON(OCSP_R_REQUEST_NOT_SIGNED
), "request not signed"},
60 {ERR_REASON(OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA
),
61 "response contains no revocation data"},
62 {ERR_REASON(OCSP_R_ROOT_CA_NOT_TRUSTED
), "root ca not trusted"},
63 {ERR_REASON(OCSP_R_SERVER_RESPONSE_ERROR
), "server response error"},
64 {ERR_REASON(OCSP_R_SERVER_RESPONSE_PARSE_ERROR
),
65 "server response parse error"},
66 {ERR_REASON(OCSP_R_SIGNATURE_FAILURE
), "signature failure"},
67 {ERR_REASON(OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND
),
68 "signer certificate not found"},
69 {ERR_REASON(OCSP_R_STATUS_EXPIRED
), "status expired"},
70 {ERR_REASON(OCSP_R_STATUS_NOT_YET_VALID
), "status not yet valid"},
71 {ERR_REASON(OCSP_R_STATUS_TOO_OLD
), "status too old"},
72 {ERR_REASON(OCSP_R_UNKNOWN_MESSAGE_DIGEST
), "unknown message digest"},
73 {ERR_REASON(OCSP_R_UNKNOWN_NID
), "unknown nid"},
74 {ERR_REASON(OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE
),
75 "unsupported requestorname type"},
81 void ERR_load_OCSP_strings(void)
83 #ifndef OPENSSL_NO_ERR
85 if (ERR_func_error_string(OCSP_str_functs
[0].error
) == NULL
) {
86 ERR_load_strings(0, OCSP_str_functs
);
87 ERR_load_strings(0, OCSP_str_reasons
);