xref: /netbsd-src/crypto/external/bsd/openssl/dist/crypto/async/async_err.c (revision b0d1725196a7921d003d2c66a14f186abda4176b)
1c7da899bSchristos /*
2c7da899bSchristos  * Generated by util/mkerr.pl DO NOT EDIT
3*b0d17251Schristos  * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
4c7da899bSchristos  *
5*b0d17251Schristos  * Licensed under the Apache License 2.0 (the "License").  You may not use
6c7da899bSchristos  * this file except in compliance with the License.  You can obtain a copy
7c7da899bSchristos  * in the file LICENSE in the source distribution or at
8c7da899bSchristos  * https://www.openssl.org/source/license.html
9c7da899bSchristos  */
10c7da899bSchristos 
11c7da899bSchristos #include <openssl/err.h>
1213d40330Schristos #include <openssl/asyncerr.h>
13*b0d17251Schristos #include "crypto/asyncerr.h"
14c7da899bSchristos 
15c7da899bSchristos #ifndef OPENSSL_NO_ERR
16c7da899bSchristos 
1713d40330Schristos static const ERR_STRING_DATA ASYNC_str_reasons[] = {
1813d40330Schristos     {ERR_PACK(ERR_LIB_ASYNC, 0, ASYNC_R_FAILED_TO_SET_POOL),
1913d40330Schristos     "failed to set pool"},
2013d40330Schristos     {ERR_PACK(ERR_LIB_ASYNC, 0, ASYNC_R_FAILED_TO_SWAP_CONTEXT),
2113d40330Schristos     "failed to swap context"},
2213d40330Schristos     {ERR_PACK(ERR_LIB_ASYNC, 0, ASYNC_R_INIT_FAILED), "init failed"},
2313d40330Schristos     {ERR_PACK(ERR_LIB_ASYNC, 0, ASYNC_R_INVALID_POOL_SIZE),
2413d40330Schristos     "invalid pool size"},
25c7da899bSchristos     {0, NULL}
26c7da899bSchristos };
27c7da899bSchristos 
28c7da899bSchristos #endif
29c7da899bSchristos 
ossl_err_load_ASYNC_strings(void)30*b0d17251Schristos int ossl_err_load_ASYNC_strings(void)
31c7da899bSchristos {
32c7da899bSchristos #ifndef OPENSSL_NO_ERR
33*b0d17251Schristos     if (ERR_reason_error_string(ASYNC_str_reasons[0].error) == NULL)
3413d40330Schristos         ERR_load_strings_const(ASYNC_str_reasons);
35c7da899bSchristos #endif
36c7da899bSchristos     return 1;
37c7da899bSchristos }
38