Skip to content

Commit cae846b

Browse files
NoelGrafjpfr
authored andcommitted
fix(plugin): Removed architecture dependency from the filestore backend plugin
1 parent 79e47f8 commit cae846b

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

plugins/crypto/ua_certificategroup_filestore.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
*/
99

1010
#include <open62541/util.h>
11-
#include "../../arch/posix/eventloop_posix.h"
12-
#include "ua_filestore_common.h"
1311
#include <open62541/plugin/certificategroup_default.h>
1412

1513
#include "ua_filestore_common.h"

plugins/crypto/ua_filestore_common.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
* Copyright 2024 (c) Fraunhofer IOSB (Author: Noel Graf)
66
*/
77

8-
#include "../../arch/posix/eventloop_posix.h"
98
#include "ua_filestore_common.h"
109

1110
#ifdef UA_ENABLE_ENCRYPTION
1211

13-
#if defined(__linux__) || defined(UA_ARCHITECTURE_WIN32) || defined(__APPLE__)
12+
#if defined(UA_ARCHITECTURE_POSIX) || defined(UA_ARCHITECTURE_WIN32) || defined(__APPLE__)
1413

1514
#ifdef UA_ARCHITECTURE_WIN32
1615
/* TODO: Replace with a proper dirname implementation. This is a just minimal
@@ -70,6 +69,6 @@ writeByteStringToFile(const char *const path, const UA_ByteString *data) {
7069
return retval;
7170
}
7271

73-
#endif /* defined(__linux__) || defined(UA_ARCHITECTURE_WIN32) */
72+
#endif /* defined(UA_ARCHITECTURE_POSIX) || defined(UA_ARCHITECTURE_WIN32) || defined(__APPLE__) */
7473

7574
#endif /* UA_ENABLE_ENCRYPTION */

plugins/crypto/ua_filestore_common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#ifdef UA_ENABLE_ENCRYPTION
1414

15-
#if defined(__linux__) || defined(UA_ARCHITECTURE_WIN32) || defined(__APPLE__)
15+
#if defined(UA_ARCHITECTURE_POSIX) || defined(UA_ARCHITECTURE_WIN32) || defined(__APPLE__)
1616

1717
#include "../../arch/posix/eventloop_posix.h"
1818

@@ -24,7 +24,7 @@ UA_StatusCode
2424
writeByteStringToFile(const char *const path,
2525
const UA_ByteString *data);
2626

27-
#endif /* __linux__ || UA_ARCHITECTURE_WIN32 */
27+
#endif /* defined(UA_ARCHITECTURE_POSIX) || defined(UA_ARCHITECTURE_WIN32) || defined(__APPLE__) */
2828

2929
#endif /* UA_ENABLE_ENCRYPTION */
3030

0 commit comments

Comments
 (0)