mesh_network.c (8adad2d3bac8a8459641e3c9b6d00f185b87d598) mesh_network.c (bdf219b2290515559e5dd7fd6ae2114cb15ebd69)
1/*
2 * Copyright (C) 2018 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 1139 unchanged lines hidden (view full) ---

1148 subnet->key_refresh = MESH_KEY_REFRESH_NOT_ACTIVE;
1149 }
1150 else {
1151 // two keys -> at least phase 1
1152 if (subnet->key_refresh == MESH_KEY_REFRESH_NOT_ACTIVE){
1153 subnet->key_refresh = MESH_KEY_REFRESH_FIRST_PHASE;
1154 }
1155 }
1/*
2 * Copyright (C) 2018 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 1139 unchanged lines hidden (view full) ---

1148 subnet->key_refresh = MESH_KEY_REFRESH_NOT_ACTIVE;
1149 }
1150 else {
1151 // two keys -> at least phase 1
1152 if (subnet->key_refresh == MESH_KEY_REFRESH_NOT_ACTIVE){
1153 subnet->key_refresh = MESH_KEY_REFRESH_FIRST_PHASE;
1154 }
1155 }
1156
1157 // TODO: advertisement using node id active
1158 // TODO: secure network beacons
1159}
1156}