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) || defined(DSO_VMS)
24 # define SD_SHLIB (RTLD_GLOBAL|RTLD_LAZY)
25 # define SD_MODULE (RTLD_LOCAL|RTLD_NOW)
31 # elif defined(DSO_WIN32)
44 # if defined(DSO_DLFCN) || defined(DSO_WIN32) || defined(DSO_VMS)
45 int sd_load(const char *filename, SD *sd, int type);
46 int sd_sym(SD sd, const char *symname, SD_SYM *sym);
48 const char *sd_error(void);