Skip to content

Commit

Permalink
refactor(plugins): Simplify struct definition in ua_certificategroup_…
Browse files Browse the repository at this point in the history
…filestore.c
  • Loading branch information
jpfr committed Nov 29, 2024
1 parent 9687514 commit 7c13df4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plugins/crypto/ua_certificategroup_filestore.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@
#define EVENT_SIZE (sizeof(struct inotify_event))
#define BUF_LEN (1024 * ( EVENT_SIZE + 16 ))

struct FileCertStore;
typedef struct FileCertStore FileCertStore;

struct FileCertStore {
typedef struct {
/* Memory cert store as a base */
UA_CertificateGroup *store;

Expand All @@ -49,7 +46,7 @@ struct FileCertStore {
UA_String ownCertFolder;
UA_String ownKeyFolder;
UA_String rootFolder;
};
} FileCertStore;

static int
mkpath(char *dir, mode_t mode) {
Expand Down

0 comments on commit 7c13df4

Please sign in to comment.