]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/objects/obj_err.c
Manual fixes after copyright consolidation
[thirdparty/openssl.git] / crypto / objects / obj_err.c
CommitLineData
b6cff313
RS
1/*
2 * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
6d311938 3 *
b6cff313
RS
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
d02b48c6 8 */
6d311938 9
0f113f3e
MC
10/*
11 * NOTE: this file was auto generated by the mkerr.pl script: any changes
59fc2b0f
BM
12 * made to it will be overwritten when the script next updates this file,
13 * only reason strings will be preserved.
6d311938
DSH
14 */
15
d02b48c6 16#include <stdio.h>
ec577822
BM
17#include <openssl/err.h>
18#include <openssl/objects.h>
d02b48c6
RE
19
20/* BEGIN ERROR CODES */
cf1b7d96 21#ifndef OPENSSL_NO_ERR
29dc3508 22
0f113f3e
MC
23# define ERR_FUNC(func) ERR_PACK(ERR_LIB_OBJ,func,0)
24# define ERR_REASON(reason) ERR_PACK(ERR_LIB_OBJ,0,reason)
29dc3508 25
0f113f3e
MC
26static ERR_STRING_DATA OBJ_str_functs[] = {
27 {ERR_FUNC(OBJ_F_OBJ_ADD_OBJECT), "OBJ_add_object"},
28 {ERR_FUNC(OBJ_F_OBJ_CREATE), "OBJ_create"},
29 {ERR_FUNC(OBJ_F_OBJ_DUP), "OBJ_dup"},
30 {ERR_FUNC(OBJ_F_OBJ_NAME_NEW_INDEX), "OBJ_NAME_new_index"},
31 {ERR_FUNC(OBJ_F_OBJ_NID2LN), "OBJ_nid2ln"},
32 {ERR_FUNC(OBJ_F_OBJ_NID2OBJ), "OBJ_nid2obj"},
33 {ERR_FUNC(OBJ_F_OBJ_NID2SN), "OBJ_nid2sn"},
34 {0, NULL}
35};
d02b48c6 36
0f113f3e
MC
37static ERR_STRING_DATA OBJ_str_reasons[] = {
38 {ERR_REASON(OBJ_R_MALLOC_FAILURE), "malloc failure"},
39 {ERR_REASON(OBJ_R_UNKNOWN_NID), "unknown nid"},
40 {0, NULL}
41};
d02b48c6 42
58964a49
RE
43#endif
44
6b691a5c 45void ERR_load_OBJ_strings(void)
0f113f3e 46{
47a9d527 47#ifndef OPENSSL_NO_ERR
d02b48c6 48
0f113f3e
MC
49 if (ERR_func_error_string(OBJ_str_functs[0].error) == NULL) {
50 ERR_load_strings(0, OBJ_str_functs);
51 ERR_load_strings(0, OBJ_str_reasons);
52 }
47a9d527 53#endif
0f113f3e 54}