Skip to content

Commit 6f0cbca

Browse files
committed
client: allow custom identity instead of using mac address by default
1 parent e44ff00 commit 6f0cbca

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ main(void) {
286286
char *device_type = PROJECT_NAME;
287287

288288
/* Initialize mender-client */
289-
mender_client_config_t mender_client_config = { .mac_address = mac_address,
289+
mender_keystore_t identity[] = { { .name = "mac", .value = mac_address }, { .name = NULL, .value = NULL } };
290+
mender_client_config_t mender_client_config = { .identity = identity,
290291
.artifact_name = artifact_name,
291292
.device_type = device_type,
292293
.host = NULL,

0 commit comments

Comments
 (0)