Skip to content

Commit 3ed4c2c

Browse files
committed
refactor: remove default DATA key assignment in vp_auth_load_key function
1 parent 3ee1a7b commit 3ed4c2c

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

core/protocol.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,6 @@ static void vp_auth_load_key(void)
330330
g_vp_enc_key[i * 8 + b] = (uint8_t)(v >> (8 * b));
331331
}
332332
}
333-
334-
// Default DATA key equals control-plane key until a session id
335-
// is explicitly configured via vp_crypto_set_session().
336-
memcpy(g_vp_enc_key_data, g_vp_enc_key, sizeof(g_vp_enc_key_data));
337333
}
338334

339335
static void vp_pack_header(uint8_t *buf, const vp_header_t *hdr)

0 commit comments

Comments
 (0)