forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the temporary fabricSecret bit to be a CASESession member. (proj…
…ect-chip#7919) Right now it's a static and our example apps have the CASESession as a static in a different file (via CASEServer). At least on Linux the static initializer for the CASEServer runs first, the CASESession constructor runs, sets up the fabricSecret, then the P256ECDHDerivedSecret constructor runs and sets its length to 0. And then trying to use that fabricSecret later on fails. Making the fabricSecret a member of CASESession ensures its constructor runs before the logic in the CASESession constructor.
- Loading branch information
1 parent
6fdfcb6
commit dccf72f
Showing
2 changed files
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters