]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/x509/x509_err.c
Regenerate mkerr files
[thirdparty/openssl.git] / crypto / x509 / x509_err.c
CommitLineData
77076dc9 1/*
6ddbb4cd 2 * Generated by util/mkerr.pl DO NOT EDIT
8267becb 3 * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
6d311938 4 *
3e4b43b9 5 * Licensed under the Apache License 2.0 (the "License"). You may not use
77076dc9
DSH
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
6d311938
DSH
9 */
10
ec577822 11#include <openssl/err.h>
52df25cf 12#include <openssl/x509err.h>
d02b48c6 13
cf1b7d96 14#ifndef OPENSSL_NO_ERR
29dc3508 15
52df25cf
RS
16static const ERR_STRING_DATA X509_str_reasons[] = {
17 {ERR_PACK(ERR_LIB_X509, 0, X509_R_AKID_MISMATCH), "akid mismatch"},
18 {ERR_PACK(ERR_LIB_X509, 0, X509_R_BAD_SELECTOR), "bad selector"},
19 {ERR_PACK(ERR_LIB_X509, 0, X509_R_BAD_X509_FILETYPE), "bad x509 filetype"},
20 {ERR_PACK(ERR_LIB_X509, 0, X509_R_BASE64_DECODE_ERROR),
21 "base64 decode error"},
22 {ERR_PACK(ERR_LIB_X509, 0, X509_R_CANT_CHECK_DH_KEY), "cant check dh key"},
23 {ERR_PACK(ERR_LIB_X509, 0, X509_R_CERT_ALREADY_IN_HASH_TABLE),
24 "cert already in hash table"},
25 {ERR_PACK(ERR_LIB_X509, 0, X509_R_CRL_ALREADY_DELTA), "crl already delta"},
26 {ERR_PACK(ERR_LIB_X509, 0, X509_R_CRL_VERIFY_FAILURE),
27 "crl verify failure"},
28 {ERR_PACK(ERR_LIB_X509, 0, X509_R_IDP_MISMATCH), "idp mismatch"},
9fd6f7d1
DB
29 {ERR_PACK(ERR_LIB_X509, 0, X509_R_INVALID_ATTRIBUTES),
30 "invalid attributes"},
52df25cf
RS
31 {ERR_PACK(ERR_LIB_X509, 0, X509_R_INVALID_DIRECTORY), "invalid directory"},
32 {ERR_PACK(ERR_LIB_X509, 0, X509_R_INVALID_FIELD_NAME),
33 "invalid field name"},
34 {ERR_PACK(ERR_LIB_X509, 0, X509_R_INVALID_TRUST), "invalid trust"},
35 {ERR_PACK(ERR_LIB_X509, 0, X509_R_ISSUER_MISMATCH), "issuer mismatch"},
36 {ERR_PACK(ERR_LIB_X509, 0, X509_R_KEY_TYPE_MISMATCH), "key type mismatch"},
37 {ERR_PACK(ERR_LIB_X509, 0, X509_R_KEY_VALUES_MISMATCH),
38 "key values mismatch"},
39 {ERR_PACK(ERR_LIB_X509, 0, X509_R_LOADING_CERT_DIR), "loading cert dir"},
40 {ERR_PACK(ERR_LIB_X509, 0, X509_R_LOADING_DEFAULTS), "loading defaults"},
41 {ERR_PACK(ERR_LIB_X509, 0, X509_R_METHOD_NOT_SUPPORTED),
42 "method not supported"},
43 {ERR_PACK(ERR_LIB_X509, 0, X509_R_NAME_TOO_LONG), "name too long"},
44 {ERR_PACK(ERR_LIB_X509, 0, X509_R_NEWER_CRL_NOT_NEWER),
45 "newer crl not newer"},
46 {ERR_PACK(ERR_LIB_X509, 0, X509_R_NO_CERTIFICATE_FOUND),
47 "no certificate found"},
48 {ERR_PACK(ERR_LIB_X509, 0, X509_R_NO_CERTIFICATE_OR_CRL_FOUND),
49 "no certificate or crl found"},
50 {ERR_PACK(ERR_LIB_X509, 0, X509_R_NO_CERT_SET_FOR_US_TO_VERIFY),
51 "no cert set for us to verify"},
52 {ERR_PACK(ERR_LIB_X509, 0, X509_R_NO_CRL_FOUND), "no crl found"},
53 {ERR_PACK(ERR_LIB_X509, 0, X509_R_NO_CRL_NUMBER), "no crl number"},
54 {ERR_PACK(ERR_LIB_X509, 0, X509_R_PUBLIC_KEY_DECODE_ERROR),
55 "public key decode error"},
56 {ERR_PACK(ERR_LIB_X509, 0, X509_R_PUBLIC_KEY_ENCODE_ERROR),
57 "public key encode error"},
58 {ERR_PACK(ERR_LIB_X509, 0, X509_R_SHOULD_RETRY), "should retry"},
59 {ERR_PACK(ERR_LIB_X509, 0, X509_R_UNABLE_TO_FIND_PARAMETERS_IN_CHAIN),
60 "unable to find parameters in chain"},
61 {ERR_PACK(ERR_LIB_X509, 0, X509_R_UNABLE_TO_GET_CERTS_PUBLIC_KEY),
62 "unable to get certs public key"},
63 {ERR_PACK(ERR_LIB_X509, 0, X509_R_UNKNOWN_KEY_TYPE), "unknown key type"},
64 {ERR_PACK(ERR_LIB_X509, 0, X509_R_UNKNOWN_NID), "unknown nid"},
65 {ERR_PACK(ERR_LIB_X509, 0, X509_R_UNKNOWN_PURPOSE_ID),
66 "unknown purpose id"},
67 {ERR_PACK(ERR_LIB_X509, 0, X509_R_UNKNOWN_TRUST_ID), "unknown trust id"},
68 {ERR_PACK(ERR_LIB_X509, 0, X509_R_UNSUPPORTED_ALGORITHM),
69 "unsupported algorithm"},
70 {ERR_PACK(ERR_LIB_X509, 0, X509_R_WRONG_LOOKUP_TYPE), "wrong lookup type"},
71 {ERR_PACK(ERR_LIB_X509, 0, X509_R_WRONG_TYPE), "wrong type"},
0f113f3e
MC
72 {0, NULL}
73};
d02b48c6 74
58964a49
RE
75#endif
76
69588edb 77int ERR_load_X509_strings(void)
0f113f3e 78{
47a9d527 79#ifndef OPENSSL_NO_ERR
cbfa5b03 80 if (ERR_func_error_string(X509_str_reasons[0].error) == NULL)
52df25cf 81 ERR_load_strings_const(X509_str_reasons);
47a9d527 82#endif
69588edb 83 return 1;
0f113f3e 84}