1e1051a39Sopenharmony_ci/* 2e1051a39Sopenharmony_ci * Copyright 2004-2016 The OpenSSL Project Authors. All Rights Reserved. 3e1051a39Sopenharmony_ci * 4e1051a39Sopenharmony_ci * Licensed under the Apache License 2.0 (the "License"). You may not use 5e1051a39Sopenharmony_ci * this file except in compliance with the License. You can obtain a copy 6e1051a39Sopenharmony_ci * in the file LICENSE in the source distribution or at 7e1051a39Sopenharmony_ci * https://www.openssl.org/source/license.html 8e1051a39Sopenharmony_ci */ 9e1051a39Sopenharmony_ci 10e1051a39Sopenharmony_ci#include "e_os.h" 11e1051a39Sopenharmony_ci#include <errno.h> 12e1051a39Sopenharmony_ci 13e1051a39Sopenharmony_ci/* 14e1051a39Sopenharmony_ci * The routines really come from the Levitte Programming, so to make life 15e1051a39Sopenharmony_ci * simple, let's just use the raw files and hack the symbols to fit our 16e1051a39Sopenharmony_ci * namespace. 17e1051a39Sopenharmony_ci */ 18e1051a39Sopenharmony_ci#define LP_DIR_CTX OPENSSL_DIR_CTX 19e1051a39Sopenharmony_ci#define LP_dir_context_st OPENSSL_dir_context_st 20e1051a39Sopenharmony_ci#define LP_find_file OPENSSL_DIR_read 21e1051a39Sopenharmony_ci#define LP_find_file_end OPENSSL_DIR_end 22e1051a39Sopenharmony_ci 23e1051a39Sopenharmony_ci#include "internal/o_dir.h" 24e1051a39Sopenharmony_ci 25e1051a39Sopenharmony_ci#define LPDIR_H 26e1051a39Sopenharmony_ci#if defined OPENSSL_SYS_UNIX || defined DJGPP \ 27e1051a39Sopenharmony_ci || (defined __VMS_VER && __VMS_VER >= 70000000) 28e1051a39Sopenharmony_ci# include "LPdir_unix.c" 29e1051a39Sopenharmony_ci#elif defined OPENSSL_SYS_VMS 30e1051a39Sopenharmony_ci# include "LPdir_vms.c" 31e1051a39Sopenharmony_ci#elif defined OPENSSL_SYS_WIN32 32e1051a39Sopenharmony_ci# include "LPdir_win32.c" 33e1051a39Sopenharmony_ci#elif defined OPENSSL_SYS_WINCE 34e1051a39Sopenharmony_ci# include "LPdir_wince.c" 35e1051a39Sopenharmony_ci#else 36e1051a39Sopenharmony_ci# include "LPdir_nyi.c" 37e1051a39Sopenharmony_ci#endif 38