summaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2019-07-11 14:01:56 -0400
committerRichard Levitte <levitte@openssl.org>2019-07-16 05:26:28 +0200
commitcbfa5b03989ee6b8f5c13c4284d5bae02c562f20 (patch)
tree3310c99c9e47c0fa88a276e789cad33136663185 /engines
parentaac96e2797c34a6b2a839eb58c30ab3328a0cee8 (diff)
downloadopenssl-new-cbfa5b03989ee6b8f5c13c4284d5bae02c562f20.tar.gz
Regenerate mkerr files
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9058)
Diffstat (limited to 'engines')
-rw-r--r--engines/e_afalg.txt2
-rw-r--r--engines/e_afalg_err.c15
-rw-r--r--engines/e_afalg_err.h22
-rw-r--r--engines/e_capi.txt2
-rw-r--r--engines/e_capi_err.c28
-rw-r--r--engines/e_capi_err.h50
-rw-r--r--engines/e_dasync.txt2
-rw-r--r--engines/e_dasync_err.c20
-rw-r--r--engines/e_dasync_err.h32
-rw-r--r--engines/e_ossltest.txt2
-rw-r--r--engines/e_ossltest_err.c10
-rw-r--r--engines/e_ossltest_err.h14
12 files changed, 79 insertions, 120 deletions
diff --git a/engines/e_afalg.txt b/engines/e_afalg.txt
index e32c880b07..7de1fe9826 100644
--- a/engines/e_afalg.txt
+++ b/engines/e_afalg.txt
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 The OpenSSL Project Authors. All Rights Reserved.
+# Copyright 1999-2019 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the Apache License 2.0 (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
diff --git a/engines/e_afalg_err.c b/engines/e_afalg_err.c
index cd5b7b2f84..c436f10a41 100644
--- a/engines/e_afalg_err.c
+++ b/engines/e_afalg_err.c
@@ -1,6 +1,6 @@
/*
* Generated by util/mkerr.pl DO NOT EDIT
- * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -13,17 +13,6 @@
#ifndef OPENSSL_NO_ERR
-static ERR_STRING_DATA AFALG_str_functs[] = {
- {ERR_PACK(0, AFALG_F_AFALG_CHK_PLATFORM, 0), "afalg_chk_platform"},
- {ERR_PACK(0, AFALG_F_AFALG_CREATE_SK, 0), "afalg_create_sk"},
- {ERR_PACK(0, AFALG_F_AFALG_INIT_AIO, 0), "afalg_init_aio"},
- {ERR_PACK(0, AFALG_F_AFALG_SETUP_ASYNC_EVENT_NOTIFICATION, 0),
- "afalg_setup_async_event_notification"},
- {ERR_PACK(0, AFALG_F_AFALG_SET_KEY, 0), "afalg_set_key"},
- {ERR_PACK(0, AFALG_F_BIND_AFALG, 0), "bind_afalg"},
- {0, NULL}
-};
-
static ERR_STRING_DATA AFALG_str_reasons[] = {
{ERR_PACK(0, 0, AFALG_R_EVENTFD_FAILED), "eventfd failed"},
{ERR_PACK(0, 0, AFALG_R_FAILED_TO_GET_PLATFORM_INFO),
@@ -56,7 +45,6 @@ static int ERR_load_AFALG_strings(void)
if (!error_loaded) {
#ifndef OPENSSL_NO_ERR
- ERR_load_strings(lib_code, AFALG_str_functs);
ERR_load_strings(lib_code, AFALG_str_reasons);
#endif
error_loaded = 1;
@@ -68,7 +56,6 @@ static void ERR_unload_AFALG_strings(void)
{
if (error_loaded) {
#ifndef OPENSSL_NO_ERR
- ERR_unload_strings(lib_code, AFALG_str_functs);
ERR_unload_strings(lib_code, AFALG_str_reasons);
#endif
error_loaded = 0;
diff --git a/engines/e_afalg_err.h b/engines/e_afalg_err.h
index bd1dd15454..27cdcd3ebf 100644
--- a/engines/e_afalg_err.h
+++ b/engines/e_afalg_err.h
@@ -1,6 +1,6 @@
/*
* Generated by util/mkerr.pl DO NOT EDIT
- * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -11,18 +11,24 @@
#ifndef HEADER_AFALGERR_H
# define HEADER_AFALGERR_H
-# define AFALGerr(f, r) ERR_AFALG_error((f), (r), OPENSSL_FILE, OPENSSL_LINE)
+# include <openssl/opensslconf.h>
+# include <openssl/symhacks.h>
+
+
+# define AFALGerr(f, r) ERR_AFALG_error(0, (r), OPENSSL_FILE, OPENSSL_LINE)
/*
* AFALG function codes.
*/
-# define AFALG_F_AFALG_CHK_PLATFORM 100
-# define AFALG_F_AFALG_CREATE_SK 101
-# define AFALG_F_AFALG_INIT_AIO 102
-# define AFALG_F_AFALG_SETUP_ASYNC_EVENT_NOTIFICATION 103
-# define AFALG_F_AFALG_SET_KEY 104
-# define AFALG_F_BIND_AFALG 105
+# if !OPENSSL_API_3
+# define AFALG_F_AFALG_CHK_PLATFORM 0
+# define AFALG_F_AFALG_CREATE_SK 0
+# define AFALG_F_AFALG_INIT_AIO 0
+# define AFALG_F_AFALG_SETUP_ASYNC_EVENT_NOTIFICATION 0
+# define AFALG_F_AFALG_SET_KEY 0
+# define AFALG_F_BIND_AFALG 0
+# endif
/*
* AFALG reason codes.
diff --git a/engines/e_capi.txt b/engines/e_capi.txt
index 29724e63e6..303a1ed52f 100644
--- a/engines/e_capi.txt
+++ b/engines/e_capi.txt
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 The OpenSSL Project Authors. All Rights Reserved.
+# Copyright 1999-2019 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the Apache License 2.0 (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
diff --git a/engines/e_capi_err.c b/engines/e_capi_err.c
index 923723adab..acbec41d08 100644
--- a/engines/e_capi_err.c
+++ b/engines/e_capi_err.c
@@ -1,6 +1,6 @@
/*
* Generated by util/mkerr.pl DO NOT EDIT
- * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -13,30 +13,6 @@
#ifndef OPENSSL_NO_ERR
-static ERR_STRING_DATA CAPI_str_functs[] = {
- {ERR_PACK(0, CAPI_F_CAPI_CERT_GET_FNAME, 0), "capi_cert_get_fname"},
- {ERR_PACK(0, CAPI_F_CAPI_CTRL, 0), "capi_ctrl"},
- {ERR_PACK(0, CAPI_F_CAPI_CTX_NEW, 0), "capi_ctx_new"},
- {ERR_PACK(0, CAPI_F_CAPI_CTX_SET_PROVNAME, 0), "capi_ctx_set_provname"},
- {ERR_PACK(0, CAPI_F_CAPI_DSA_DO_SIGN, 0), "capi_dsa_do_sign"},
- {ERR_PACK(0, CAPI_F_CAPI_GET_KEY, 0), "capi_get_key"},
- {ERR_PACK(0, CAPI_F_CAPI_GET_PKEY, 0), "capi_get_pkey"},
- {ERR_PACK(0, CAPI_F_CAPI_GET_PROVNAME, 0), "capi_get_provname"},
- {ERR_PACK(0, CAPI_F_CAPI_GET_PROV_INFO, 0), "capi_get_prov_info"},
- {ERR_PACK(0, CAPI_F_CAPI_INIT, 0), "capi_init"},
- {ERR_PACK(0, CAPI_F_CAPI_LIST_CONTAINERS, 0), "capi_list_containers"},
- {ERR_PACK(0, CAPI_F_CAPI_LOAD_PRIVKEY, 0), "capi_load_privkey"},
- {ERR_PACK(0, CAPI_F_CAPI_OPEN_STORE, 0), "capi_open_store"},
- {ERR_PACK(0, CAPI_F_CAPI_RSA_PRIV_DEC, 0), "capi_rsa_priv_dec"},
- {ERR_PACK(0, CAPI_F_CAPI_RSA_PRIV_ENC, 0), "capi_rsa_priv_enc"},
- {ERR_PACK(0, CAPI_F_CAPI_RSA_SIGN, 0), "capi_rsa_sign"},
- {ERR_PACK(0, CAPI_F_CAPI_VTRACE, 0), "capi_vtrace"},
- {ERR_PACK(0, CAPI_F_CERT_SELECT_DIALOG, 0), "cert_select_dialog"},
- {ERR_PACK(0, CAPI_F_CLIENT_CERT_SELECT, 0), ""},
- {ERR_PACK(0, CAPI_F_WIDE_TO_ASC, 0), "wide_to_asc"},
- {0, NULL}
-};
-
static ERR_STRING_DATA CAPI_str_reasons[] = {
{ERR_PACK(0, 0, CAPI_R_CANT_CREATE_HASH_OBJECT), "cant create hash object"},
{ERR_PACK(0, 0, CAPI_R_CANT_FIND_CAPI_CONTEXT), "cant find capi context"},
@@ -92,7 +68,6 @@ static int ERR_load_CAPI_strings(void)
if (!error_loaded) {
#ifndef OPENSSL_NO_ERR
- ERR_load_strings(lib_code, CAPI_str_functs);
ERR_load_strings(lib_code, CAPI_str_reasons);
#endif
error_loaded = 1;
@@ -104,7 +79,6 @@ static void ERR_unload_CAPI_strings(void)
{
if (error_loaded) {
#ifndef OPENSSL_NO_ERR
- ERR_unload_strings(lib_code, CAPI_str_functs);
ERR_unload_strings(lib_code, CAPI_str_reasons);
#endif
error_loaded = 0;
diff --git a/engines/e_capi_err.h b/engines/e_capi_err.h
index 544f7fe358..a9389ecf96 100644
--- a/engines/e_capi_err.h
+++ b/engines/e_capi_err.h
@@ -1,6 +1,6 @@
/*
* Generated by util/mkerr.pl DO NOT EDIT
- * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -11,32 +11,38 @@
#ifndef HEADER_CAPIERR_H
# define HEADER_CAPIERR_H
-# define CAPIerr(f, r) ERR_CAPI_error((f), (r), OPENSSL_FILE, OPENSSL_LINE)
+# include <openssl/opensslconf.h>
+# include <openssl/symhacks.h>
+
+
+# define CAPIerr(f, r) ERR_CAPI_error(0, (r), OPENSSL_FILE, OPENSSL_LINE)
/*
* CAPI function codes.
*/
-# define CAPI_F_CAPI_CERT_GET_FNAME 99
-# define CAPI_F_CAPI_CTRL 100
-# define CAPI_F_CAPI_CTX_NEW 101
-# define CAPI_F_CAPI_CTX_SET_PROVNAME 102
-# define CAPI_F_CAPI_DSA_DO_SIGN 114
-# define CAPI_F_CAPI_GET_KEY 103
-# define CAPI_F_CAPI_GET_PKEY 115
-# define CAPI_F_CAPI_GET_PROVNAME 104
-# define CAPI_F_CAPI_GET_PROV_INFO 105
-# define CAPI_F_CAPI_INIT 106
-# define CAPI_F_CAPI_LIST_CONTAINERS 107
-# define CAPI_F_CAPI_LOAD_PRIVKEY 108
-# define CAPI_F_CAPI_OPEN_STORE 109
-# define CAPI_F_CAPI_RSA_PRIV_DEC 110
-# define CAPI_F_CAPI_RSA_PRIV_ENC 111
-# define CAPI_F_CAPI_RSA_SIGN 112
-# define CAPI_F_CAPI_VTRACE 118
-# define CAPI_F_CERT_SELECT_DIALOG 117
-# define CAPI_F_CLIENT_CERT_SELECT 116
-# define CAPI_F_WIDE_TO_ASC 113
+# if !OPENSSL_API_3
+# define CAPI_F_CAPI_CERT_GET_FNAME 0
+# define CAPI_F_CAPI_CTRL 0
+# define CAPI_F_CAPI_CTX_NEW 0
+# define CAPI_F_CAPI_CTX_SET_PROVNAME 0
+# define CAPI_F_CAPI_DSA_DO_SIGN 0
+# define CAPI_F_CAPI_GET_KEY 0
+# define CAPI_F_CAPI_GET_PKEY 0
+# define CAPI_F_CAPI_GET_PROVNAME 0
+# define CAPI_F_CAPI_GET_PROV_INFO 0
+# define CAPI_F_CAPI_INIT 0
+# define CAPI_F_CAPI_LIST_CONTAINERS 0
+# define CAPI_F_CAPI_LOAD_PRIVKEY 0
+# define CAPI_F_CAPI_OPEN_STORE 0
+# define CAPI_F_CAPI_RSA_PRIV_DEC 0
+# define CAPI_F_CAPI_RSA_PRIV_ENC 0
+# define CAPI_F_CAPI_RSA_SIGN 0
+# define CAPI_F_CAPI_VTRACE 0
+# define CAPI_F_CERT_SELECT_DIALOG 0
+# define CAPI_F_CLIENT_CERT_SELECT 0
+# define CAPI_F_WIDE_TO_ASC 0
+# endif
/*
* CAPI reason codes.
diff --git a/engines/e_dasync.txt b/engines/e_dasync.txt
index 9a7b49896c..819ff6fefe 100644
--- a/engines/e_dasync.txt
+++ b/engines/e_dasync.txt
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 The OpenSSL Project Authors. All Rights Reserved.
+# Copyright 1999-2019 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the Apache License 2.0 (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
diff --git a/engines/e_dasync_err.c b/engines/e_dasync_err.c
index f71f6fedb3..0920690af6 100644
--- a/engines/e_dasync_err.c
+++ b/engines/e_dasync_err.c
@@ -1,6 +1,6 @@
/*
* Generated by util/mkerr.pl DO NOT EDIT
- * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -13,22 +13,6 @@
#ifndef OPENSSL_NO_ERR
-static ERR_STRING_DATA DASYNC_str_functs[] = {
- {ERR_PACK(0, DASYNC_F_BIND_DASYNC, 0), "bind_dasync"},
- {ERR_PACK(0, DASYNC_F_CIPHER_AES_128_CBC_CODE, 0), ""},
- {ERR_PACK(0, DASYNC_F_DASYNC_AES128_CBC_HMAC_SHA1_INIT_KEY, 0), ""},
- {ERR_PACK(0, DASYNC_F_DASYNC_AES128_INIT_KEY, 0), ""},
- {ERR_PACK(0, DASYNC_F_DASYNC_BN_MOD_EXP, 0), ""},
- {ERR_PACK(0, DASYNC_F_DASYNC_CIPHER_INIT_KEY_HELPER, 0),
- "dasync_cipher_init_key_helper"},
- {ERR_PACK(0, DASYNC_F_DASYNC_MOD_EXP, 0), ""},
- {ERR_PACK(0, DASYNC_F_DASYNC_PRIVATE_DECRYPT, 0), ""},
- {ERR_PACK(0, DASYNC_F_DASYNC_PRIVATE_ENCRYPT, 0), ""},
- {ERR_PACK(0, DASYNC_F_DASYNC_PUBLIC_DECRYPT, 0), ""},
- {ERR_PACK(0, DASYNC_F_DASYNC_PUBLIC_ENCRYPT, 0), ""},
- {0, NULL}
-};
-
static ERR_STRING_DATA DASYNC_str_reasons[] = {
{ERR_PACK(0, 0, DASYNC_R_INIT_FAILED), "init failed"},
{0, NULL}
@@ -46,7 +30,6 @@ static int ERR_load_DASYNC_strings(void)
if (!error_loaded) {
#ifndef OPENSSL_NO_ERR
- ERR_load_strings(lib_code, DASYNC_str_functs);
ERR_load_strings(lib_code, DASYNC_str_reasons);
#endif
error_loaded = 1;
@@ -58,7 +41,6 @@ static void ERR_unload_DASYNC_strings(void)
{
if (error_loaded) {
#ifndef OPENSSL_NO_ERR
- ERR_unload_strings(lib_code, DASYNC_str_functs);
ERR_unload_strings(lib_code, DASYNC_str_reasons);
#endif
error_loaded = 0;
diff --git a/engines/e_dasync_err.h b/engines/e_dasync_err.h
index 844615e9ed..907ba88c16 100644
--- a/engines/e_dasync_err.h
+++ b/engines/e_dasync_err.h
@@ -1,6 +1,6 @@
/*
* Generated by util/mkerr.pl DO NOT EDIT
- * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -11,23 +11,29 @@
#ifndef HEADER_DASYNCERR_H
# define HEADER_DASYNCERR_H
-# define DASYNCerr(f, r) ERR_DASYNC_error((f), (r), OPENSSL_FILE, OPENSSL_LINE)
+# include <openssl/opensslconf.h>
+# include <openssl/symhacks.h>
+
+
+# define DASYNCerr(f, r) ERR_DASYNC_error(0, (r), OPENSSL_FILE, OPENSSL_LINE)
/*
* DASYNC function codes.
*/
-# define DASYNC_F_BIND_DASYNC 107
-# define DASYNC_F_CIPHER_AES_128_CBC_CODE 100
-# define DASYNC_F_DASYNC_AES128_CBC_HMAC_SHA1_INIT_KEY 109
-# define DASYNC_F_DASYNC_AES128_INIT_KEY 108
-# define DASYNC_F_DASYNC_BN_MOD_EXP 101
-# define DASYNC_F_DASYNC_CIPHER_INIT_KEY_HELPER 110
-# define DASYNC_F_DASYNC_MOD_EXP 102
-# define DASYNC_F_DASYNC_PRIVATE_DECRYPT 103
-# define DASYNC_F_DASYNC_PRIVATE_ENCRYPT 104
-# define DASYNC_F_DASYNC_PUBLIC_DECRYPT 105
-# define DASYNC_F_DASYNC_PUBLIC_ENCRYPT 106
+# if !OPENSSL_API_3
+# define DASYNC_F_BIND_DASYNC 0
+# define DASYNC_F_CIPHER_AES_128_CBC_CODE 0
+# define DASYNC_F_DASYNC_AES128_CBC_HMAC_SHA1_INIT_KEY 0
+# define DASYNC_F_DASYNC_AES128_INIT_KEY 0
+# define DASYNC_F_DASYNC_BN_MOD_EXP 0
+# define DASYNC_F_DASYNC_CIPHER_INIT_KEY_HELPER 0
+# define DASYNC_F_DASYNC_MOD_EXP 0
+# define DASYNC_F_DASYNC_PRIVATE_DECRYPT 0
+# define DASYNC_F_DASYNC_PRIVATE_ENCRYPT 0
+# define DASYNC_F_DASYNC_PUBLIC_DECRYPT 0
+# define DASYNC_F_DASYNC_PUBLIC_ENCRYPT 0
+# endif
/*
* DASYNC reason codes.
diff --git a/engines/e_ossltest.txt b/engines/e_ossltest.txt
index b16c4aa575..f40e60cf21 100644
--- a/engines/e_ossltest.txt
+++ b/engines/e_ossltest.txt
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 The OpenSSL Project Authors. All Rights Reserved.
+# Copyright 1999-2019 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the Apache License 2.0 (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
diff --git a/engines/e_ossltest_err.c b/engines/e_ossltest_err.c
index 57c71e3d70..b81e00b43c 100644
--- a/engines/e_ossltest_err.c
+++ b/engines/e_ossltest_err.c
@@ -1,6 +1,6 @@
/*
* Generated by util/mkerr.pl DO NOT EDIT
- * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -13,12 +13,6 @@
#ifndef OPENSSL_NO_ERR
-static ERR_STRING_DATA OSSLTEST_str_functs[] = {
- {ERR_PACK(0, OSSLTEST_F_BIND_OSSLTEST, 0), "bind_ossltest"},
- {ERR_PACK(0, OSSLTEST_F_OSSLTEST_AES128_INIT_KEY, 0), ""},
- {0, NULL}
-};
-
static ERR_STRING_DATA OSSLTEST_str_reasons[] = {
{ERR_PACK(0, 0, OSSLTEST_R_INIT_FAILED), "init failed"},
{0, NULL}
@@ -36,7 +30,6 @@ static int ERR_load_OSSLTEST_strings(void)
if (!error_loaded) {
#ifndef OPENSSL_NO_ERR
- ERR_load_strings(lib_code, OSSLTEST_str_functs);
ERR_load_strings(lib_code, OSSLTEST_str_reasons);
#endif
error_loaded = 1;
@@ -48,7 +41,6 @@ static void ERR_unload_OSSLTEST_strings(void)
{
if (error_loaded) {
#ifndef OPENSSL_NO_ERR
- ERR_unload_strings(lib_code, OSSLTEST_str_functs);
ERR_unload_strings(lib_code, OSSLTEST_str_reasons);
#endif
error_loaded = 0;
diff --git a/engines/e_ossltest_err.h b/engines/e_ossltest_err.h
index 03f7bfb8c4..b575a80ada 100644
--- a/engines/e_ossltest_err.h
+++ b/engines/e_ossltest_err.h
@@ -1,6 +1,6 @@
/*
* Generated by util/mkerr.pl DO NOT EDIT
- * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -11,14 +11,20 @@
#ifndef HEADER_OSSLTESTERR_H
# define HEADER_OSSLTESTERR_H
-# define OSSLTESTerr(f, r) ERR_OSSLTEST_error((f), (r), OPENSSL_FILE, OPENSSL_LINE)
+# include <openssl/opensslconf.h>
+# include <openssl/symhacks.h>
+
+
+# define OSSLTESTerr(f, r) ERR_OSSLTEST_error(0, (r), OPENSSL_FILE, OPENSSL_LINE)
/*
* OSSLTEST function codes.
*/
-# define OSSLTEST_F_BIND_OSSLTEST 100
-# define OSSLTEST_F_OSSLTEST_AES128_INIT_KEY 101
+# if !OPENSSL_API_3
+# define OSSLTEST_F_BIND_OSSLTEST 0
+# define OSSLTEST_F_OSSLTEST_AES128_INIT_KEY 0
+# endif
/*
* OSSLTEST reason codes.