2 * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
4 * Licensed under the Apache License 2.0 (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
10 #ifndef OSSL_TEST_SIMPLEDYNAMIC_H
11 # define OSSL_TEST_SIMPLEDYNAMIC_H
13 # include "crypto/dso_conf.h"
15 # if defined(DSO_DLFCN)
20 # define SD_SHLIB (RTLD_GLOBAL|RTLD_LAZY)
21 # define SD_MODULE (RTLD_LOCAL|RTLD_NOW)
26 # elif defined(DSO_WIN32)
39 # if defined(DSO_DLFCN) || defined(DSO_WIN32)
40 int sd_load(const char *filename, SD *sd, int type);
41 int sd_sym(SD sd, const char *symname, SD_SYM *sym);
43 const char *sd_error(void);