]>
Commit | Line | Data |
---|---|---|
b6cff313 | 1 | /* |
0cd0a820 | 2 | * Generated by util/mkerr.pl DO NOT EDIT |
b516a4b1 | 3 | * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. |
6d311938 | 4 | * |
3f870de7 | 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use |
b6cff313 RS |
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 | |
d02b48c6 | 9 | */ |
6d311938 | 10 | |
ec577822 | 11 | #include <openssl/err.h> |
52df25cf | 12 | #include <openssl/objectserr.h> |
d02b48c6 | 13 | |
cf1b7d96 | 14 | #ifndef OPENSSL_NO_ERR |
29dc3508 | 15 | |
52df25cf RS |
16 | static const ERR_STRING_DATA OBJ_str_reasons[] = { |
17 | {ERR_PACK(ERR_LIB_OBJ, 0, OBJ_R_OID_EXISTS), "oid exists"}, | |
18 | {ERR_PACK(ERR_LIB_OBJ, 0, OBJ_R_UNKNOWN_NID), "unknown nid"}, | |
b516a4b1 DDO |
19 | {ERR_PACK(ERR_LIB_OBJ, 0, OBJ_R_UNKNOWN_OBJECT_NAME), |
20 | "unknown object name"}, | |
0f113f3e MC |
21 | {0, NULL} |
22 | }; | |
d02b48c6 | 23 | |
58964a49 RE |
24 | #endif |
25 | ||
69588edb | 26 | int ERR_load_OBJ_strings(void) |
0f113f3e | 27 | { |
47a9d527 | 28 | #ifndef OPENSSL_NO_ERR |
0cd1b144 | 29 | if (ERR_reason_error_string(OBJ_str_reasons[0].error) == NULL) |
52df25cf | 30 | ERR_load_strings_const(OBJ_str_reasons); |
47a9d527 | 31 | #endif |
69588edb | 32 | return 1; |
0f113f3e | 33 | } |