open62541/plugins/crypto/ua_filestore_common.h
Ómar Högni Guðmarsson 9056bbf887 fix(build): compilation on macos
After some commits on the master branch compilation
for macos was not working. This PR restores macos
to a building state.

Co-authored-by: Jón Bjarni Bjarnason <jon@centroid.is>
2025-03-18 14:58:00 +01:00

32 lines
853 B
C

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2024 (c) Fraunhofer IOSB (Author: Noel Graf)
*/
#ifndef UA_FILESTORE_COMMON_H_
#define UA_FILESTORE_COMMON_H_
#include <open62541/util.h>
#ifdef UA_ENABLE_ENCRYPTION
#if defined(__linux__) || defined(UA_ARCHITECTURE_WIN32) || defined(__APPLE__)
#include "../../arch/posix/eventloop_posix.h"
UA_StatusCode
readFileToByteString(const char *const path,
UA_ByteString *data);
UA_StatusCode
writeByteStringToFile(const char *const path,
const UA_ByteString *data);
#endif /* __linux__ || UA_ARCHITECTURE_WIN32 */
#endif /* UA_ENABLE_ENCRYPTION */
#endif /* UA_FILESTORE_COMMON_H_ */