/** * @file * @brief test of BACnet/SC Node interface * @author Steve Karg * @author Kirill Neznamov * @author Mikhail Antropov * @author Ondřej Hruška * @author Patrick Grimm * @date 2020 * @copyright SPDX-License-Identifier: MIT */ #include #include #include #include #include #include #include #include #include #include #include #include #include unsigned char ca_key[] = { 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x42, 0x45, 0x47, 0x49, 0x4e, 0x20, 0x52, 0x53, 0x41, 0x20, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x20, 0x4b, 0x45, 0x59, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x0a, 0x4d, 0x49, 0x49, 0x45, 0x6f, 0x67, 0x49, 0x42, 0x41, 0x41, 0x4b, 0x43, 0x41, 0x51, 0x45, 0x41, 0x31, 0x66, 0x7a, 0x73, 0x2b, 0x56, 0x62, 0x46, 0x39, 0x31, 0x65, 0x45, 0x66, 0x4c, 0x32, 0x67, 0x44, 0x63, 0x6a, 0x79, 0x44, 0x47, 0x68, 0x62, 0x4d, 0x6f, 0x44, 0x48, 0x6c, 0x71, 0x53, 0x6d, 0x70, 0x78, 0x7a, 0x45, 0x2b, 0x4a, 0x48, 0x34, 0x6f, 0x46, 0x47, 0x46, 0x42, 0x31, 0x47, 0x48, 0x0a, 0x69, 0x35, 0x47, 0x7a, 0x33, 0x73, 0x47, 0x51, 0x4d, 0x6e, 0x41, 0x6e, 0x32, 0x4c, 0x41, 0x6e, 0x51, 0x53, 0x5a, 0x72, 0x46, 0x77, 0x6c, 0x77, 0x72, 0x48, 0x34, 0x68, 0x43, 0x36, 0x62, 0x6d, 0x4a, 0x33, 0x71, 0x55, 0x58, 0x72, 0x61, 0x32, 0x64, 0x76, 0x63, 0x45, 0x34, 0x2f, 0x32, 0x2f, 0x70, 0x74, 0x6b, 0x34, 0x31, 0x47, 0x39, 0x68, 0x75, 0x45, 0x4f, 0x75, 0x77, 0x69, 0x6b, 0x68, 0x0a, 0x7a, 0x5a, 0x59, 0x65, 0x67, 0x6b, 0x4b, 0x68, 0x62, 0x78, 0x46, 0x70, 0x77, 0x56, 0x2f, 0x76, 0x48, 0x32, 0x48, 0x6f, 0x55, 0x45, 0x39, 0x30, 0x4d, 0x43, 0x56, 0x7a, 0x66, 0x59, 0x56, 0x51, 0x62, 0x6a, 0x38, 0x51, 0x2f, 0x73, 0x51, 0x50, 0x6d, 0x79, 0x4f, 0x6d, 0x64, 0x76, 0x46, 0x74, 0x4a, 0x41, 0x4e, 0x47, 0x53, 0x2f, 0x52, 0x58, 0x31, 0x67, 0x6b, 0x2b, 0x6e, 0x7a, 0x67, 0x38, 0x0a, 0x54, 0x4f, 0x33, 0x6f, 0x4a, 0x45, 0x6b, 0x70, 0x69, 0x6e, 0x67, 0x34, 0x45, 0x31, 0x4c, 0x4a, 0x2b, 0x63, 0x48, 0x66, 0x45, 0x66, 0x4a, 0x45, 0x49, 0x5a, 0x4f, 0x4d, 0x69, 0x4e, 0x69, 0x6a, 0x31, 0x4d, 0x72, 0x50, 0x70, 0x32, 0x4d, 0x63, 0x36, 0x4d, 0x49, 0x7a, 0x54, 0x6f, 0x76, 0x4c, 0x6f, 0x51, 0x31, 0x38, 0x36, 0x2f, 0x68, 0x63, 0x59, 0x50, 0x36, 0x62, 0x4f, 0x76, 0x46, 0x59, 0x0a, 0x6d, 0x59, 0x78, 0x68, 0x59, 0x46, 0x30, 0x68, 0x52, 0x38, 0x4f, 0x57, 0x53, 0x4c, 0x30, 0x55, 0x45, 0x78, 0x69, 0x4e, 0x6f, 0x64, 0x45, 0x2f, 0x61, 0x70, 0x68, 0x7a, 0x39, 0x41, 0x56, 0x52, 0x63, 0x6d, 0x79, 0x62, 0x76, 0x62, 0x4f, 0x6c, 0x77, 0x32, 0x4c, 0x71, 0x44, 0x50, 0x42, 0x43, 0x62, 0x46, 0x6b, 0x72, 0x50, 0x75, 0x4c, 0x7a, 0x6d, 0x6e, 0x47, 0x6b, 0x78, 0x46, 0x57, 0x41, 0x0a, 0x45, 0x42, 0x65, 0x52, 0x38, 0x51, 0x43, 0x33, 0x77, 0x72, 0x57, 0x6a, 0x6e, 0x6a, 0x34, 0x30, 0x71, 0x66, 0x6e, 0x33, 0x78, 0x50, 0x6c, 0x4e, 0x41, 0x73, 0x57, 0x42, 0x64, 0x7a, 0x52, 0x2f, 0x64, 0x32, 0x43, 0x6d, 0x63, 0x51, 0x49, 0x44, 0x41, 0x51, 0x41, 0x42, 0x41, 0x6f, 0x49, 0x42, 0x41, 0x43, 0x58, 0x49, 0x78, 0x7a, 0x38, 0x76, 0x70, 0x7a, 0x30, 0x4a, 0x59, 0x77, 0x64, 0x7a, 0x0a, 0x70, 0x44, 0x4e, 0x4b, 0x37, 0x42, 0x4a, 0x73, 0x79, 0x73, 0x32, 0x63, 0x46, 0x36, 0x48, 0x74, 0x36, 0x4d, 0x39, 0x52, 0x4d, 0x53, 0x61, 0x43, 0x2f, 0x39, 0x65, 0x76, 0x44, 0x55, 0x4a, 0x42, 0x6a, 0x79, 0x47, 0x42, 0x31, 0x4c, 0x54, 0x63, 0x6b, 0x4d, 0x32, 0x58, 0x4b, 0x44, 0x49, 0x47, 0x79, 0x4b, 0x65, 0x6b, 0x56, 0x50, 0x78, 0x34, 0x57, 0x6b, 0x44, 0x61, 0x39, 0x4a, 0x4c, 0x4f, 0x0a, 0x49, 0x59, 0x32, 0x50, 0x41, 0x32, 0x76, 0x46, 0x37, 0x32, 0x6f, 0x4b, 0x4b, 0x2f, 0x37, 0x6c, 0x36, 0x31, 0x56, 0x57, 0x76, 0x63, 0x59, 0x6b, 0x39, 0x4b, 0x68, 0x49, 0x71, 0x79, 0x37, 0x31, 0x66, 0x46, 0x61, 0x45, 0x7a, 0x31, 0x5a, 0x49, 0x31, 0x61, 0x42, 0x36, 0x2f, 0x71, 0x56, 0x36, 0x66, 0x77, 0x71, 0x58, 0x69, 0x79, 0x48, 0x44, 0x4a, 0x63, 0x7a, 0x71, 0x6a, 0x2f, 0x33, 0x31, 0x0a, 0x38, 0x45, 0x48, 0x48, 0x4f, 0x51, 0x55, 0x44, 0x4d, 0x59, 0x34, 0x2f, 0x4f, 0x55, 0x46, 0x2f, 0x56, 0x37, 0x6f, 0x6f, 0x4b, 0x64, 0x31, 0x33, 0x67, 0x35, 0x72, 0x7a, 0x4c, 0x41, 0x50, 0x47, 0x4e, 0x74, 0x43, 0x37, 0x6e, 0x2b, 0x56, 0x6b, 0x6a, 0x41, 0x31, 0x31, 0x78, 0x38, 0x4f, 0x6c, 0x32, 0x57, 0x62, 0x48, 0x33, 0x64, 0x6a, 0x31, 0x78, 0x4f, 0x47, 0x2f, 0x66, 0x50, 0x52, 0x57, 0x0a, 0x72, 0x63, 0x69, 0x57, 0x46, 0x61, 0x79, 0x4a, 0x72, 0x33, 0x71, 0x56, 0x6c, 0x5a, 0x2b, 0x42, 0x79, 0x31, 0x66, 0x44, 0x43, 0x59, 0x38, 0x31, 0x4d, 0x73, 0x55, 0x56, 0x41, 0x65, 0x55, 0x57, 0x2f, 0x54, 0x33, 0x6b, 0x39, 0x42, 0x6e, 0x4b, 0x67, 0x36, 0x68, 0x71, 0x61, 0x33, 0x4a, 0x47, 0x36, 0x37, 0x4e, 0x41, 0x36, 0x42, 0x72, 0x63, 0x7a, 0x4e, 0x4b, 0x53, 0x4b, 0x47, 0x79, 0x37, 0x0a, 0x70, 0x70, 0x56, 0x56, 0x41, 0x65, 0x61, 0x47, 0x44, 0x49, 0x73, 0x37, 0x62, 0x73, 0x43, 0x7a, 0x52, 0x70, 0x45, 0x42, 0x43, 0x67, 0x4e, 0x68, 0x52, 0x42, 0x5a, 0x45, 0x2f, 0x41, 0x79, 0x65, 0x77, 0x4d, 0x56, 0x6e, 0x42, 0x4a, 0x62, 0x4b, 0x41, 0x72, 0x6e, 0x72, 0x79, 0x69, 0x69, 0x38, 0x2f, 0x5a, 0x62, 0x56, 0x51, 0x55, 0x4d, 0x4c, 0x56, 0x48, 0x32, 0x70, 0x68, 0x34, 0x46, 0x69, 0x0a, 0x6b, 0x2b, 0x30, 0x56, 0x66, 0x56, 0x45, 0x43, 0x67, 0x59, 0x45, 0x41, 0x2f, 0x5a, 0x45, 0x39, 0x35, 0x71, 0x4b, 0x46, 0x6d, 0x71, 0x51, 0x65, 0x4f, 0x36, 0x6d, 0x76, 0x42, 0x37, 0x6b, 0x56, 0x6b, 0x70, 0x56, 0x4b, 0x53, 0x58, 0x47, 0x75, 0x2f, 0x59, 0x35, 0x6b, 0x46, 0x63, 0x70, 0x4c, 0x57, 0x4f, 0x63, 0x35, 0x45, 0x56, 0x48, 0x4c, 0x36, 0x46, 0x6d, 0x66, 0x7a, 0x62, 0x71, 0x42, 0x0a, 0x41, 0x78, 0x6f, 0x71, 0x39, 0x48, 0x68, 0x66, 0x4c, 0x79, 0x39, 0x61, 0x37, 0x4e, 0x7a, 0x73, 0x61, 0x43, 0x77, 0x30, 0x66, 0x34, 0x56, 0x79, 0x5a, 0x72, 0x73, 0x4f, 0x61, 0x73, 0x67, 0x42, 0x31, 0x43, 0x42, 0x5a, 0x50, 0x36, 0x30, 0x32, 0x43, 0x47, 0x69, 0x38, 0x68, 0x62, 0x48, 0x61, 0x6a, 0x4a, 0x4d, 0x77, 0x4a, 0x67, 0x37, 0x42, 0x39, 0x64, 0x38, 0x52, 0x71, 0x62, 0x67, 0x35, 0x0a, 0x76, 0x61, 0x6b, 0x45, 0x75, 0x64, 0x70, 0x42, 0x31, 0x68, 0x39, 0x6a, 0x6d, 0x39, 0x4e, 0x4a, 0x35, 0x61, 0x63, 0x52, 0x37, 0x2f, 0x76, 0x63, 0x64, 0x56, 0x70, 0x45, 0x67, 0x70, 0x6e, 0x32, 0x6e, 0x50, 0x38, 0x34, 0x52, 0x6e, 0x2f, 0x4e, 0x36, 0x72, 0x65, 0x75, 0x77, 0x52, 0x56, 0x61, 0x38, 0x2f, 0x75, 0x2b, 0x59, 0x65, 0x63, 0x43, 0x67, 0x59, 0x45, 0x41, 0x32, 0x41, 0x70, 0x36, 0x0a, 0x4f, 0x36, 0x78, 0x4d, 0x32, 0x32, 0x70, 0x4e, 0x44, 0x64, 0x33, 0x70, 0x35, 0x79, 0x50, 0x65, 0x38, 0x36, 0x38, 0x66, 0x79, 0x66, 0x35, 0x56, 0x35, 0x2f, 0x32, 0x4b, 0x6f, 0x76, 0x34, 0x76, 0x46, 0x38, 0x77, 0x66, 0x69, 0x73, 0x61, 0x45, 0x63, 0x66, 0x62, 0x2f, 0x57, 0x62, 0x4a, 0x52, 0x67, 0x77, 0x63, 0x36, 0x2f, 0x6b, 0x55, 0x55, 0x6b, 0x31, 0x6c, 0x4a, 0x6e, 0x78, 0x6e, 0x47, 0x0a, 0x50, 0x4b, 0x39, 0x38, 0x48, 0x6d, 0x6a, 0x69, 0x64, 0x35, 0x59, 0x33, 0x39, 0x64, 0x7a, 0x69, 0x6c, 0x58, 0x67, 0x74, 0x43, 0x36, 0x36, 0x58, 0x56, 0x41, 0x75, 0x30, 0x4f, 0x4a, 0x30, 0x34, 0x6c, 0x71, 0x69, 0x6c, 0x73, 0x4d, 0x34, 0x42, 0x53, 0x43, 0x64, 0x6b, 0x6c, 0x69, 0x6d, 0x70, 0x68, 0x75, 0x46, 0x73, 0x7a, 0x4a, 0x33, 0x50, 0x4f, 0x74, 0x36, 0x55, 0x37, 0x68, 0x67, 0x42, 0x0a, 0x31, 0x71, 0x73, 0x4b, 0x4d, 0x4b, 0x61, 0x75, 0x74, 0x6a, 0x33, 0x2f, 0x38, 0x76, 0x32, 0x53, 0x77, 0x63, 0x71, 0x36, 0x46, 0x49, 0x78, 0x36, 0x6c, 0x36, 0x46, 0x6f, 0x37, 0x71, 0x2b, 0x73, 0x70, 0x74, 0x56, 0x72, 0x57, 0x65, 0x63, 0x43, 0x67, 0x59, 0x42, 0x2b, 0x36, 0x63, 0x31, 0x54, 0x76, 0x4a, 0x43, 0x6d, 0x66, 0x2f, 0x4a, 0x70, 0x35, 0x6c, 0x6f, 0x6d, 0x77, 0x57, 0x71, 0x63, 0x0a, 0x76, 0x59, 0x41, 0x37, 0x46, 0x6c, 0x32, 0x42, 0x70, 0x31, 0x31, 0x4d, 0x30, 0x72, 0x32, 0x33, 0x74, 0x37, 0x4f, 0x47, 0x69, 0x61, 0x78, 0x48, 0x6c, 0x57, 0x51, 0x34, 0x73, 0x6c, 0x71, 0x55, 0x56, 0x4f, 0x71, 0x66, 0x42, 0x67, 0x69, 0x4f, 0x4d, 0x32, 0x4f, 0x4e, 0x48, 0x6c, 0x35, 0x74, 0x48, 0x59, 0x4d, 0x42, 0x4f, 0x4b, 0x65, 0x7a, 0x35, 0x33, 0x67, 0x6c, 0x31, 0x67, 0x6d, 0x6b, 0x0a, 0x52, 0x4c, 0x53, 0x6d, 0x2f, 0x47, 0x6b, 0x49, 0x2b, 0x48, 0x4d, 0x7a, 0x62, 0x33, 0x74, 0x31, 0x31, 0x4d, 0x33, 0x4b, 0x6e, 0x71, 0x52, 0x53, 0x44, 0x64, 0x35, 0x6e, 0x56, 0x6b, 0x41, 0x41, 0x50, 0x37, 0x4b, 0x50, 0x32, 0x30, 0x41, 0x4d, 0x6a, 0x68, 0x56, 0x72, 0x44, 0x75, 0x76, 0x7a, 0x75, 0x42, 0x56, 0x77, 0x53, 0x6c, 0x31, 0x6a, 0x6c, 0x31, 0x53, 0x6e, 0x45, 0x61, 0x79, 0x76, 0x0a, 0x6b, 0x38, 0x5a, 0x30, 0x38, 0x73, 0x37, 0x37, 0x35, 0x67, 0x66, 0x66, 0x75, 0x48, 0x4b, 0x58, 0x6e, 0x36, 0x38, 0x41, 0x6a, 0x51, 0x4b, 0x42, 0x67, 0x46, 0x58, 0x73, 0x4c, 0x4e, 0x73, 0x6f, 0x31, 0x74, 0x52, 0x35, 0x50, 0x62, 0x59, 0x6a, 0x4b, 0x56, 0x44, 0x39, 0x69, 0x6b, 0x47, 0x65, 0x78, 0x2b, 0x54, 0x64, 0x57, 0x36, 0x74, 0x4e, 0x77, 0x6d, 0x4b, 0x36, 0x39, 0x31, 0x33, 0x65, 0x0a, 0x6d, 0x44, 0x6a, 0x6f, 0x5a, 0x57, 0x71, 0x79, 0x45, 0x72, 0x4c, 0x49, 0x34, 0x66, 0x52, 0x62, 0x33, 0x74, 0x47, 0x63, 0x42, 0x65, 0x66, 0x6f, 0x6e, 0x67, 0x68, 0x43, 0x42, 0x76, 0x37, 0x42, 0x79, 0x48, 0x71, 0x4c, 0x75, 0x6d, 0x35, 0x58, 0x64, 0x32, 0x41, 0x34, 0x66, 0x6f, 0x46, 0x31, 0x37, 0x32, 0x78, 0x79, 0x2f, 0x73, 0x71, 0x31, 0x63, 0x50, 0x4d, 0x48, 0x54, 0x4b, 0x64, 0x57, 0x0a, 0x34, 0x62, 0x63, 0x6b, 0x35, 0x34, 0x75, 0x62, 0x35, 0x7a, 0x78, 0x31, 0x79, 0x32, 0x2f, 0x53, 0x6e, 0x69, 0x50, 0x76, 0x4b, 0x36, 0x6b, 0x39, 0x4e, 0x7a, 0x78, 0x4f, 0x6e, 0x67, 0x53, 0x54, 0x75, 0x42, 0x54, 0x4c, 0x5a, 0x6a, 0x63, 0x6a, 0x42, 0x33, 0x58, 0x4c, 0x39, 0x68, 0x39, 0x50, 0x45, 0x70, 0x7a, 0x7a, 0x6c, 0x68, 0x70, 0x53, 0x58, 0x74, 0x70, 0x33, 0x55, 0x68, 0x4a, 0x30, 0x0a, 0x56, 0x53, 0x4c, 0x48, 0x41, 0x6f, 0x47, 0x41, 0x44, 0x4e, 0x79, 0x6b, 0x52, 0x50, 0x32, 0x55, 0x38, 0x34, 0x78, 0x70, 0x50, 0x6d, 0x36, 0x77, 0x31, 0x69, 0x36, 0x72, 0x47, 0x48, 0x71, 0x50, 0x38, 0x67, 0x65, 0x2b, 0x4f, 0x6f, 0x6f, 0x77, 0x69, 0x47, 0x47, 0x4b, 0x48, 0x54, 0x45, 0x48, 0x72, 0x56, 0x39, 0x53, 0x79, 0x66, 0x6c, 0x2f, 0x63, 0x42, 0x39, 0x55, 0x4d, 0x65, 0x79, 0x43, 0x0a, 0x45, 0x49, 0x68, 0x46, 0x37, 0x4e, 0x71, 0x6b, 0x35, 0x76, 0x2b, 0x4d, 0x68, 0x2b, 0x50, 0x31, 0x52, 0x49, 0x52, 0x71, 0x35, 0x39, 0x66, 0x4d, 0x41, 0x34, 0x72, 0x4e, 0x7a, 0x6d, 0x61, 0x78, 0x65, 0x6b, 0x35, 0x72, 0x4b, 0x36, 0x45, 0x50, 0x67, 0x31, 0x62, 0x2f, 0x67, 0x78, 0x7a, 0x45, 0x73, 0x4c, 0x56, 0x45, 0x45, 0x42, 0x58, 0x49, 0x51, 0x35, 0x57, 0x57, 0x6e, 0x58, 0x6a, 0x52, 0x0a, 0x75, 0x2b, 0x5a, 0x56, 0x49, 0x37, 0x33, 0x68, 0x62, 0x36, 0x79, 0x56, 0x56, 0x70, 0x75, 0x6f, 0x4e, 0x68, 0x52, 0x43, 0x67, 0x59, 0x67, 0x45, 0x70, 0x48, 0x6b, 0x6e, 0x47, 0x43, 0x45, 0x76, 0x62, 0x55, 0x52, 0x4b, 0x4f, 0x68, 0x79, 0x44, 0x4d, 0x4e, 0x69, 0x6c, 0x49, 0x6a, 0x31, 0x6d, 0x71, 0x44, 0x4d, 0x3d, 0x0a, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x45, 0x4e, 0x44, 0x20, 0x52, 0x53, 0x41, 0x20, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x20, 0x4b, 0x45, 0x59, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x0a }; unsigned char ca_cert[] = { 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x42, 0x45, 0x47, 0x49, 0x4e, 0x20, 0x43, 0x45, 0x52, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x45, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x0a, 0x4d, 0x49, 0x49, 0x44, 0x48, 0x44, 0x43, 0x43, 0x41, 0x67, 0x51, 0x43, 0x43, 0x51, 0x44, 0x43, 0x44, 0x35, 0x33, 0x59, 0x5a, 0x4a, 0x4a, 0x37, 0x6c, 0x6a, 0x41, 0x4e, 0x42, 0x67, 0x6b, 0x71, 0x68, 0x6b, 0x69, 0x47, 0x39, 0x77, 0x30, 0x42, 0x41, 0x51, 0x73, 0x46, 0x41, 0x44, 0x42, 0x50, 0x4d, 0x52, 0x73, 0x77, 0x47, 0x51, 0x59, 0x44, 0x56, 0x51, 0x51, 0x4b, 0x45, 0x78, 0x4a, 0x73, 0x0a, 0x61, 0x57, 0x4a, 0x33, 0x5a, 0x57, 0x4a, 0x7a, 0x62, 0x32, 0x4e, 0x72, 0x5a, 0x58, 0x52, 0x7a, 0x4c, 0x58, 0x52, 0x6c, 0x63, 0x33, 0x51, 0x78, 0x45, 0x6a, 0x41, 0x51, 0x42, 0x67, 0x4e, 0x56, 0x42, 0x41, 0x63, 0x54, 0x43, 0x56, 0x68, 0x70, 0x59, 0x57, 0x39, 0x69, 0x61, 0x58, 0x52, 0x68, 0x62, 0x6a, 0x45, 0x50, 0x4d, 0x41, 0x30, 0x47, 0x41, 0x31, 0x55, 0x45, 0x43, 0x42, 0x4d, 0x47, 0x0a, 0x56, 0x47, 0x46, 0x70, 0x63, 0x47, 0x56, 0x70, 0x4d, 0x51, 0x73, 0x77, 0x43, 0x51, 0x59, 0x44, 0x56, 0x51, 0x51, 0x47, 0x45, 0x77, 0x4a, 0x55, 0x56, 0x7a, 0x41, 0x67, 0x46, 0x77, 0x30, 0x79, 0x4d, 0x6a, 0x41, 0x33, 0x4d, 0x44, 0x59, 0x78, 0x4d, 0x54, 0x49, 0x30, 0x4d, 0x6a, 0x42, 0x61, 0x47, 0x41, 0x38, 0x79, 0x4d, 0x44, 0x55, 0x77, 0x4d, 0x44, 0x63, 0x78, 0x4f, 0x54, 0x45, 0x78, 0x0a, 0x4d, 0x6a, 0x51, 0x79, 0x4d, 0x46, 0x6f, 0x77, 0x54, 0x7a, 0x45, 0x62, 0x4d, 0x42, 0x6b, 0x47, 0x41, 0x31, 0x55, 0x45, 0x43, 0x68, 0x4d, 0x53, 0x62, 0x47, 0x6c, 0x69, 0x64, 0x32, 0x56, 0x69, 0x63, 0x32, 0x39, 0x6a, 0x61, 0x32, 0x56, 0x30, 0x63, 0x79, 0x31, 0x30, 0x5a, 0x58, 0x4e, 0x30, 0x4d, 0x52, 0x49, 0x77, 0x45, 0x41, 0x59, 0x44, 0x56, 0x51, 0x51, 0x48, 0x45, 0x77, 0x6c, 0x59, 0x0a, 0x61, 0x57, 0x46, 0x76, 0x59, 0x6d, 0x6c, 0x30, 0x59, 0x57, 0x34, 0x78, 0x44, 0x7a, 0x41, 0x4e, 0x42, 0x67, 0x4e, 0x56, 0x42, 0x41, 0x67, 0x54, 0x42, 0x6c, 0x52, 0x68, 0x61, 0x58, 0x42, 0x6c, 0x61, 0x54, 0x45, 0x4c, 0x4d, 0x41, 0x6b, 0x47, 0x41, 0x31, 0x55, 0x45, 0x42, 0x68, 0x4d, 0x43, 0x56, 0x46, 0x63, 0x77, 0x67, 0x67, 0x45, 0x69, 0x4d, 0x41, 0x30, 0x47, 0x43, 0x53, 0x71, 0x47, 0x0a, 0x53, 0x49, 0x62, 0x33, 0x44, 0x51, 0x45, 0x42, 0x41, 0x51, 0x55, 0x41, 0x41, 0x34, 0x49, 0x42, 0x44, 0x77, 0x41, 0x77, 0x67, 0x67, 0x45, 0x4b, 0x41, 0x6f, 0x49, 0x42, 0x41, 0x51, 0x44, 0x56, 0x2f, 0x4f, 0x7a, 0x35, 0x56, 0x73, 0x58, 0x33, 0x56, 0x34, 0x52, 0x38, 0x76, 0x61, 0x41, 0x4e, 0x79, 0x50, 0x49, 0x4d, 0x61, 0x46, 0x73, 0x79, 0x67, 0x4d, 0x65, 0x57, 0x70, 0x4b, 0x61, 0x6e, 0x0a, 0x48, 0x4d, 0x54, 0x34, 0x6b, 0x66, 0x69, 0x67, 0x55, 0x59, 0x55, 0x48, 0x55, 0x59, 0x65, 0x4c, 0x6b, 0x62, 0x50, 0x65, 0x77, 0x5a, 0x41, 0x79, 0x63, 0x43, 0x66, 0x59, 0x73, 0x43, 0x64, 0x42, 0x4a, 0x6d, 0x73, 0x58, 0x43, 0x58, 0x43, 0x73, 0x66, 0x69, 0x45, 0x4c, 0x70, 0x75, 0x59, 0x6e, 0x65, 0x70, 0x52, 0x65, 0x74, 0x72, 0x5a, 0x32, 0x39, 0x77, 0x54, 0x6a, 0x2f, 0x62, 0x2b, 0x6d, 0x0a, 0x32, 0x54, 0x6a, 0x55, 0x62, 0x32, 0x47, 0x34, 0x51, 0x36, 0x37, 0x43, 0x4b, 0x53, 0x48, 0x4e, 0x6c, 0x68, 0x36, 0x43, 0x51, 0x71, 0x46, 0x76, 0x45, 0x57, 0x6e, 0x42, 0x58, 0x2b, 0x38, 0x66, 0x59, 0x65, 0x68, 0x51, 0x54, 0x33, 0x51, 0x77, 0x4a, 0x58, 0x4e, 0x39, 0x68, 0x56, 0x42, 0x75, 0x50, 0x78, 0x44, 0x2b, 0x78, 0x41, 0x2b, 0x62, 0x49, 0x36, 0x5a, 0x32, 0x38, 0x57, 0x30, 0x6b, 0x0a, 0x41, 0x30, 0x5a, 0x4c, 0x39, 0x46, 0x66, 0x57, 0x43, 0x54, 0x36, 0x66, 0x4f, 0x44, 0x78, 0x4d, 0x37, 0x65, 0x67, 0x6b, 0x53, 0x53, 0x6d, 0x4b, 0x65, 0x44, 0x67, 0x54, 0x55, 0x73, 0x6e, 0x35, 0x77, 0x64, 0x38, 0x52, 0x38, 0x6b, 0x51, 0x68, 0x6b, 0x34, 0x79, 0x49, 0x32, 0x4b, 0x50, 0x55, 0x79, 0x73, 0x2b, 0x6e, 0x59, 0x78, 0x7a, 0x6f, 0x77, 0x6a, 0x4e, 0x4f, 0x69, 0x38, 0x75, 0x68, 0x0a, 0x44, 0x58, 0x7a, 0x72, 0x2b, 0x46, 0x78, 0x67, 0x2f, 0x70, 0x73, 0x36, 0x38, 0x56, 0x69, 0x5a, 0x6a, 0x47, 0x46, 0x67, 0x58, 0x53, 0x46, 0x48, 0x77, 0x35, 0x5a, 0x49, 0x76, 0x52, 0x51, 0x54, 0x47, 0x49, 0x32, 0x68, 0x30, 0x54, 0x39, 0x71, 0x6d, 0x48, 0x50, 0x30, 0x42, 0x56, 0x46, 0x79, 0x62, 0x4a, 0x75, 0x39, 0x73, 0x36, 0x58, 0x44, 0x59, 0x75, 0x6f, 0x4d, 0x38, 0x45, 0x4a, 0x73, 0x0a, 0x57, 0x53, 0x73, 0x2b, 0x34, 0x76, 0x4f, 0x61, 0x63, 0x61, 0x54, 0x45, 0x56, 0x59, 0x41, 0x51, 0x46, 0x35, 0x48, 0x78, 0x41, 0x4c, 0x66, 0x43, 0x74, 0x61, 0x4f, 0x65, 0x50, 0x6a, 0x53, 0x70, 0x2b, 0x66, 0x66, 0x45, 0x2b, 0x55, 0x30, 0x43, 0x78, 0x59, 0x46, 0x33, 0x4e, 0x48, 0x39, 0x33, 0x59, 0x4b, 0x5a, 0x78, 0x41, 0x67, 0x4d, 0x42, 0x41, 0x41, 0x45, 0x77, 0x44, 0x51, 0x59, 0x4a, 0x0a, 0x4b, 0x6f, 0x5a, 0x49, 0x68, 0x76, 0x63, 0x4e, 0x41, 0x51, 0x45, 0x4c, 0x42, 0x51, 0x41, 0x44, 0x67, 0x67, 0x45, 0x42, 0x41, 0x49, 0x6d, 0x4a, 0x76, 0x71, 0x6e, 0x70, 0x50, 0x64, 0x53, 0x75, 0x46, 0x4f, 0x5a, 0x54, 0x36, 0x76, 0x74, 0x48, 0x31, 0x70, 0x4a, 0x43, 0x45, 0x76, 0x4a, 0x39, 0x62, 0x53, 0x78, 0x31, 0x43, 0x41, 0x76, 0x36, 0x46, 0x34, 0x46, 0x44, 0x6f, 0x77, 0x4b, 0x77, 0x0a, 0x43, 0x71, 0x4b, 0x53, 0x6c, 0x59, 0x45, 0x6a, 0x72, 0x49, 0x4c, 0x64, 0x6c, 0x42, 0x30, 0x39, 0x32, 0x31, 0x4f, 0x54, 0x30, 0x76, 0x61, 0x68, 0x33, 0x6c, 0x55, 0x76, 0x2f, 0x6b, 0x47, 0x4e, 0x4c, 0x76, 0x58, 0x55, 0x71, 0x54, 0x69, 0x42, 0x61, 0x6b, 0x77, 0x66, 0x52, 0x47, 0x30, 0x39, 0x61, 0x49, 0x45, 0x6e, 0x53, 0x68, 0x6d, 0x79, 0x6f, 0x30, 0x68, 0x63, 0x65, 0x4f, 0x68, 0x33, 0x0a, 0x4f, 0x31, 0x4b, 0x4b, 0x59, 0x76, 0x4a, 0x32, 0x6a, 0x4a, 0x47, 0x6b, 0x36, 0x50, 0x6c, 0x52, 0x78, 0x65, 0x53, 0x67, 0x37, 0x64, 0x35, 0x4d, 0x69, 0x37, 0x58, 0x67, 0x6e, 0x41, 0x64, 0x65, 0x61, 0x78, 0x77, 0x68, 0x75, 0x76, 0x5a, 0x5a, 0x6d, 0x61, 0x49, 0x7a, 0x62, 0x68, 0x41, 0x57, 0x50, 0x38, 0x71, 0x67, 0x49, 0x30, 0x36, 0x50, 0x32, 0x52, 0x42, 0x53, 0x35, 0x42, 0x4a, 0x76, 0x0a, 0x72, 0x44, 0x44, 0x33, 0x44, 0x68, 0x77, 0x38, 0x4e, 0x38, 0x47, 0x77, 0x42, 0x44, 0x31, 0x52, 0x59, 0x32, 0x79, 0x4b, 0x72, 0x79, 0x46, 0x51, 0x2b, 0x34, 0x55, 0x32, 0x31, 0x45, 0x72, 0x73, 0x77, 0x2f, 0x33, 0x38, 0x63, 0x59, 0x38, 0x55, 0x41, 0x46, 0x54, 0x6b, 0x67, 0x33, 0x72, 0x57, 0x72, 0x34, 0x44, 0x57, 0x78, 0x36, 0x74, 0x6e, 0x49, 0x66, 0x64, 0x72, 0x4e, 0x31, 0x49, 0x49, 0x0a, 0x70, 0x52, 0x71, 0x53, 0x78, 0x48, 0x51, 0x57, 0x34, 0x6b, 0x5a, 0x61, 0x67, 0x31, 0x75, 0x5a, 0x64, 0x46, 0x63, 0x53, 0x69, 0x61, 0x59, 0x54, 0x2b, 0x65, 0x62, 0x4c, 0x57, 0x56, 0x58, 0x41, 0x7a, 0x62, 0x66, 0x4a, 0x4c, 0x4f, 0x56, 0x38, 0x45, 0x46, 0x46, 0x33, 0x52, 0x44, 0x43, 0x2f, 0x41, 0x33, 0x55, 0x33, 0x56, 0x63, 0x4f, 0x52, 0x44, 0x42, 0x44, 0x57, 0x44, 0x68, 0x6d, 0x68, 0x0a, 0x38, 0x72, 0x34, 0x54, 0x2b, 0x36, 0x46, 0x67, 0x67, 0x59, 0x4c, 0x32, 0x65, 0x6a, 0x4d, 0x6d, 0x66, 0x77, 0x62, 0x65, 0x77, 0x7a, 0x49, 0x2b, 0x48, 0x6d, 0x34, 0x53, 0x69, 0x64, 0x67, 0x4f, 0x78, 0x4c, 0x66, 0x31, 0x46, 0x78, 0x31, 0x64, 0x32, 0x76, 0x34, 0x3d, 0x0a, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x45, 0x4e, 0x44, 0x20, 0x43, 0x45, 0x52, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x45, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x0a #ifdef CONFIG_MBEDTLS , 0x00 #endif }; unsigned char node_key[] = { 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x42, 0x45, 0x47, 0x49, 0x4e, 0x20, 0x52, 0x53, 0x41, 0x20, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x20, 0x4b, 0x45, 0x59, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x0a, 0x4d, 0x49, 0x49, 0x4a, 0x4b, 0x51, 0x49, 0x42, 0x41, 0x41, 0x4b, 0x43, 0x41, 0x67, 0x45, 0x41, 0x72, 0x77, 0x53, 0x79, 0x4e, 0x6e, 0x68, 0x66, 0x76, 0x44, 0x69, 0x63, 0x47, 0x4a, 0x4f, 0x42, 0x66, 0x55, 0x51, 0x4c, 0x47, 0x45, 0x70, 0x4b, 0x43, 0x32, 0x2f, 0x4e, 0x32, 0x35, 0x54, 0x6f, 0x32, 0x4b, 0x66, 0x36, 0x36, 0x7a, 0x6b, 0x44, 0x62, 0x33, 0x6d, 0x34, 0x49, 0x50, 0x77, 0x4c, 0x0a, 0x63, 0x63, 0x78, 0x47, 0x57, 0x48, 0x57, 0x75, 0x65, 0x78, 0x69, 0x70, 0x6d, 0x76, 0x41, 0x77, 0x46, 0x2b, 0x58, 0x32, 0x36, 0x46, 0x47, 0x7a, 0x35, 0x66, 0x4a, 0x64, 0x71, 0x38, 0x46, 0x68, 0x77, 0x6c, 0x71, 0x2b, 0x6e, 0x71, 0x6a, 0x34, 0x50, 0x68, 0x6c, 0x2f, 0x51, 0x2b, 0x77, 0x55, 0x42, 0x6c, 0x51, 0x2b, 0x58, 0x4d, 0x6a, 0x71, 0x49, 0x70, 0x77, 0x79, 0x7a, 0x70, 0x5a, 0x6d, 0x0a, 0x34, 0x48, 0x6d, 0x2b, 0x4f, 0x4f, 0x43, 0x4b, 0x66, 0x73, 0x79, 0x58, 0x64, 0x6d, 0x4c, 0x4c, 0x70, 0x46, 0x79, 0x56, 0x6b, 0x34, 0x72, 0x72, 0x32, 0x47, 0x51, 0x34, 0x4b, 0x46, 0x53, 0x51, 0x58, 0x51, 0x58, 0x79, 0x5a, 0x78, 0x78, 0x62, 0x4e, 0x46, 0x64, 0x67, 0x6e, 0x43, 0x72, 0x76, 0x6d, 0x74, 0x6b, 0x49, 0x42, 0x51, 0x62, 0x76, 0x6d, 0x6e, 0x42, 0x79, 0x50, 0x2b, 0x77, 0x6e, 0x0a, 0x65, 0x7a, 0x68, 0x55, 0x51, 0x4b, 0x4c, 0x6b, 0x6d, 0x51, 0x50, 0x32, 0x53, 0x6a, 0x37, 0x65, 0x52, 0x7a, 0x4c, 0x6f, 0x79, 0x58, 0x32, 0x71, 0x41, 0x49, 0x75, 0x43, 0x46, 0x59, 0x62, 0x57, 0x41, 0x36, 0x44, 0x57, 0x53, 0x39, 0x50, 0x4c, 0x56, 0x75, 0x67, 0x71, 0x53, 0x76, 0x4c, 0x65, 0x51, 0x71, 0x7a, 0x31, 0x74, 0x70, 0x32, 0x66, 0x5a, 0x70, 0x68, 0x42, 0x64, 0x6a, 0x66, 0x49, 0x0a, 0x6c, 0x65, 0x44, 0x42, 0x75, 0x7a, 0x59, 0x67, 0x42, 0x30, 0x61, 0x63, 0x39, 0x79, 0x44, 0x48, 0x31, 0x6d, 0x65, 0x65, 0x51, 0x4f, 0x43, 0x4e, 0x50, 0x61, 0x7a, 0x52, 0x41, 0x63, 0x57, 0x57, 0x77, 0x75, 0x2b, 0x6f, 0x56, 0x57, 0x6d, 0x45, 0x42, 0x45, 0x6b, 0x50, 0x44, 0x49, 0x31, 0x70, 0x68, 0x75, 0x6e, 0x44, 0x39, 0x33, 0x33, 0x47, 0x31, 0x52, 0x63, 0x57, 0x64, 0x6d, 0x51, 0x55, 0x0a, 0x72, 0x37, 0x6b, 0x48, 0x65, 0x50, 0x4d, 0x50, 0x77, 0x35, 0x70, 0x33, 0x42, 0x7a, 0x2b, 0x71, 0x6a, 0x71, 0x61, 0x48, 0x2b, 0x36, 0x6f, 0x43, 0x54, 0x68, 0x5a, 0x43, 0x6f, 0x2b, 0x59, 0x55, 0x39, 0x68, 0x51, 0x2f, 0x34, 0x2b, 0x48, 0x77, 0x4d, 0x4e, 0x79, 0x38, 0x51, 0x73, 0x79, 0x6a, 0x61, 0x6d, 0x66, 0x37, 0x31, 0x7a, 0x35, 0x67, 0x34, 0x43, 0x68, 0x65, 0x32, 0x34, 0x51, 0x50, 0x0a, 0x66, 0x63, 0x6e, 0x30, 0x33, 0x57, 0x79, 0x2f, 0x5a, 0x52, 0x61, 0x75, 0x53, 0x67, 0x73, 0x51, 0x6e, 0x79, 0x7a, 0x68, 0x72, 0x5a, 0x7a, 0x39, 0x57, 0x4a, 0x35, 0x2b, 0x38, 0x77, 0x55, 0x71, 0x6a, 0x34, 0x34, 0x51, 0x38, 0x45, 0x36, 0x70, 0x59, 0x52, 0x4c, 0x30, 0x68, 0x34, 0x78, 0x65, 0x49, 0x73, 0x45, 0x4f, 0x76, 0x2b, 0x49, 0x77, 0x4e, 0x62, 0x56, 0x59, 0x6d, 0x38, 0x57, 0x31, 0x0a, 0x62, 0x48, 0x5a, 0x62, 0x64, 0x57, 0x31, 0x53, 0x65, 0x4d, 0x77, 0x70, 0x74, 0x45, 0x62, 0x37, 0x47, 0x50, 0x67, 0x55, 0x61, 0x4f, 0x2f, 0x79, 0x4a, 0x7a, 0x2f, 0x68, 0x4b, 0x71, 0x63, 0x72, 0x70, 0x49, 0x4a, 0x37, 0x2f, 0x49, 0x6f, 0x61, 0x41, 0x54, 0x4b, 0x2b, 0x6a, 0x39, 0x70, 0x38, 0x32, 0x62, 0x33, 0x51, 0x69, 0x32, 0x2f, 0x55, 0x54, 0x70, 0x71, 0x49, 0x44, 0x49, 0x67, 0x79, 0x0a, 0x79, 0x5a, 0x41, 0x4c, 0x55, 0x6b, 0x36, 0x68, 0x57, 0x48, 0x39, 0x37, 0x53, 0x6f, 0x4d, 0x61, 0x71, 0x6b, 0x68, 0x55, 0x6a, 0x73, 0x44, 0x38, 0x36, 0x7a, 0x50, 0x32, 0x31, 0x4b, 0x48, 0x45, 0x4e, 0x35, 0x47, 0x35, 0x6b, 0x58, 0x33, 0x36, 0x41, 0x77, 0x79, 0x66, 0x53, 0x45, 0x41, 0x6d, 0x52, 0x76, 0x6c, 0x48, 0x63, 0x7a, 0x47, 0x6a, 0x78, 0x66, 0x71, 0x51, 0x50, 0x42, 0x71, 0x7a, 0x0a, 0x4d, 0x63, 0x65, 0x39, 0x46, 0x53, 0x78, 0x39, 0x4e, 0x2b, 0x52, 0x39, 0x62, 0x77, 0x2f, 0x56, 0x42, 0x73, 0x66, 0x43, 0x63, 0x7a, 0x46, 0x35, 0x4c, 0x4b, 0x6d, 0x37, 0x52, 0x6f, 0x6a, 0x48, 0x44, 0x35, 0x7a, 0x77, 0x4f, 0x62, 0x4f, 0x33, 0x36, 0x57, 0x7a, 0x74, 0x75, 0x50, 0x61, 0x62, 0x62, 0x6f, 0x66, 0x7a, 0x30, 0x6d, 0x46, 0x69, 0x56, 0x79, 0x75, 0x46, 0x33, 0x63, 0x4f, 0x62, 0x0a, 0x2f, 0x74, 0x71, 0x47, 0x56, 0x56, 0x39, 0x33, 0x6e, 0x49, 0x72, 0x41, 0x42, 0x62, 0x79, 0x2f, 0x44, 0x62, 0x42, 0x62, 0x49, 0x51, 0x4a, 0x58, 0x4c, 0x73, 0x73, 0x74, 0x6e, 0x70, 0x77, 0x70, 0x6c, 0x5a, 0x62, 0x61, 0x5a, 0x6b, 0x59, 0x71, 0x50, 0x76, 0x4f, 0x37, 0x47, 0x52, 0x56, 0x37, 0x30, 0x48, 0x38, 0x77, 0x4e, 0x4f, 0x35, 0x4f, 0x66, 0x33, 0x4d, 0x43, 0x41, 0x77, 0x45, 0x41, 0x0a, 0x41, 0x51, 0x4b, 0x43, 0x41, 0x67, 0x42, 0x6c, 0x78, 0x33, 0x56, 0x62, 0x39, 0x2b, 0x53, 0x30, 0x73, 0x4c, 0x63, 0x57, 0x45, 0x37, 0x48, 0x61, 0x42, 0x78, 0x66, 0x73, 0x71, 0x45, 0x63, 0x6e, 0x48, 0x33, 0x32, 0x33, 0x6c, 0x49, 0x46, 0x55, 0x66, 0x56, 0x75, 0x4f, 0x4c, 0x7a, 0x6d, 0x77, 0x4f, 0x6a, 0x69, 0x35, 0x39, 0x64, 0x6b, 0x78, 0x39, 0x48, 0x6c, 0x30, 0x4e, 0x2f, 0x75, 0x66, 0x0a, 0x32, 0x6c, 0x66, 0x48, 0x6f, 0x71, 0x5a, 0x56, 0x50, 0x34, 0x61, 0x32, 0x30, 0x38, 0x79, 0x71, 0x6a, 0x4b, 0x65, 0x73, 0x6d, 0x6d, 0x6b, 0x66, 0x66, 0x57, 0x59, 0x64, 0x48, 0x6d, 0x59, 0x2b, 0x74, 0x74, 0x55, 0x72, 0x79, 0x72, 0x35, 0x61, 0x62, 0x2b, 0x4e, 0x55, 0x55, 0x67, 0x4c, 0x57, 0x33, 0x62, 0x38, 0x75, 0x4a, 0x49, 0x6a, 0x76, 0x51, 0x64, 0x30, 0x39, 0x64, 0x6c, 0x63, 0x55, 0x0a, 0x4a, 0x69, 0x5a, 0x75, 0x30, 0x6b, 0x56, 0x61, 0x37, 0x2f, 0x79, 0x4d, 0x4d, 0x4e, 0x32, 0x32, 0x6d, 0x5a, 0x47, 0x4f, 0x34, 0x70, 0x36, 0x52, 0x65, 0x6b, 0x50, 0x64, 0x63, 0x73, 0x41, 0x58, 0x55, 0x44, 0x6a, 0x2b, 0x6d, 0x48, 0x6c, 0x2b, 0x73, 0x33, 0x66, 0x57, 0x64, 0x4a, 0x49, 0x69, 0x58, 0x67, 0x49, 0x53, 0x36, 0x6d, 0x4b, 0x4c, 0x5a, 0x64, 0x61, 0x5a, 0x51, 0x43, 0x46, 0x77, 0x0a, 0x57, 0x72, 0x31, 0x2f, 0x72, 0x38, 0x2f, 0x54, 0x31, 0x2b, 0x64, 0x49, 0x52, 0x61, 0x76, 0x33, 0x5a, 0x53, 0x6e, 0x68, 0x47, 0x75, 0x69, 0x61, 0x63, 0x34, 0x34, 0x72, 0x79, 0x70, 0x38, 0x56, 0x69, 0x79, 0x34, 0x4e, 0x4a, 0x2b, 0x2f, 0x5a, 0x46, 0x6e, 0x78, 0x4f, 0x46, 0x70, 0x76, 0x38, 0x4c, 0x63, 0x37, 0x6a, 0x30, 0x4d, 0x7a, 0x31, 0x58, 0x42, 0x39, 0x4e, 0x6e, 0x38, 0x78, 0x41, 0x0a, 0x62, 0x76, 0x41, 0x5a, 0x52, 0x78, 0x62, 0x76, 0x75, 0x4a, 0x4a, 0x76, 0x61, 0x43, 0x61, 0x37, 0x46, 0x79, 0x54, 0x30, 0x77, 0x74, 0x4e, 0x4a, 0x79, 0x64, 0x55, 0x36, 0x31, 0x6f, 0x48, 0x50, 0x66, 0x43, 0x30, 0x6b, 0x50, 0x35, 0x68, 0x2b, 0x76, 0x4c, 0x4d, 0x5a, 0x32, 0x69, 0x73, 0x6e, 0x41, 0x4b, 0x59, 0x76, 0x63, 0x30, 0x51, 0x55, 0x62, 0x4b, 0x58, 0x4c, 0x30, 0x49, 0x33, 0x36, 0x0a, 0x55, 0x6e, 0x6d, 0x6c, 0x33, 0x59, 0x42, 0x79, 0x4e, 0x4b, 0x59, 0x66, 0x31, 0x46, 0x35, 0x43, 0x79, 0x75, 0x38, 0x32, 0x49, 0x54, 0x64, 0x50, 0x59, 0x37, 0x64, 0x43, 0x39, 0x39, 0x55, 0x6f, 0x6e, 0x2f, 0x47, 0x35, 0x66, 0x52, 0x55, 0x56, 0x6e, 0x61, 0x6d, 0x58, 0x34, 0x41, 0x2b, 0x4e, 0x62, 0x66, 0x47, 0x45, 0x68, 0x6c, 0x4a, 0x32, 0x58, 0x58, 0x55, 0x51, 0x58, 0x54, 0x69, 0x68, 0x0a, 0x41, 0x77, 0x46, 0x75, 0x5a, 0x48, 0x72, 0x54, 0x48, 0x41, 0x4a, 0x58, 0x39, 0x64, 0x6f, 0x77, 0x34, 0x4c, 0x51, 0x51, 0x75, 0x49, 0x68, 0x44, 0x50, 0x4f, 0x59, 0x55, 0x4e, 0x7a, 0x5a, 0x6f, 0x34, 0x57, 0x30, 0x34, 0x44, 0x44, 0x4a, 0x2b, 0x62, 0x75, 0x66, 0x34, 0x67, 0x7a, 0x70, 0x4e, 0x68, 0x31, 0x39, 0x59, 0x52, 0x65, 0x42, 0x44, 0x75, 0x7a, 0x67, 0x33, 0x43, 0x54, 0x62, 0x59, 0x0a, 0x4b, 0x38, 0x52, 0x45, 0x6e, 0x58, 0x76, 0x4d, 0x59, 0x34, 0x4b, 0x44, 0x36, 0x63, 0x69, 0x4d, 0x4f, 0x72, 0x61, 0x78, 0x4a, 0x53, 0x31, 0x43, 0x49, 0x6d, 0x67, 0x53, 0x70, 0x68, 0x56, 0x70, 0x50, 0x37, 0x54, 0x77, 0x4f, 0x4f, 0x6c, 0x62, 0x75, 0x78, 0x6a, 0x39, 0x76, 0x31, 0x45, 0x63, 0x54, 0x41, 0x78, 0x34, 0x49, 0x68, 0x31, 0x38, 0x71, 0x72, 0x71, 0x6c, 0x36, 0x32, 0x32, 0x56, 0x0a, 0x34, 0x45, 0x70, 0x34, 0x6c, 0x62, 0x2f, 0x4a, 0x78, 0x57, 0x6e, 0x58, 0x4e, 0x48, 0x77, 0x2f, 0x7a, 0x32, 0x64, 0x70, 0x64, 0x4d, 0x55, 0x6b, 0x4a, 0x4a, 0x66, 0x33, 0x6c, 0x6d, 0x6e, 0x2b, 0x2f, 0x34, 0x5a, 0x56, 0x2b, 0x67, 0x4e, 0x42, 0x74, 0x42, 0x79, 0x71, 0x4c, 0x52, 0x49, 0x50, 0x54, 0x47, 0x32, 0x6c, 0x37, 0x4f, 0x34, 0x55, 0x6e, 0x52, 0x2f, 0x32, 0x69, 0x75, 0x71, 0x78, 0x0a, 0x30, 0x77, 0x4b, 0x70, 0x59, 0x37, 0x54, 0x68, 0x34, 0x49, 0x66, 0x58, 0x6a, 0x53, 0x56, 0x57, 0x36, 0x73, 0x4f, 0x63, 0x2b, 0x4a, 0x77, 0x37, 0x64, 0x35, 0x68, 0x73, 0x56, 0x2f, 0x7a, 0x37, 0x41, 0x55, 0x52, 0x45, 0x45, 0x4a, 0x34, 0x57, 0x58, 0x36, 0x4e, 0x4e, 0x70, 0x42, 0x77, 0x51, 0x5a, 0x4e, 0x32, 0x56, 0x78, 0x48, 0x30, 0x37, 0x49, 0x78, 0x79, 0x76, 0x6b, 0x33, 0x5a, 0x51, 0x0a, 0x58, 0x67, 0x56, 0x51, 0x58, 0x4e, 0x68, 0x72, 0x79, 0x4e, 0x43, 0x49, 0x57, 0x70, 0x74, 0x2f, 0x66, 0x57, 0x69, 0x76, 0x75, 0x50, 0x43, 0x7a, 0x77, 0x74, 0x32, 0x55, 0x74, 0x4f, 0x72, 0x70, 0x2f, 0x35, 0x57, 0x43, 0x35, 0x37, 0x77, 0x31, 0x65, 0x65, 0x4d, 0x73, 0x58, 0x63, 0x68, 0x72, 0x41, 0x51, 0x4b, 0x43, 0x41, 0x51, 0x45, 0x41, 0x35, 0x4b, 0x48, 0x7a, 0x4c, 0x34, 0x76, 0x57, 0x0a, 0x42, 0x58, 0x65, 0x66, 0x6f, 0x36, 0x2f, 0x4b, 0x68, 0x77, 0x49, 0x4a, 0x41, 0x37, 0x79, 0x35, 0x54, 0x53, 0x67, 0x41, 0x62, 0x44, 0x68, 0x59, 0x70, 0x51, 0x69, 0x34, 0x32, 0x4c, 0x6c, 0x74, 0x33, 0x37, 0x4e, 0x4d, 0x6e, 0x4a, 0x63, 0x79, 0x4b, 0x54, 0x56, 0x6d, 0x79, 0x78, 0x70, 0x66, 0x59, 0x47, 0x38, 0x65, 0x6e, 0x70, 0x31, 0x46, 0x71, 0x7a, 0x54, 0x56, 0x59, 0x74, 0x63, 0x65, 0x0a, 0x5a, 0x49, 0x77, 0x33, 0x65, 0x39, 0x54, 0x35, 0x48, 0x47, 0x4e, 0x71, 0x55, 0x6a, 0x70, 0x6f, 0x78, 0x43, 0x70, 0x35, 0x33, 0x4b, 0x63, 0x44, 0x75, 0x38, 0x69, 0x47, 0x46, 0x36, 0x43, 0x51, 0x71, 0x4a, 0x4d, 0x46, 0x72, 0x6b, 0x38, 0x47, 0x6b, 0x56, 0x51, 0x55, 0x38, 0x31, 0x71, 0x58, 0x75, 0x57, 0x6f, 0x41, 0x50, 0x32, 0x79, 0x4a, 0x66, 0x51, 0x53, 0x6d, 0x42, 0x75, 0x68, 0x67, 0x0a, 0x50, 0x64, 0x48, 0x4b, 0x55, 0x4b, 0x31, 0x68, 0x47, 0x31, 0x6f, 0x36, 0x32, 0x44, 0x48, 0x32, 0x67, 0x57, 0x33, 0x65, 0x6e, 0x37, 0x6a, 0x33, 0x70, 0x78, 0x43, 0x70, 0x34, 0x4e, 0x68, 0x70, 0x39, 0x49, 0x70, 0x2f, 0x35, 0x39, 0x67, 0x30, 0x4c, 0x73, 0x50, 0x44, 0x42, 0x67, 0x36, 0x6e, 0x59, 0x69, 0x38, 0x78, 0x35, 0x61, 0x44, 0x4e, 0x6f, 0x59, 0x6d, 0x76, 0x45, 0x56, 0x45, 0x41, 0x0a, 0x35, 0x46, 0x52, 0x7a, 0x37, 0x75, 0x2f, 0x77, 0x77, 0x67, 0x79, 0x6d, 0x47, 0x49, 0x50, 0x67, 0x57, 0x70, 0x59, 0x47, 0x33, 0x63, 0x35, 0x6b, 0x73, 0x31, 0x6e, 0x51, 0x41, 0x5a, 0x47, 0x53, 0x61, 0x37, 0x64, 0x4c, 0x46, 0x74, 0x44, 0x4d, 0x45, 0x59, 0x4f, 0x78, 0x34, 0x37, 0x36, 0x77, 0x42, 0x75, 0x48, 0x41, 0x56, 0x53, 0x57, 0x53, 0x41, 0x70, 0x64, 0x55, 0x4d, 0x38, 0x56, 0x77, 0x0a, 0x6b, 0x2f, 0x6b, 0x63, 0x66, 0x2f, 0x76, 0x61, 0x6f, 0x33, 0x4f, 0x7a, 0x71, 0x65, 0x33, 0x6f, 0x73, 0x37, 0x37, 0x43, 0x6f, 0x46, 0x52, 0x77, 0x5a, 0x4d, 0x4e, 0x61, 0x7a, 0x2f, 0x46, 0x2f, 0x7a, 0x35, 0x53, 0x77, 0x63, 0x47, 0x77, 0x42, 0x6f, 0x65, 0x34, 0x51, 0x67, 0x69, 0x42, 0x6f, 0x33, 0x39, 0x4b, 0x58, 0x52, 0x33, 0x5a, 0x63, 0x57, 0x33, 0x48, 0x63, 0x68, 0x76, 0x7a, 0x7a, 0x0a, 0x46, 0x38, 0x54, 0x36, 0x6d, 0x38, 0x30, 0x78, 0x61, 0x7a, 0x67, 0x54, 0x6a, 0x51, 0x4b, 0x43, 0x41, 0x51, 0x45, 0x41, 0x77, 0x2f, 0x66, 0x55, 0x62, 0x53, 0x78, 0x69, 0x6b, 0x33, 0x78, 0x38, 0x5a, 0x70, 0x59, 0x50, 0x71, 0x53, 0x4a, 0x5a, 0x6f, 0x62, 0x30, 0x58, 0x76, 0x4b, 0x6b, 0x74, 0x67, 0x37, 0x52, 0x35, 0x44, 0x4e, 0x32, 0x57, 0x2f, 0x65, 0x4c, 0x6e, 0x46, 0x34, 0x63, 0x55, 0x0a, 0x45, 0x33, 0x70, 0x2b, 0x38, 0x5a, 0x33, 0x38, 0x4c, 0x57, 0x76, 0x37, 0x6c, 0x36, 0x72, 0x72, 0x4e, 0x47, 0x4d, 0x41, 0x4e, 0x48, 0x6a, 0x59, 0x44, 0x47, 0x53, 0x5a, 0x2f, 0x67, 0x79, 0x2b, 0x48, 0x31, 0x6f, 0x75, 0x38, 0x69, 0x72, 0x54, 0x2b, 0x55, 0x64, 0x42, 0x6c, 0x6c, 0x58, 0x4b, 0x70, 0x71, 0x44, 0x35, 0x39, 0x5a, 0x56, 0x55, 0x73, 0x2b, 0x6f, 0x76, 0x4e, 0x73, 0x7a, 0x52, 0x0a, 0x68, 0x50, 0x37, 0x77, 0x6c, 0x4c, 0x4d, 0x30, 0x42, 0x67, 0x45, 0x44, 0x58, 0x33, 0x6b, 0x6e, 0x36, 0x78, 0x52, 0x41, 0x63, 0x5a, 0x2b, 0x74, 0x6b, 0x59, 0x53, 0x64, 0x57, 0x79, 0x63, 0x6f, 0x2b, 0x5a, 0x4b, 0x4f, 0x48, 0x63, 0x66, 0x71, 0x75, 0x54, 0x2f, 0x72, 0x4a, 0x34, 0x4b, 0x35, 0x42, 0x43, 0x65, 0x75, 0x33, 0x31, 0x48, 0x6f, 0x78, 0x74, 0x51, 0x6c, 0x78, 0x4a, 0x44, 0x51, 0x0a, 0x52, 0x36, 0x4b, 0x6a, 0x42, 0x4e, 0x2b, 0x61, 0x63, 0x37, 0x63, 0x33, 0x6c, 0x32, 0x57, 0x52, 0x47, 0x7a, 0x2f, 0x70, 0x4b, 0x6a, 0x30, 0x47, 0x39, 0x35, 0x32, 0x71, 0x42, 0x43, 0x72, 0x58, 0x4c, 0x71, 0x32, 0x32, 0x30, 0x54, 0x4e, 0x71, 0x44, 0x4b, 0x44, 0x44, 0x4c, 0x50, 0x54, 0x32, 0x5a, 0x46, 0x41, 0x6b, 0x65, 0x48, 0x77, 0x7a, 0x50, 0x58, 0x32, 0x65, 0x65, 0x71, 0x53, 0x75, 0x0a, 0x62, 0x34, 0x6b, 0x48, 0x45, 0x49, 0x44, 0x7a, 0x72, 0x66, 0x4d, 0x55, 0x44, 0x35, 0x63, 0x6d, 0x54, 0x73, 0x42, 0x50, 0x71, 0x30, 0x4c, 0x59, 0x75, 0x6c, 0x67, 0x75, 0x42, 0x59, 0x78, 0x5a, 0x57, 0x73, 0x50, 0x63, 0x6d, 0x2b, 0x66, 0x57, 0x63, 0x53, 0x6e, 0x77, 0x39, 0x73, 0x32, 0x4c, 0x2b, 0x45, 0x4c, 0x32, 0x37, 0x52, 0x39, 0x39, 0x49, 0x67, 0x7a, 0x43, 0x76, 0x64, 0x47, 0x49, 0x0a, 0x71, 0x52, 0x45, 0x75, 0x2f, 0x69, 0x65, 0x5a, 0x66, 0x79, 0x6d, 0x31, 0x6e, 0x67, 0x65, 0x58, 0x33, 0x56, 0x70, 0x73, 0x50, 0x4e, 0x54, 0x36, 0x77, 0x43, 0x55, 0x58, 0x4c, 0x61, 0x63, 0x70, 0x79, 0x4a, 0x46, 0x6d, 0x59, 0x57, 0x71, 0x65, 0x2f, 0x77, 0x4b, 0x43, 0x41, 0x51, 0x42, 0x44, 0x75, 0x49, 0x53, 0x6a, 0x7a, 0x4c, 0x4f, 0x30, 0x49, 0x74, 0x36, 0x79, 0x53, 0x56, 0x75, 0x66, 0x0a, 0x36, 0x63, 0x5a, 0x70, 0x79, 0x50, 0x6a, 0x4b, 0x46, 0x64, 0x4d, 0x71, 0x4f, 0x76, 0x5a, 0x6d, 0x79, 0x39, 0x4b, 0x55, 0x76, 0x7a, 0x67, 0x41, 0x54, 0x73, 0x65, 0x65, 0x69, 0x6c, 0x70, 0x64, 0x51, 0x6d, 0x67, 0x55, 0x4f, 0x4e, 0x65, 0x50, 0x5a, 0x4e, 0x71, 0x59, 0x2b, 0x4e, 0x53, 0x75, 0x42, 0x5a, 0x51, 0x2f, 0x46, 0x71, 0x44, 0x31, 0x2f, 0x32, 0x4a, 0x66, 0x31, 0x35, 0x47, 0x43, 0x0a, 0x43, 0x79, 0x42, 0x76, 0x41, 0x73, 0x59, 0x4e, 0x64, 0x4e, 0x64, 0x72, 0x75, 0x44, 0x79, 0x75, 0x33, 0x70, 0x4a, 0x35, 0x5a, 0x53, 0x48, 0x30, 0x44, 0x4c, 0x68, 0x65, 0x44, 0x53, 0x4a, 0x51, 0x34, 0x61, 0x72, 0x69, 0x2b, 0x69, 0x35, 0x2b, 0x79, 0x52, 0x73, 0x52, 0x72, 0x6b, 0x42, 0x37, 0x4f, 0x32, 0x6c, 0x43, 0x47, 0x6f, 0x71, 0x48, 0x52, 0x53, 0x43, 0x38, 0x44, 0x4e, 0x37, 0x36, 0x0a, 0x6a, 0x78, 0x74, 0x6d, 0x39, 0x6b, 0x57, 0x68, 0x79, 0x4c, 0x31, 0x73, 0x61, 0x67, 0x6c, 0x51, 0x2f, 0x75, 0x71, 0x53, 0x6f, 0x77, 0x65, 0x66, 0x57, 0x33, 0x62, 0x50, 0x59, 0x59, 0x62, 0x7a, 0x59, 0x79, 0x44, 0x64, 0x4a, 0x6e, 0x49, 0x46, 0x37, 0x78, 0x7a, 0x45, 0x65, 0x34, 0x44, 0x74, 0x48, 0x43, 0x38, 0x79, 0x33, 0x64, 0x39, 0x35, 0x77, 0x6c, 0x6f, 0x6b, 0x71, 0x41, 0x57, 0x55, 0x0a, 0x4e, 0x4e, 0x4c, 0x74, 0x36, 0x41, 0x49, 0x49, 0x55, 0x75, 0x2f, 0x74, 0x75, 0x7a, 0x69, 0x77, 0x74, 0x79, 0x57, 0x5a, 0x6b, 0x56, 0x6a, 0x68, 0x64, 0x77, 0x56, 0x53, 0x32, 0x4c, 0x33, 0x5a, 0x59, 0x6a, 0x7a, 0x4b, 0x7a, 0x4b, 0x79, 0x76, 0x48, 0x53, 0x63, 0x76, 0x45, 0x56, 0x58, 0x53, 0x56, 0x71, 0x69, 0x6d, 0x50, 0x52, 0x45, 0x2f, 0x67, 0x30, 0x59, 0x68, 0x30, 0x71, 0x50, 0x4d, 0x0a, 0x54, 0x6e, 0x55, 0x6c, 0x48, 0x45, 0x63, 0x56, 0x46, 0x71, 0x66, 0x6e, 0x66, 0x5a, 0x74, 0x63, 0x2f, 0x56, 0x42, 0x6b, 0x7a, 0x34, 0x2b, 0x67, 0x47, 0x4e, 0x61, 0x36, 0x4e, 0x67, 0x4f, 0x31, 0x78, 0x79, 0x49, 0x30, 0x71, 0x51, 0x7a, 0x6e, 0x58, 0x79, 0x56, 0x59, 0x45, 0x59, 0x4d, 0x42, 0x77, 0x78, 0x51, 0x6a, 0x46, 0x38, 0x47, 0x5a, 0x68, 0x4d, 0x73, 0x47, 0x59, 0x78, 0x30, 0x45, 0x0a, 0x4f, 0x54, 0x50, 0x78, 0x41, 0x6f, 0x49, 0x42, 0x41, 0x51, 0x43, 0x36, 0x67, 0x31, 0x72, 0x4c, 0x32, 0x59, 0x32, 0x73, 0x76, 0x37, 0x4f, 0x4b, 0x30, 0x39, 0x48, 0x74, 0x38, 0x51, 0x4b, 0x4c, 0x2f, 0x48, 0x50, 0x6d, 0x48, 0x4d, 0x4a, 0x7a, 0x38, 0x73, 0x57, 0x76, 0x61, 0x41, 0x74, 0x34, 0x63, 0x6f, 0x66, 0x74, 0x6a, 0x61, 0x4f, 0x65, 0x38, 0x6c, 0x78, 0x31, 0x7a, 0x42, 0x36, 0x69, 0x0a, 0x67, 0x48, 0x37, 0x42, 0x6d, 0x47, 0x77, 0x70, 0x76, 0x50, 0x77, 0x4a, 0x39, 0x4f, 0x58, 0x7a, 0x7a, 0x5a, 0x2f, 0x2b, 0x2b, 0x74, 0x50, 0x4d, 0x39, 0x55, 0x46, 0x76, 0x50, 0x54, 0x48, 0x6f, 0x74, 0x46, 0x67, 0x4a, 0x4a, 0x48, 0x67, 0x75, 0x35, 0x56, 0x46, 0x68, 0x32, 0x70, 0x48, 0x32, 0x64, 0x72, 0x49, 0x66, 0x48, 0x77, 0x74, 0x65, 0x34, 0x47, 0x48, 0x4c, 0x74, 0x55, 0x2b, 0x54, 0x0a, 0x55, 0x30, 0x32, 0x4a, 0x68, 0x62, 0x39, 0x6e, 0x62, 0x79, 0x76, 0x79, 0x75, 0x4c, 0x34, 0x79, 0x6e, 0x4a, 0x78, 0x44, 0x6b, 0x46, 0x37, 0x67, 0x51, 0x67, 0x73, 0x2b, 0x37, 0x76, 0x4a, 0x4a, 0x42, 0x44, 0x76, 0x6b, 0x71, 0x2f, 0x63, 0x35, 0x72, 0x43, 0x63, 0x30, 0x35, 0x7a, 0x6c, 0x38, 0x57, 0x35, 0x66, 0x69, 0x6f, 0x4d, 0x32, 0x4c, 0x45, 0x4a, 0x44, 0x46, 0x5a, 0x36, 0x67, 0x52, 0x0a, 0x38, 0x46, 0x52, 0x5a, 0x70, 0x4e, 0x4a, 0x5a, 0x74, 0x42, 0x64, 0x51, 0x47, 0x79, 0x74, 0x52, 0x61, 0x74, 0x37, 0x51, 0x2f, 0x70, 0x45, 0x31, 0x48, 0x53, 0x4b, 0x39, 0x73, 0x34, 0x69, 0x41, 0x6f, 0x6c, 0x57, 0x41, 0x71, 0x56, 0x6b, 0x45, 0x6d, 0x6e, 0x35, 0x4c, 0x71, 0x6a, 0x48, 0x2b, 0x6d, 0x56, 0x76, 0x48, 0x63, 0x49, 0x75, 0x52, 0x48, 0x6b, 0x4c, 0x36, 0x41, 0x7a, 0x46, 0x70, 0x0a, 0x34, 0x73, 0x75, 0x36, 0x46, 0x75, 0x72, 0x66, 0x30, 0x77, 0x74, 0x41, 0x66, 0x65, 0x76, 0x57, 0x56, 0x32, 0x7a, 0x64, 0x33, 0x50, 0x6d, 0x43, 0x65, 0x4a, 0x32, 0x30, 0x53, 0x52, 0x43, 0x42, 0x50, 0x69, 0x44, 0x59, 0x56, 0x55, 0x4f, 0x64, 0x73, 0x75, 0x5a, 0x66, 0x51, 0x7a, 0x51, 0x4f, 0x76, 0x30, 0x52, 0x74, 0x38, 0x30, 0x70, 0x31, 0x56, 0x79, 0x52, 0x35, 0x77, 0x75, 0x6a, 0x46, 0x0a, 0x37, 0x63, 0x57, 0x73, 0x74, 0x5a, 0x39, 0x6c, 0x6a, 0x74, 0x55, 0x72, 0x68, 0x4b, 0x31, 0x76, 0x53, 0x52, 0x33, 0x70, 0x56, 0x6f, 0x74, 0x66, 0x47, 0x48, 0x76, 0x76, 0x78, 0x64, 0x47, 0x7a, 0x41, 0x6f, 0x49, 0x42, 0x41, 0x51, 0x43, 0x36, 0x59, 0x70, 0x5a, 0x64, 0x71, 0x4d, 0x38, 0x7a, 0x68, 0x32, 0x45, 0x41, 0x30, 0x75, 0x69, 0x4e, 0x55, 0x4f, 0x55, 0x2f, 0x5a, 0x63, 0x6d, 0x54, 0x0a, 0x31, 0x51, 0x6c, 0x4b, 0x67, 0x2b, 0x69, 0x58, 0x4b, 0x66, 0x57, 0x5a, 0x72, 0x2b, 0x61, 0x64, 0x50, 0x56, 0x50, 0x6b, 0x31, 0x64, 0x54, 0x39, 0x79, 0x55, 0x78, 0x2f, 0x6e, 0x4e, 0x77, 0x6e, 0x66, 0x43, 0x62, 0x4b, 0x63, 0x54, 0x45, 0x79, 0x56, 0x74, 0x37, 0x65, 0x41, 0x7a, 0x69, 0x69, 0x4c, 0x73, 0x5a, 0x77, 0x36, 0x65, 0x58, 0x4f, 0x50, 0x4b, 0x39, 0x55, 0x38, 0x7a, 0x76, 0x43, 0x0a, 0x4a, 0x50, 0x55, 0x71, 0x67, 0x67, 0x44, 0x5a, 0x33, 0x2b, 0x6b, 0x62, 0x6b, 0x34, 0x6a, 0x50, 0x44, 0x52, 0x41, 0x73, 0x30, 0x4a, 0x74, 0x49, 0x6b, 0x43, 0x30, 0x62, 0x75, 0x48, 0x7a, 0x6b, 0x58, 0x46, 0x30, 0x72, 0x67, 0x41, 0x34, 0x62, 0x4a, 0x7a, 0x75, 0x55, 0x47, 0x30, 0x44, 0x45, 0x73, 0x58, 0x4a, 0x58, 0x59, 0x71, 0x48, 0x6f, 0x4f, 0x6d, 0x31, 0x4f, 0x56, 0x4a, 0x66, 0x73, 0x0a, 0x78, 0x6f, 0x4c, 0x50, 0x74, 0x68, 0x71, 0x55, 0x44, 0x30, 0x44, 0x32, 0x73, 0x43, 0x59, 0x37, 0x46, 0x62, 0x4a, 0x58, 0x67, 0x4e, 0x4d, 0x61, 0x33, 0x76, 0x59, 0x62, 0x31, 0x39, 0x6b, 0x78, 0x65, 0x4a, 0x37, 0x76, 0x37, 0x70, 0x69, 0x42, 0x72, 0x69, 0x68, 0x4c, 0x6b, 0x35, 0x4c, 0x57, 0x64, 0x41, 0x78, 0x32, 0x6c, 0x53, 0x56, 0x30, 0x6c, 0x61, 0x46, 0x45, 0x39, 0x4f, 0x38, 0x43, 0x0a, 0x68, 0x36, 0x48, 0x61, 0x5a, 0x65, 0x52, 0x39, 0x4a, 0x49, 0x69, 0x42, 0x79, 0x63, 0x5a, 0x39, 0x71, 0x48, 0x49, 0x58, 0x50, 0x50, 0x43, 0x79, 0x5a, 0x57, 0x51, 0x4f, 0x6c, 0x6c, 0x43, 0x49, 0x56, 0x69, 0x31, 0x71, 0x53, 0x51, 0x6b, 0x70, 0x51, 0x4e, 0x34, 0x76, 0x59, 0x4e, 0x68, 0x63, 0x2f, 0x49, 0x45, 0x37, 0x4d, 0x76, 0x51, 0x31, 0x4a, 0x42, 0x61, 0x4f, 0x62, 0x6c, 0x4a, 0x48, 0x0a, 0x63, 0x73, 0x63, 0x49, 0x4c, 0x43, 0x38, 0x61, 0x69, 0x4a, 0x56, 0x46, 0x4f, 0x53, 0x5a, 0x6e, 0x4e, 0x6a, 0x4b, 0x2f, 0x66, 0x6c, 0x6f, 0x72, 0x78, 0x74, 0x54, 0x4f, 0x44, 0x44, 0x39, 0x49, 0x47, 0x33, 0x67, 0x48, 0x66, 0x78, 0x54, 0x52, 0x31, 0x73, 0x66, 0x61, 0x4c, 0x76, 0x35, 0x7a, 0x43, 0x51, 0x66, 0x39, 0x77, 0x4f, 0x49, 0x35, 0x52, 0x49, 0x2f, 0x78, 0x0a, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x45, 0x4e, 0x44, 0x20, 0x52, 0x53, 0x41, 0x20, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x20, 0x4b, 0x45, 0x59, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x0a #ifdef CONFIG_MBEDTLS , 0x00 #endif }; unsigned char node_key_der[] = { 0x30, 0x82, 0x09, 0x29, 0x02, 0x01, 0x00, 0x02, 0x82, 0x02, 0x01, 0x00, 0xAF, 0x04, 0xB2, 0x36, 0x78, 0x5F, 0xBC, 0x38, 0x9C, 0x18, 0x93, 0x81, 0x7D, 0x44, 0x0B, 0x18, 0x4A, 0x4A, 0x0B, 0x6F, 0xCD, 0xDB, 0x94, 0xE8, 0xD8, 0xA7, 0xFA, 0xEB, 0x39, 0x03, 0x6F, 0x79, 0xB8, 0x20, 0xFC, 0x0B, 0x71, 0xCC, 0x46, 0x58, 0x75, 0xAE, 0x7B, 0x18, 0xA9, 0x9A, 0xF0, 0x30, 0x17, 0xE5, 0xF6, 0xE8, 0x51, 0xB3, 0xE5, 0xF2, 0x5D, 0xAB, 0xC1, 0x61, 0xC2, 0x5A, 0xBE, 0x9E, 0xA8, 0xF8, 0x3E, 0x19, 0x7F, 0x43, 0xEC, 0x14, 0x06, 0x54, 0x3E, 0x5C, 0xC8, 0xEA, 0x22, 0x9C, 0x32, 0xCE, 0x96, 0x66, 0xE0, 0x79, 0xBE, 0x38, 0xE0, 0x8A, 0x7E, 0xCC, 0x97, 0x76, 0x62, 0xCB, 0xA4, 0x5C, 0x95, 0x93, 0x8A, 0xEB, 0xD8, 0x64, 0x38, 0x28, 0x54, 0x90, 0x5D, 0x05,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67, 0x36, 0x32, 0xBF, 0x7E, 0x5A, 0x2B, 0xC6, 0xD4, 0xCE, 0x0C, 0x3F, 0x48, 0x1B, 0x78, 0x07, 0x7F, 0x14, 0xD1, 0xD6, 0xC7, 0xDA, 0x2E, 0xFE, 0x73, 0x09, 0x07, 0xFD, 0xC0, 0xE2, 0x39, 0x44, 0x8F, 0xF1 }; unsigned char node_cert[] = { 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x42, 0x45, 0x47, 0x49, 0x4e, 0x20, 0x43, 0x45, 0x52, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x45, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x0a, 0x4d, 0x49, 0x49, 0x45, 0x47, 0x44, 0x43, 0x43, 0x41, 0x77, 0x43, 0x67, 0x41, 0x77, 0x49, 0x42, 0x41, 0x67, 0x49, 0x44, 0x45, 0x41, 0x41, 0x45, 0x4d, 0x41, 0x30, 0x47, 0x43, 0x53, 0x71, 0x47, 0x53, 0x49, 0x62, 0x33, 0x44, 0x51, 0x45, 0x42, 0x43, 0x77, 0x55, 0x41, 0x4d, 0x45, 0x38, 0x78, 0x47, 0x7a, 0x41, 0x5a, 0x42, 0x67, 0x4e, 0x56, 0x42, 0x41, 0x6f, 0x54, 0x45, 0x6d, 0x78, 0x70, 0x0a, 0x59, 0x6e, 0x64, 0x6c, 0x59, 0x6e, 0x4e, 0x76, 0x59, 0x32, 0x74, 0x6c, 0x64, 0x48, 0x4d, 0x74, 0x64, 0x47, 0x56, 0x7a, 0x64, 0x44, 0x45, 0x53, 0x4d, 0x42, 0x41, 0x47, 0x41, 0x31, 0x55, 0x45, 0x42, 0x78, 0x4d, 0x4a, 0x57, 0x47, 0x6c, 0x68, 0x62, 0x32, 0x4a, 0x70, 0x64, 0x47, 0x46, 0x75, 0x4d, 0x51, 0x38, 0x77, 0x44, 0x51, 0x59, 0x44, 0x56, 0x51, 0x51, 0x49, 0x45, 0x77, 0x5a, 0x55, 0x0a, 0x59, 0x57, 0x6c, 0x77, 0x5a, 0x57, 0x6b, 0x78, 0x43, 0x7a, 0x41, 0x4a, 0x42, 0x67, 0x4e, 0x56, 0x42, 0x41, 0x59, 0x54, 0x41, 0x6c, 0x52, 0x58, 0x4d, 0x43, 0x41, 0x58, 0x44, 0x54, 0x49, 0x79, 0x4d, 0x44, 0x63, 0x77, 0x4e, 0x6a, 0x45, 0x78, 0x4d, 0x6a, 0x55, 0x78, 0x4f, 0x46, 0x6f, 0x59, 0x44, 0x7a, 0x49, 0x77, 0x4e, 0x54, 0x41, 0x77, 0x4e, 0x7a, 0x45, 0x35, 0x4d, 0x54, 0x45, 0x79, 0x0a, 0x4e, 0x54, 0x45, 0x34, 0x57, 0x6a, 0x42, 0x4d, 0x4d, 0x51, 0x73, 0x77, 0x43, 0x51, 0x59, 0x44, 0x56, 0x51, 0x51, 0x47, 0x45, 0x77, 0x4a, 0x55, 0x56, 0x7a, 0x45, 0x50, 0x4d, 0x41, 0x30, 0x47, 0x41, 0x31, 0x55, 0x45, 0x43, 0x42, 0x4d, 0x47, 0x56, 0x47, 0x46, 0x70, 0x63, 0x47, 0x56, 0x70, 0x4d, 0x52, 0x73, 0x77, 0x47, 0x51, 0x59, 0x44, 0x56, 0x51, 0x51, 0x4b, 0x45, 0x78, 0x4a, 0x73, 0x0a, 0x61, 0x57, 0x4a, 0x33, 0x5a, 0x57, 0x4a, 0x7a, 0x62, 0x32, 0x4e, 0x72, 0x5a, 0x58, 0x52, 0x7a, 0x4c, 0x58, 0x52, 0x6c, 0x63, 0x33, 0x51, 0x78, 0x44, 0x7a, 0x41, 0x4e, 0x42, 0x67, 0x4e, 0x56, 0x42, 0x41, 0x4d, 0x54, 0x42, 0x6d, 0x4e, 0x73, 0x61, 0x57, 0x56, 0x75, 0x64, 0x44, 0x43, 0x43, 0x41, 0x69, 0x49, 0x77, 0x44, 0x51, 0x59, 0x4a, 0x4b, 0x6f, 0x5a, 0x49, 0x68, 0x76, 0x63, 0x4e, 0x0a, 0x41, 0x51, 0x45, 0x42, 0x42, 0x51, 0x41, 0x44, 0x67, 0x67, 0x49, 0x50, 0x41, 0x44, 0x43, 0x43, 0x41, 0x67, 0x6f, 0x43, 0x67, 0x67, 0x49, 0x42, 0x41, 0x4b, 0x38, 0x45, 0x73, 0x6a, 0x5a, 0x34, 0x58, 0x37, 0x77, 0x34, 0x6e, 0x42, 0x69, 0x54, 0x67, 0x58, 0x31, 0x45, 0x43, 0x78, 0x68, 0x4b, 0x53, 0x67, 0x74, 0x76, 0x7a, 0x64, 0x75, 0x55, 0x36, 0x4e, 0x69, 0x6e, 0x2b, 0x75, 0x73, 0x35, 0x0a, 0x41, 0x32, 0x39, 0x35, 0x75, 0x43, 0x44, 0x38, 0x43, 0x33, 0x48, 0x4d, 0x52, 0x6c, 0x68, 0x31, 0x72, 0x6e, 0x73, 0x59, 0x71, 0x5a, 0x72, 0x77, 0x4d, 0x42, 0x66, 0x6c, 0x39, 0x75, 0x68, 0x52, 0x73, 0x2b, 0x58, 0x79, 0x58, 0x61, 0x76, 0x42, 0x59, 0x63, 0x4a, 0x61, 0x76, 0x70, 0x36, 0x6f, 0x2b, 0x44, 0x34, 0x5a, 0x66, 0x30, 0x50, 0x73, 0x46, 0x41, 0x5a, 0x55, 0x50, 0x6c, 0x7a, 0x49, 0x0a, 0x36, 0x69, 0x4b, 0x63, 0x4d, 0x73, 0x36, 0x57, 0x5a, 0x75, 0x42, 0x35, 0x76, 0x6a, 0x6a, 0x67, 0x69, 0x6e, 0x37, 0x4d, 0x6c, 0x33, 0x5a, 0x69, 0x79, 0x36, 0x52, 0x63, 0x6c, 0x5a, 0x4f, 0x4b, 0x36, 0x39, 0x68, 0x6b, 0x4f, 0x43, 0x68, 0x55, 0x6b, 0x46, 0x30, 0x46, 0x38, 0x6d, 0x63, 0x63, 0x57, 0x7a, 0x52, 0x58, 0x59, 0x4a, 0x77, 0x71, 0x37, 0x35, 0x72, 0x5a, 0x43, 0x41, 0x55, 0x47, 0x0a, 0x37, 0x35, 0x70, 0x77, 0x63, 0x6a, 0x2f, 0x73, 0x4a, 0x33, 0x73, 0x34, 0x56, 0x45, 0x43, 0x69, 0x35, 0x4a, 0x6b, 0x44, 0x39, 0x6b, 0x6f, 0x2b, 0x33, 0x6b, 0x63, 0x79, 0x36, 0x4d, 0x6c, 0x39, 0x71, 0x67, 0x43, 0x4c, 0x67, 0x68, 0x57, 0x47, 0x31, 0x67, 0x4f, 0x67, 0x31, 0x6b, 0x76, 0x54, 0x79, 0x31, 0x62, 0x6f, 0x4b, 0x6b, 0x72, 0x79, 0x33, 0x6b, 0x4b, 0x73, 0x39, 0x62, 0x61, 0x64, 0x0a, 0x6e, 0x32, 0x61, 0x59, 0x51, 0x58, 0x59, 0x33, 0x79, 0x4a, 0x58, 0x67, 0x77, 0x62, 0x73, 0x32, 0x49, 0x41, 0x64, 0x47, 0x6e, 0x50, 0x63, 0x67, 0x78, 0x39, 0x5a, 0x6e, 0x6e, 0x6b, 0x44, 0x67, 0x6a, 0x54, 0x32, 0x73, 0x30, 0x51, 0x48, 0x46, 0x6c, 0x73, 0x4c, 0x76, 0x71, 0x46, 0x56, 0x70, 0x68, 0x41, 0x52, 0x4a, 0x44, 0x77, 0x79, 0x4e, 0x61, 0x59, 0x62, 0x70, 0x77, 0x2f, 0x64, 0x39, 0x0a, 0x78, 0x74, 0x55, 0x58, 0x46, 0x6e, 0x5a, 0x6b, 0x46, 0x4b, 0x2b, 0x35, 0x42, 0x33, 0x6a, 0x7a, 0x44, 0x38, 0x4f, 0x61, 0x64, 0x77, 0x63, 0x2f, 0x71, 0x6f, 0x36, 0x6d, 0x68, 0x2f, 0x75, 0x71, 0x41, 0x6b, 0x34, 0x57, 0x51, 0x71, 0x50, 0x6d, 0x46, 0x50, 0x59, 0x55, 0x50, 0x2b, 0x50, 0x68, 0x38, 0x44, 0x44, 0x63, 0x76, 0x45, 0x4c, 0x4d, 0x6f, 0x32, 0x70, 0x6e, 0x2b, 0x39, 0x63, 0x2b, 0x0a, 0x59, 0x4f, 0x41, 0x6f, 0x58, 0x74, 0x75, 0x45, 0x44, 0x33, 0x33, 0x4a, 0x39, 0x4e, 0x31, 0x73, 0x76, 0x32, 0x55, 0x57, 0x72, 0x6b, 0x6f, 0x4c, 0x45, 0x4a, 0x38, 0x73, 0x34, 0x61, 0x32, 0x63, 0x2f, 0x56, 0x69, 0x65, 0x66, 0x76, 0x4d, 0x46, 0x4b, 0x6f, 0x2b, 0x4f, 0x45, 0x50, 0x42, 0x4f, 0x71, 0x57, 0x45, 0x53, 0x39, 0x49, 0x65, 0x4d, 0x58, 0x69, 0x4c, 0x42, 0x44, 0x72, 0x2f, 0x69, 0x0a, 0x4d, 0x44, 0x57, 0x31, 0x57, 0x4a, 0x76, 0x46, 0x74, 0x57, 0x78, 0x32, 0x57, 0x33, 0x56, 0x74, 0x55, 0x6e, 0x6a, 0x4d, 0x4b, 0x62, 0x52, 0x47, 0x2b, 0x78, 0x6a, 0x34, 0x46, 0x47, 0x6a, 0x76, 0x38, 0x69, 0x63, 0x2f, 0x34, 0x53, 0x71, 0x6e, 0x4b, 0x36, 0x53, 0x43, 0x65, 0x2f, 0x79, 0x4b, 0x47, 0x67, 0x45, 0x79, 0x76, 0x6f, 0x2f, 0x61, 0x66, 0x4e, 0x6d, 0x39, 0x30, 0x49, 0x74, 0x76, 0x0a, 0x31, 0x45, 0x36, 0x61, 0x69, 0x41, 0x79, 0x49, 0x4d, 0x73, 0x6d, 0x51, 0x43, 0x31, 0x4a, 0x4f, 0x6f, 0x56, 0x68, 0x2f, 0x65, 0x30, 0x71, 0x44, 0x47, 0x71, 0x70, 0x49, 0x56, 0x49, 0x37, 0x41, 0x2f, 0x4f, 0x73, 0x7a, 0x39, 0x74, 0x53, 0x68, 0x78, 0x44, 0x65, 0x52, 0x75, 0x5a, 0x46, 0x39, 0x2b, 0x67, 0x4d, 0x4d, 0x6e, 0x30, 0x68, 0x41, 0x4a, 0x6b, 0x62, 0x35, 0x52, 0x33, 0x4d, 0x78, 0x0a, 0x6f, 0x38, 0x58, 0x36, 0x6b, 0x44, 0x77, 0x61, 0x73, 0x7a, 0x48, 0x48, 0x76, 0x52, 0x55, 0x73, 0x66, 0x54, 0x66, 0x6b, 0x66, 0x57, 0x38, 0x50, 0x31, 0x51, 0x62, 0x48, 0x77, 0x6e, 0x4d, 0x78, 0x65, 0x53, 0x79, 0x70, 0x75, 0x30, 0x61, 0x49, 0x78, 0x77, 0x2b, 0x63, 0x38, 0x44, 0x6d, 0x7a, 0x74, 0x2b, 0x6c, 0x73, 0x37, 0x62, 0x6a, 0x32, 0x6d, 0x32, 0x36, 0x48, 0x38, 0x39, 0x4a, 0x68, 0x0a, 0x59, 0x6c, 0x63, 0x72, 0x68, 0x64, 0x33, 0x44, 0x6d, 0x2f, 0x37, 0x61, 0x68, 0x6c, 0x56, 0x66, 0x64, 0x35, 0x79, 0x4b, 0x77, 0x41, 0x57, 0x38, 0x76, 0x77, 0x32, 0x77, 0x57, 0x79, 0x45, 0x43, 0x56, 0x79, 0x37, 0x4c, 0x4c, 0x5a, 0x36, 0x63, 0x4b, 0x5a, 0x57, 0x57, 0x32, 0x6d, 0x5a, 0x47, 0x4b, 0x6a, 0x37, 0x7a, 0x75, 0x78, 0x6b, 0x56, 0x65, 0x39, 0x42, 0x2f, 0x4d, 0x44, 0x54, 0x75, 0x0a, 0x54, 0x6e, 0x39, 0x7a, 0x41, 0x67, 0x4d, 0x42, 0x41, 0x41, 0x45, 0x77, 0x44, 0x51, 0x59, 0x4a, 0x4b, 0x6f, 0x5a, 0x49, 0x68, 0x76, 0x63, 0x4e, 0x41, 0x51, 0x45, 0x4c, 0x42, 0x51, 0x41, 0x44, 0x67, 0x67, 0x45, 0x42, 0x41, 0x4d, 0x4c, 0x70, 0x6f, 0x2b, 0x53, 0x58, 0x43, 0x46, 0x2b, 0x35, 0x73, 0x4d, 0x35, 0x68, 0x57, 0x62, 0x4a, 0x6d, 0x38, 0x77, 0x52, 0x64, 0x4e, 0x36, 0x45, 0x63, 0x0a, 0x4d, 0x48, 0x6a, 0x54, 0x33, 0x74, 0x61, 0x2b, 0x7a, 0x79, 0x74, 0x6d, 0x33, 0x6f, 0x79, 0x71, 0x59, 0x63, 0x53, 0x2f, 0x62, 0x53, 0x43, 0x56, 0x74, 0x30, 0x6a, 0x38, 0x65, 0x71, 0x72, 0x5a, 0x54, 0x33, 0x73, 0x63, 0x43, 0x77, 0x77, 0x69, 0x77, 0x53, 0x79, 0x32, 0x73, 0x37, 0x5a, 0x63, 0x65, 0x74, 0x35, 0x75, 0x6d, 0x6b, 0x46, 0x55, 0x48, 0x62, 0x36, 0x4a, 0x65, 0x6e, 0x30, 0x51, 0x0a, 0x6c, 0x58, 0x4b, 0x42, 0x6f, 0x61, 0x53, 0x47, 0x54, 0x57, 0x42, 0x4f, 0x5a, 0x62, 0x6b, 0x69, 0x55, 0x36, 0x4f, 0x36, 0x6d, 0x36, 0x52, 0x4c, 0x4d, 0x72, 0x4d, 0x6d, 0x62, 0x70, 0x32, 0x6b, 0x68, 0x4e, 0x61, 0x67, 0x36, 0x59, 0x71, 0x39, 0x70, 0x33, 0x73, 0x66, 0x73, 0x59, 0x7a, 0x38, 0x69, 0x45, 0x31, 0x38, 0x7a, 0x36, 0x43, 0x31, 0x76, 0x70, 0x75, 0x4b, 0x63, 0x39, 0x51, 0x54, 0x0a, 0x50, 0x51, 0x4c, 0x51, 0x65, 0x7a, 0x6c, 0x68, 0x77, 0x5a, 0x5a, 0x57, 0x52, 0x4e, 0x77, 0x6b, 0x43, 0x79, 0x4e, 0x52, 0x42, 0x6a, 0x69, 0x39, 0x4e, 0x37, 0x55, 0x2f, 0x75, 0x4f, 0x52, 0x4f, 0x49, 0x38, 0x64, 0x6b, 0x36, 0x4b, 0x48, 0x6e, 0x4d, 0x5a, 0x52, 0x32, 0x69, 0x52, 0x34, 0x65, 0x43, 0x53, 0x42, 0x32, 0x67, 0x74, 0x6b, 0x76, 0x68, 0x50, 0x65, 0x4c, 0x55, 0x58, 0x77, 0x58, 0x0a, 0x38, 0x4a, 0x79, 0x6d, 0x32, 0x51, 0x48, 0x58, 0x35, 0x43, 0x59, 0x37, 0x2f, 0x59, 0x4d, 0x66, 0x73, 0x34, 0x44, 0x30, 0x49, 0x38, 0x66, 0x70, 0x6a, 0x53, 0x4f, 0x65, 0x65, 0x52, 0x59, 0x33, 0x63, 0x6e, 0x4a, 0x76, 0x33, 0x37, 0x4c, 0x75, 0x51, 0x4c, 0x35, 0x72, 0x4a, 0x70, 0x75, 0x76, 0x49, 0x5a, 0x78, 0x46, 0x4a, 0x33, 0x6e, 0x56, 0x72, 0x37, 0x56, 0x2b, 0x44, 0x54, 0x4d, 0x72, 0x0a, 0x4e, 0x71, 0x4e, 0x45, 0x34, 0x69, 0x57, 0x48, 0x4d, 0x56, 0x58, 0x71, 0x63, 0x45, 0x62, 0x4d, 0x53, 0x2f, 0x59, 0x4a, 0x6a, 0x38, 0x34, 0x69, 0x63, 0x47, 0x65, 0x31, 0x70, 0x43, 0x55, 0x30, 0x31, 0x65, 0x49, 0x2f, 0x61, 0x33, 0x34, 0x72, 0x79, 0x53, 0x67, 0x55, 0x75, 0x2b, 0x33, 0x53, 0x43, 0x55, 0x55, 0x61, 0x58, 0x5a, 0x73, 0x2f, 0x2b, 0x51, 0x41, 0x3d, 0x0a, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x45, 0x4e, 0x44, 0x20, 0x43, 0x45, 0x52, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x45, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x0a #ifdef CONFIG_MBEDTLS , 0x00 #endif }; unsigned char node_key2[] = { 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x42, 0x45, 0x47, 0x49, 0x4e, 0x20, 0x52, 0x53, 0x41, 0x20, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x20, 0x4b, 0x45, 0x59, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x0a, 0x4d, 0x49, 0x49, 0x4a, 0x4b, 0x41, 0x49, 0x42, 0x41, 0x41, 0x4b, 0x43, 0x41, 0x67, 0x45, 0x41, 0x79, 0x31, 0x65, 0x71, 0x47, 0x4a, 0x69, 0x45, 0x61, 0x4e, 0x55, 0x76, 0x42, 0x57, 0x35, 0x72, 0x4b, 0x38, 0x77, 0x77, 0x69, 0x75, 0x4d, 0x72, 0x74, 0x4c, 0x67, 0x74, 0x74, 0x45, 0x65, 0x55, 0x31, 0x51, 0x4f, 0x30, 0x6e, 0x4d, 0x57, 0x6a, 0x59, 0x43, 0x4f, 0x34, 0x75, 0x36, 0x61, 0x31, 0x0a, 0x34, 0x58, 0x34, 0x6f, 0x75, 0x7a, 0x68, 0x57, 0x4e, 0x6a, 0x50, 0x47, 0x35, 0x31, 0x6f, 0x4a, 0x43, 0x76, 0x4b, 0x38, 0x78, 0x71, 0x58, 0x52, 0x33, 0x2f, 0x7a, 0x62, 0x79, 0x36, 0x66, 0x66, 0x48, 0x69, 0x42, 0x61, 0x4e, 0x68, 0x4d, 0x34, 0x4c, 0x6e, 0x6c, 0x78, 0x44, 0x30, 0x77, 0x4d, 0x31, 0x33, 0x36, 0x6d, 0x59, 0x77, 0x51, 0x54, 0x6a, 0x35, 0x33, 0x57, 0x36, 0x64, 0x4e, 0x2b, 0x0a, 0x6a, 0x33, 0x7a, 0x7a, 0x61, 0x4d, 0x7a, 0x78, 0x36, 0x4f, 0x55, 0x30, 0x56, 0x4e, 0x77, 0x4f, 0x68, 0x4d, 0x2b, 0x47, 0x67, 0x33, 0x76, 0x43, 0x70, 0x2f, 0x45, 0x37, 0x58, 0x6b, 0x57, 0x65, 0x4a, 0x50, 0x42, 0x4d, 0x4a, 0x62, 0x33, 0x52, 0x75, 0x62, 0x50, 0x76, 0x61, 0x33, 0x72, 0x4d, 0x73, 0x36, 0x62, 0x63, 0x4b, 0x6c, 0x6d, 0x36, 0x35, 0x30, 0x64, 0x4b, 0x64, 0x63, 0x65, 0x71, 0x0a, 0x32, 0x41, 0x37, 0x50, 0x71, 0x64, 0x4a, 0x4a, 0x74, 0x4f, 0x4d, 0x37, 0x56, 0x42, 0x48, 0x63, 0x73, 0x33, 0x34, 0x4f, 0x38, 0x33, 0x54, 0x68, 0x73, 0x78, 0x63, 0x46, 0x39, 0x37, 0x2f, 0x51, 0x31, 0x55, 0x54, 0x39, 0x43, 0x6c, 0x34, 0x34, 0x34, 0x59, 0x39, 0x6c, 0x49, 0x59, 0x49, 0x36, 0x30, 0x71, 0x38, 0x4e, 0x6e, 0x67, 0x36, 0x37, 0x49, 0x71, 0x47, 0x62, 0x5a, 0x47, 0x69, 0x73, 0x0a, 0x59, 0x6d, 0x63, 0x75, 0x5a, 0x66, 0x45, 0x4d, 0x55, 0x65, 0x59, 0x45, 0x79, 0x6e, 0x54, 0x52, 0x30, 0x42, 0x78, 0x36, 0x73, 0x45, 0x52, 0x45, 0x73, 0x4f, 0x51, 0x74, 0x47, 0x6c, 0x31, 0x62, 0x6a, 0x77, 0x72, 0x61, 0x4c, 0x6d, 0x30, 0x46, 0x43, 0x38, 0x42, 0x77, 0x6c, 0x6e, 0x4f, 0x55, 0x76, 0x78, 0x44, 0x34, 0x66, 0x5a, 0x2b, 0x43, 0x35, 0x4a, 0x73, 0x48, 0x62, 0x5a, 0x35, 0x54, 0x0a, 0x4b, 0x30, 0x46, 0x74, 0x73, 0x32, 0x65, 0x43, 0x2f, 0x71, 0x48, 0x4a, 0x48, 0x4c, 0x52, 0x73, 0x41, 0x6a, 0x4e, 0x70, 0x67, 0x66, 0x42, 0x71, 0x6c, 0x45, 0x6a, 0x47, 0x73, 0x74, 0x4e, 0x61, 0x64, 0x30, 0x79, 0x49, 0x48, 0x76, 0x49, 0x36, 0x39, 0x32, 0x4b, 0x79, 0x56, 0x54, 0x37, 0x56, 0x4b, 0x67, 0x56, 0x59, 0x42, 0x74, 0x39, 0x58, 0x6e, 0x4b, 0x36, 0x48, 0x41, 0x36, 0x66, 0x42, 0x0a, 0x4d, 0x78, 0x4b, 0x68, 0x31, 0x48, 0x54, 0x30, 0x37, 0x47, 0x42, 0x52, 0x71, 0x34, 0x44, 0x62, 0x4b, 0x73, 0x41, 0x76, 0x5a, 0x44, 0x73, 0x45, 0x7a, 0x6b, 0x61, 0x64, 0x67, 0x75, 0x6c, 0x53, 0x6a, 0x6d, 0x72, 0x6b, 0x57, 0x41, 0x44, 0x43, 0x53, 0x77, 0x6d, 0x58, 0x7a, 0x44, 0x4a, 0x49, 0x4f, 0x6c, 0x68, 0x78, 0x43, 0x76, 0x73, 0x57, 0x76, 0x4e, 0x4b, 0x4f, 0x70, 0x7a, 0x57, 0x6a, 0x0a, 0x31, 0x53, 0x7a, 0x75, 0x45, 0x51, 0x53, 0x57, 0x53, 0x38, 0x30, 0x46, 0x6d, 0x54, 0x58, 0x35, 0x55, 0x39, 0x4e, 0x6f, 0x2f, 0x6e, 0x45, 0x52, 0x6a, 0x4b, 0x6c, 0x78, 0x75, 0x44, 0x36, 0x37, 0x35, 0x67, 0x4c, 0x4e, 0x79, 0x30, 0x6c, 0x61, 0x63, 0x6b, 0x70, 0x73, 0x49, 0x48, 0x50, 0x5a, 0x36, 0x7a, 0x6f, 0x71, 0x53, 0x6c, 0x38, 0x4c, 0x68, 0x70, 0x5a, 0x7a, 0x78, 0x51, 0x67, 0x75, 0x0a, 0x56, 0x51, 0x72, 0x39, 0x62, 0x69, 0x4e, 0x45, 0x57, 0x77, 0x30, 0x62, 0x64, 0x53, 0x45, 0x44, 0x57, 0x2b, 0x63, 0x68, 0x6e, 0x41, 0x72, 0x7a, 0x71, 0x4b, 0x71, 0x62, 0x65, 0x54, 0x34, 0x38, 0x52, 0x74, 0x71, 0x46, 0x77, 0x54, 0x45, 0x44, 0x69, 0x6f, 0x48, 0x38, 0x73, 0x47, 0x47, 0x69, 0x43, 0x2b, 0x7a, 0x6a, 0x50, 0x31, 0x76, 0x59, 0x78, 0x44, 0x66, 0x6d, 0x32, 0x49, 0x69, 0x68, 0x0a, 0x41, 0x4f, 0x50, 0x74, 0x48, 0x6e, 0x45, 0x33, 0x78, 0x7a, 0x6b, 0x44, 0x4c, 0x41, 0x50, 0x4a, 0x76, 0x7a, 0x45, 0x61, 0x2f, 0x5a, 0x69, 0x61, 0x54, 0x69, 0x4d, 0x61, 0x30, 0x4f, 0x52, 0x32, 0x71, 0x74, 0x75, 0x30, 0x68, 0x54, 0x6a, 0x62, 0x34, 0x63, 0x7a, 0x58, 0x49, 0x36, 0x54, 0x79, 0x37, 0x78, 0x6b, 0x53, 0x4c, 0x45, 0x74, 0x44, 0x4f, 0x6a, 0x43, 0x61, 0x70, 0x53, 0x71, 0x74, 0x0a, 0x34, 0x45, 0x4b, 0x47, 0x67, 0x43, 0x69, 0x78, 0x7a, 0x63, 0x55, 0x35, 0x45, 0x36, 0x5a, 0x4d, 0x49, 0x4f, 0x56, 0x6a, 0x72, 0x66, 0x6a, 0x39, 0x70, 0x77, 0x67, 0x67, 0x2f, 0x66, 0x56, 0x31, 0x35, 0x30, 0x63, 0x31, 0x68, 0x6e, 0x6e, 0x56, 0x47, 0x75, 0x36, 0x51, 0x42, 0x30, 0x44, 0x72, 0x59, 0x4e, 0x73, 0x59, 0x50, 0x43, 0x44, 0x44, 0x50, 0x70, 0x4d, 0x43, 0x41, 0x77, 0x45, 0x41, 0x0a, 0x41, 0x51, 0x4b, 0x43, 0x41, 0x67, 0x45, 0x41, 0x74, 0x69, 0x33, 0x49, 0x65, 0x31, 0x6a, 0x4a, 0x36, 0x4a, 0x4a, 0x33, 0x47, 0x6b, 0x71, 0x66, 0x51, 0x68, 0x49, 0x69, 0x75, 0x34, 0x78, 0x6b, 0x4c, 0x2f, 0x6d, 0x44, 0x47, 0x53, 0x32, 0x34, 0x72, 0x6c, 0x41, 0x76, 0x6c, 0x50, 0x57, 0x4e, 0x4e, 0x69, 0x6c, 0x4b, 0x37, 0x50, 0x53, 0x6a, 0x70, 0x32, 0x38, 0x38, 0x56, 0x75, 0x42, 0x57, 0x0a, 0x66, 0x53, 0x46, 0x4f, 0x5a, 0x79, 0x42, 0x48, 0x55, 0x63, 0x50, 0x41, 0x56, 0x63, 0x6c, 0x69, 0x69, 0x32, 0x63, 0x6b, 0x46, 0x51, 0x5a, 0x46, 0x34, 0x39, 0x76, 0x67, 0x64, 0x75, 0x6f, 0x70, 0x50, 0x35, 0x6f, 0x57, 0x4c, 0x54, 0x70, 0x5a, 0x6c, 0x77, 0x67, 0x6c, 0x55, 0x6a, 0x6a, 0x6f, 0x76, 0x5a, 0x63, 0x51, 0x59, 0x56, 0x58, 0x57, 0x34, 0x66, 0x39, 0x30, 0x70, 0x4d, 0x52, 0x5a, 0x0a, 0x52, 0x2b, 0x74, 0x79, 0x51, 0x30, 0x55, 0x55, 0x7a, 0x50, 0x43, 0x51, 0x39, 0x32, 0x50, 0x2b, 0x4e, 0x6a, 0x44, 0x75, 0x6d, 0x37, 0x75, 0x4c, 0x77, 0x46, 0x52, 0x36, 0x4a, 0x4b, 0x59, 0x34, 0x4c, 0x45, 0x53, 0x46, 0x6b, 0x4b, 0x6e, 0x6f, 0x6c, 0x46, 0x77, 0x2b, 0x6a, 0x4d, 0x4c, 0x76, 0x72, 0x52, 0x34, 0x32, 0x47, 0x2b, 0x66, 0x54, 0x72, 0x4e, 0x63, 0x34, 0x50, 0x6c, 0x48, 0x6c, 0x0a, 0x4c, 0x32, 0x63, 0x57, 0x56, 0x47, 0x2f, 0x63, 0x61, 0x41, 0x50, 0x63, 0x71, 0x55, 0x70, 0x69, 0x6d, 0x2b, 0x31, 0x59, 0x72, 0x32, 0x72, 0x76, 0x55, 0x75, 0x51, 0x49, 0x51, 0x53, 0x33, 0x42, 0x6b, 0x48, 0x54, 0x45, 0x69, 0x6f, 0x7a, 0x2b, 0x33, 0x70, 0x74, 0x76, 0x65, 0x39, 0x68, 0x2b, 0x32, 0x4c, 0x77, 0x70, 0x57, 0x49, 0x42, 0x66, 0x55, 0x5a, 0x70, 0x58, 0x2b, 0x34, 0x56, 0x48, 0x0a, 0x49, 0x47, 0x6b, 0x51, 0x69, 0x63, 0x4b, 0x33, 0x35, 0x39, 0x68, 0x63, 0x49, 0x32, 0x68, 0x47, 0x6b, 0x71, 0x55, 0x62, 0x73, 0x36, 0x39, 0x49, 0x78, 0x4a, 0x4e, 0x59, 0x66, 0x70, 0x65, 0x32, 0x47, 0x5a, 0x31, 0x45, 0x51, 0x63, 0x63, 0x7a, 0x30, 0x53, 0x73, 0x48, 0x4e, 0x71, 0x57, 0x65, 0x77, 0x2b, 0x6f, 0x52, 0x63, 0x61, 0x69, 0x54, 0x6f, 0x77, 0x46, 0x76, 0x6f, 0x33, 0x68, 0x74, 0x0a, 0x36, 0x47, 0x78, 0x53, 0x6e, 0x71, 0x45, 0x57, 0x30, 0x37, 0x48, 0x30, 0x4b, 0x54, 0x4b, 0x59, 0x69, 0x6c, 0x6e, 0x5a, 0x69, 0x34, 0x58, 0x49, 0x57, 0x33, 0x48, 0x35, 0x30, 0x51, 0x61, 0x75, 0x61, 0x68, 0x62, 0x77, 0x48, 0x30, 0x75, 0x56, 0x73, 0x64, 0x32, 0x55, 0x39, 0x6f, 0x34, 0x6c, 0x37, 0x54, 0x38, 0x5a, 0x4d, 0x65, 0x34, 0x52, 0x50, 0x6d, 0x66, 0x39, 0x77, 0x46, 0x6e, 0x2f, 0x0a, 0x45, 0x7a, 0x34, 0x46, 0x74, 0x68, 0x62, 0x6e, 0x51, 0x4f, 0x57, 0x42, 0x6f, 0x31, 0x44, 0x78, 0x61, 0x42, 0x6d, 0x78, 0x39, 0x42, 0x66, 0x6e, 0x35, 0x6e, 0x43, 0x35, 0x49, 0x36, 0x52, 0x79, 0x72, 0x36, 0x58, 0x4d, 0x6e, 0x6e, 0x4a, 0x4a, 0x2b, 0x65, 0x41, 0x74, 0x53, 0x6a, 0x58, 0x53, 0x41, 0x56, 0x37, 0x2f, 0x36, 0x33, 0x43, 0x72, 0x70, 0x63, 0x42, 0x2b, 0x73, 0x42, 0x74, 0x46, 0x0a, 0x69, 0x7a, 0x46, 0x33, 0x79, 0x45, 0x51, 0x38, 0x72, 0x74, 0x57, 0x41, 0x43, 0x71, 0x78, 0x6a, 0x4d, 0x55, 0x50, 0x43, 0x33, 0x4a, 0x71, 0x39, 0x6c, 0x39, 0x33, 0x39, 0x38, 0x2f, 0x6a, 0x7a, 0x43, 0x70, 0x5a, 0x5a, 0x4c, 0x76, 0x7a, 0x34, 0x4e, 0x55, 0x6a, 0x6a, 0x74, 0x66, 0x4e, 0x68, 0x33, 0x69, 0x36, 0x44, 0x50, 0x36, 0x49, 0x68, 0x41, 0x4b, 0x31, 0x33, 0x54, 0x56, 0x37, 0x49, 0x0a, 0x34, 0x47, 0x34, 0x30, 0x62, 0x72, 0x5a, 0x68, 0x6d, 0x58, 0x53, 0x56, 0x4b, 0x42, 0x6e, 0x78, 0x47, 0x37, 0x44, 0x35, 0x69, 0x59, 0x36, 0x50, 0x62, 0x67, 0x56, 0x57, 0x48, 0x46, 0x44, 0x45, 0x6a, 0x50, 0x44, 0x77, 0x6f, 0x4a, 0x6b, 0x74, 0x4b, 0x31, 0x42, 0x50, 0x61, 0x64, 0x33, 0x71, 0x57, 0x66, 0x39, 0x34, 0x66, 0x6d, 0x74, 0x35, 0x79, 0x6b, 0x5a, 0x64, 0x2f, 0x74, 0x65, 0x71, 0x0a, 0x65, 0x52, 0x49, 0x45, 0x76, 0x55, 0x7a, 0x4a, 0x47, 0x35, 0x50, 0x46, 0x47, 0x77, 0x4f, 0x7a, 0x78, 0x56, 0x52, 0x48, 0x44, 0x4e, 0x38, 0x51, 0x51, 0x6d, 0x4e, 0x4a, 0x63, 0x43, 0x4a, 0x75, 0x79, 0x74, 0x77, 0x34, 0x44, 0x6e, 0x73, 0x78, 0x6f, 0x43, 0x38, 0x33, 0x69, 0x7a, 0x66, 0x68, 0x2b, 0x6e, 0x45, 0x71, 0x45, 0x50, 0x50, 0x51, 0x69, 0x44, 0x46, 0x6f, 0x54, 0x4c, 0x79, 0x44, 0x0a, 0x2b, 0x34, 0x56, 0x52, 0x67, 0x46, 0x42, 0x62, 0x36, 0x61, 0x69, 0x72, 0x56, 0x63, 0x79, 0x58, 0x57, 0x64, 0x72, 0x32, 0x30, 0x43, 0x64, 0x4f, 0x47, 0x67, 0x58, 0x6f, 0x42, 0x4d, 0x72, 0x4e, 0x42, 0x6c, 0x2b, 0x45, 0x36, 0x32, 0x4d, 0x59, 0x41, 0x65, 0x32, 0x71, 0x63, 0x36, 0x37, 0x63, 0x51, 0x59, 0x45, 0x43, 0x67, 0x67, 0x45, 0x42, 0x41, 0x4f, 0x39, 0x32, 0x58, 0x4e, 0x41, 0x46, 0x0a, 0x52, 0x41, 0x77, 0x5a, 0x79, 0x64, 0x7a, 0x59, 0x63, 0x68, 0x35, 0x45, 0x35, 0x65, 0x6a, 0x7a, 0x39, 0x54, 0x5a, 0x62, 0x48, 0x66, 0x65, 0x66, 0x34, 0x7a, 0x4e, 0x42, 0x48, 0x55, 0x2f, 0x6d, 0x56, 0x31, 0x76, 0x68, 0x38, 0x39, 0x64, 0x39, 0x4b, 0x6a, 0x53, 0x46, 0x2f, 0x4f, 0x69, 0x4c, 0x33, 0x45, 0x6e, 0x6f, 0x59, 0x78, 0x50, 0x6b, 0x48, 0x67, 0x55, 0x58, 0x79, 0x6e, 0x39, 0x41, 0x0a, 0x34, 0x43, 0x34, 0x75, 0x31, 0x72, 0x6c, 0x64, 0x5a, 0x36, 0x64, 0x77, 0x43, 0x56, 0x41, 0x62, 0x5a, 0x4a, 0x6e, 0x54, 0x38, 0x55, 0x46, 0x32, 0x6e, 0x4c, 0x52, 0x46, 0x4d, 0x58, 0x68, 0x61, 0x71, 0x79, 0x4a, 0x45, 0x6d, 0x54, 0x37, 0x6a, 0x43, 0x59, 0x52, 0x79, 0x37, 0x65, 0x72, 0x64, 0x37, 0x56, 0x4c, 0x39, 0x35, 0x67, 0x56, 0x68, 0x55, 0x4f, 0x73, 0x4a, 0x59, 0x77, 0x4c, 0x6d, 0x0a, 0x74, 0x59, 0x66, 0x63, 0x69, 0x6b, 0x30, 0x37, 0x51, 0x6d, 0x44, 0x53, 0x50, 0x56, 0x75, 0x47, 0x68, 0x56, 0x32, 0x4b, 0x65, 0x6b, 0x6e, 0x7a, 0x54, 0x61, 0x31, 0x4e, 0x53, 0x54, 0x55, 0x38, 0x76, 0x77, 0x51, 0x46, 0x2b, 0x77, 0x4b, 0x48, 0x69, 0x38, 0x36, 0x34, 0x64, 0x6d, 0x7a, 0x6b, 0x73, 0x6c, 0x59, 0x6e, 0x51, 0x71, 0x62, 0x46, 0x6f, 0x54, 0x56, 0x52, 0x5a, 0x74, 0x4e, 0x65, 0x0a, 0x72, 0x4c, 0x62, 0x36, 0x67, 0x36, 0x6e, 0x63, 0x77, 0x36, 0x4a, 0x57, 0x78, 0x39, 0x79, 0x65, 0x42, 0x30, 0x37, 0x56, 0x64, 0x70, 0x4a, 0x70, 0x36, 0x78, 0x39, 0x54, 0x59, 0x54, 0x2b, 0x48, 0x47, 0x6a, 0x33, 0x6b, 0x62, 0x35, 0x61, 0x63, 0x75, 0x49, 0x6e, 0x50, 0x2b, 0x6a, 0x67, 0x37, 0x47, 0x5a, 0x7a, 0x6b, 0x72, 0x48, 0x4a, 0x4d, 0x6e, 0x48, 0x4c, 0x77, 0x65, 0x46, 0x76, 0x62, 0x0a, 0x4e, 0x57, 0x5a, 0x66, 0x6c, 0x50, 0x66, 0x69, 0x41, 0x4e, 0x6d, 0x77, 0x4d, 0x38, 0x77, 0x4d, 0x52, 0x2b, 0x6b, 0x66, 0x50, 0x32, 0x76, 0x6f, 0x67, 0x47, 0x61, 0x6d, 0x4b, 0x43, 0x69, 0x65, 0x6f, 0x6a, 0x56, 0x61, 0x54, 0x69, 0x38, 0x76, 0x67, 0x71, 0x71, 0x6a, 0x78, 0x34, 0x55, 0x47, 0x50, 0x64, 0x35, 0x39, 0x36, 0x46, 0x4e, 0x46, 0x65, 0x69, 0x5a, 0x52, 0x76, 0x58, 0x4e, 0x6b, 0x0a, 0x30, 0x64, 0x42, 0x30, 0x41, 0x4b, 0x32, 0x51, 0x2f, 0x31, 0x32, 0x36, 0x53, 0x6c, 0x45, 0x43, 0x67, 0x67, 0x45, 0x42, 0x41, 0x4e, 0x6c, 0x69, 0x74, 0x64, 0x78, 0x48, 0x74, 0x74, 0x78, 0x68, 0x2f, 0x57, 0x71, 0x77, 0x46, 0x4b, 0x33, 0x35, 0x62, 0x63, 0x4f, 0x54, 0x58, 0x61, 0x68, 0x36, 0x50, 0x61, 0x70, 0x50, 0x64, 0x67, 0x2f, 0x37, 0x32, 0x50, 0x75, 0x4f, 0x6c, 0x33, 0x57, 0x74, 0x0a, 0x37, 0x57, 0x6e, 0x38, 0x41, 0x74, 0x36, 0x46, 0x49, 0x47, 0x51, 0x33, 0x58, 0x5a, 0x4f, 0x4f, 0x50, 0x66, 0x39, 0x76, 0x35, 0x48, 0x66, 0x71, 0x50, 0x70, 0x53, 0x6c, 0x4e, 0x56, 0x39, 0x33, 0x41, 0x58, 0x58, 0x61, 0x4f, 0x36, 0x49, 0x54, 0x7a, 0x77, 0x49, 0x45, 0x62, 0x38, 0x49, 0x47, 0x33, 0x69, 0x45, 0x4f, 0x74, 0x54, 0x4c, 0x77, 0x32, 0x39, 0x32, 0x4b, 0x55, 0x38, 0x6c, 0x4a, 0x0a, 0x4c, 0x6c, 0x38, 0x58, 0x70, 0x68, 0x4f, 0x6b, 0x56, 0x55, 0x72, 0x50, 0x6b, 0x7a, 0x47, 0x47, 0x36, 0x64, 0x66, 0x56, 0x4e, 0x70, 0x36, 0x49, 0x32, 0x68, 0x54, 0x70, 0x59, 0x4a, 0x49, 0x53, 0x77, 0x41, 0x55, 0x35, 0x48, 0x76, 0x4b, 0x70, 0x63, 0x39, 0x6f, 0x42, 0x30, 0x59, 0x4b, 0x68, 0x56, 0x4c, 0x66, 0x43, 0x2b, 0x69, 0x64, 0x61, 0x6b, 0x56, 0x43, 0x35, 0x66, 0x5a, 0x7a, 0x36, 0x0a, 0x7a, 0x46, 0x41, 0x6f, 0x32, 0x37, 0x46, 0x65, 0x6f, 0x49, 0x45, 0x64, 0x48, 0x74, 0x39, 0x32, 0x5a, 0x65, 0x36, 0x51, 0x33, 0x34, 0x4e, 0x4a, 0x67, 0x70, 0x56, 0x62, 0x67, 0x6d, 0x54, 0x30, 0x2b, 0x77, 0x74, 0x75, 0x75, 0x72, 0x71, 0x6f, 0x5a, 0x2f, 0x7a, 0x52, 0x74, 0x6b, 0x78, 0x34, 0x35, 0x77, 0x75, 0x71, 0x49, 0x33, 0x45, 0x2b, 0x54, 0x44, 0x61, 0x31, 0x53, 0x75, 0x71, 0x33, 0x0a, 0x34, 0x4f, 0x51, 0x73, 0x65, 0x32, 0x57, 0x63, 0x67, 0x6a, 0x7a, 0x53, 0x66, 0x64, 0x4c, 0x4a, 0x74, 0x54, 0x66, 0x79, 0x65, 0x4c, 0x31, 0x70, 0x34, 0x56, 0x68, 0x47, 0x79, 0x63, 0x78, 0x67, 0x2b, 0x4a, 0x45, 0x35, 0x48, 0x34, 0x6a, 0x69, 0x33, 0x7a, 0x35, 0x33, 0x46, 0x78, 0x72, 0x4d, 0x6e, 0x41, 0x30, 0x6d, 0x53, 0x45, 0x6c, 0x79, 0x45, 0x6a, 0x69, 0x38, 0x38, 0x78, 0x54, 0x47, 0x0a, 0x48, 0x43, 0x59, 0x47, 0x49, 0x6e, 0x4a, 0x70, 0x5a, 0x72, 0x2b, 0x51, 0x7a, 0x67, 0x50, 0x54, 0x7a, 0x57, 0x66, 0x35, 0x52, 0x34, 0x36, 0x6b, 0x30, 0x38, 0x47, 0x4b, 0x73, 0x6d, 0x56, 0x67, 0x6a, 0x31, 0x50, 0x32, 0x7a, 0x39, 0x4f, 0x65, 0x33, 0x61, 0x4d, 0x43, 0x67, 0x67, 0x45, 0x41, 0x48, 0x42, 0x6b, 0x64, 0x5a, 0x75, 0x4e, 0x58, 0x53, 0x72, 0x77, 0x7a, 0x37, 0x5a, 0x41, 0x51, 0x0a, 0x51, 0x2f, 0x44, 0x39, 0x73, 0x55, 0x6e, 0x2b, 0x2b, 0x66, 0x50, 0x54, 0x48, 0x6c, 0x31, 0x4b, 0x67, 0x5a, 0x63, 0x67, 0x59, 0x32, 0x47, 0x35, 0x32, 0x6e, 0x51, 0x32, 0x38, 0x70, 0x41, 0x6a, 0x52, 0x61, 0x70, 0x37, 0x4e, 0x4b, 0x5a, 0x45, 0x6f, 0x50, 0x39, 0x39, 0x73, 0x4c, 0x58, 0x52, 0x74, 0x2f, 0x4e, 0x45, 0x74, 0x59, 0x33, 0x64, 0x51, 0x45, 0x34, 0x4b, 0x73, 0x42, 0x46, 0x2f, 0x0a, 0x75, 0x69, 0x76, 0x78, 0x53, 0x38, 0x38, 0x4c, 0x44, 0x4f, 0x6e, 0x4c, 0x6f, 0x30, 0x7a, 0x52, 0x73, 0x6d, 0x31, 0x30, 0x45, 0x70, 0x56, 0x42, 0x41, 0x33, 0x4a, 0x64, 0x4d, 0x50, 0x33, 0x65, 0x2f, 0x67, 0x57, 0x6d, 0x57, 0x53, 0x72, 0x56, 0x55, 0x43, 0x6d, 0x75, 0x74, 0x65, 0x37, 0x6e, 0x57, 0x63, 0x7a, 0x75, 0x4b, 0x30, 0x62, 0x37, 0x41, 0x67, 0x67, 0x6b, 0x79, 0x6b, 0x38, 0x72, 0x0a, 0x79, 0x4d, 0x53, 0x69, 0x6f, 0x6e, 0x79, 0x30, 0x5a, 0x58, 0x64, 0x38, 0x52, 0x66, 0x55, 0x67, 0x70, 0x6a, 0x63, 0x74, 0x59, 0x65, 0x76, 0x51, 0x31, 0x68, 0x34, 0x46, 0x69, 0x42, 0x52, 0x7a, 0x6d, 0x54, 0x77, 0x58, 0x32, 0x55, 0x73, 0x30, 0x69, 0x64, 0x74, 0x74, 0x66, 0x4c, 0x67, 0x76, 0x35, 0x46, 0x75, 0x36, 0x33, 0x77, 0x35, 0x36, 0x34, 0x62, 0x57, 0x66, 0x67, 0x57, 0x30, 0x41, 0x0a, 0x48, 0x36, 0x70, 0x6a, 0x4a, 0x55, 0x58, 0x39, 0x77, 0x59, 0x68, 0x57, 0x73, 0x33, 0x4e, 0x75, 0x50, 0x57, 0x7a, 0x42, 0x4f, 0x6e, 0x30, 0x56, 0x33, 0x54, 0x46, 0x53, 0x7a, 0x71, 0x39, 0x78, 0x44, 0x2b, 0x71, 0x78, 0x68, 0x36, 0x75, 0x58, 0x6f, 0x38, 0x74, 0x4a, 0x57, 0x4e, 0x67, 0x59, 0x65, 0x33, 0x77, 0x77, 0x41, 0x30, 0x64, 0x44, 0x69, 0x74, 0x47, 0x6f, 0x58, 0x7a, 0x58, 0x4c, 0x0a, 0x74, 0x37, 0x39, 0x76, 0x4e, 0x49, 0x41, 0x30, 0x5a, 0x2b, 0x78, 0x63, 0x75, 0x73, 0x4b, 0x37, 0x58, 0x6c, 0x41, 0x63, 0x34, 0x6a, 0x64, 0x4b, 0x2f, 0x55, 0x75, 0x74, 0x5a, 0x4f, 0x67, 0x45, 0x51, 0x78, 0x57, 0x59, 0x73, 0x63, 0x6b, 0x37, 0x74, 0x55, 0x47, 0x38, 0x34, 0x78, 0x69, 0x42, 0x37, 0x73, 0x45, 0x6b, 0x6f, 0x38, 0x65, 0x75, 0x76, 0x76, 0x44, 0x39, 0x71, 0x32, 0x41, 0x61, 0x0a, 0x4e, 0x74, 0x74, 0x48, 0x49, 0x51, 0x4b, 0x43, 0x41, 0x51, 0x42, 0x44, 0x77, 0x30, 0x5a, 0x6e, 0x56, 0x52, 0x2b, 0x47, 0x55, 0x54, 0x46, 0x61, 0x71, 0x57, 0x71, 0x34, 0x31, 0x4a, 0x44, 0x48, 0x72, 0x30, 0x38, 0x35, 0x72, 0x6d, 0x6b, 0x38, 0x68, 0x71, 0x71, 0x4a, 0x7a, 0x76, 0x72, 0x54, 0x5a, 0x35, 0x36, 0x45, 0x2b, 0x32, 0x4f, 0x50, 0x62, 0x78, 0x52, 0x42, 0x34, 0x77, 0x4f, 0x32, 0x0a, 0x32, 0x5a, 0x39, 0x63, 0x32, 0x4c, 0x45, 0x77, 0x78, 0x2b, 0x4e, 0x54, 0x45, 0x66, 0x7a, 0x52, 0x2f, 0x7a, 0x48, 0x46, 0x41, 0x57, 0x61, 0x2b, 0x49, 0x76, 0x6f, 0x46, 0x79, 0x75, 0x44, 0x7a, 0x67, 0x77, 0x69, 0x48, 0x56, 0x66, 0x61, 0x32, 0x48, 0x55, 0x79, 0x55, 0x68, 0x59, 0x6f, 0x7a, 0x34, 0x2b, 0x4f, 0x38, 0x55, 0x67, 0x69, 0x58, 0x63, 0x64, 0x71, 0x2b, 0x4d, 0x72, 0x4b, 0x33, 0x0a, 0x73, 0x44, 0x37, 0x30, 0x36, 0x46, 0x5a, 0x4b, 0x68, 0x6c, 0x63, 0x52, 0x55, 0x68, 0x32, 0x51, 0x2b, 0x54, 0x4b, 0x32, 0x4e, 0x67, 0x77, 0x50, 0x56, 0x4c, 0x2f, 0x31, 0x36, 0x71, 0x61, 0x48, 0x5a, 0x5a, 0x75, 0x32, 0x65, 0x61, 0x33, 0x62, 0x33, 0x6e, 0x5a, 0x32, 0x41, 0x41, 0x42, 0x65, 0x52, 0x6f, 0x51, 0x47, 0x68, 0x42, 0x4e, 0x65, 0x52, 0x57, 0x34, 0x2b, 0x4f, 0x76, 0x34, 0x54, 0x0a, 0x59, 0x55, 0x31, 0x33, 0x59, 0x51, 0x50, 0x6a, 0x4f, 0x74, 0x76, 0x42, 0x70, 0x41, 0x2b, 0x46, 0x6d, 0x56, 0x48, 0x72, 0x51, 0x49, 0x5a, 0x6c, 0x43, 0x4f, 0x35, 0x43, 0x4d, 0x79, 0x36, 0x2f, 0x47, 0x32, 0x77, 0x56, 0x4b, 0x48, 0x62, 0x31, 0x4a, 0x75, 0x4d, 0x48, 0x63, 0x4f, 0x44, 0x33, 0x43, 0x4d, 0x70, 0x43, 0x6f, 0x6e, 0x45, 0x44, 0x44, 0x32, 0x36, 0x6a, 0x76, 0x51, 0x62, 0x49, 0x0a, 0x43, 0x4f, 0x46, 0x5a, 0x37, 0x4c, 0x43, 0x46, 0x73, 0x52, 0x71, 0x38, 0x43, 0x4a, 0x35, 0x4c, 0x45, 0x7a, 0x33, 0x69, 0x62, 0x4c, 0x50, 0x76, 0x4b, 0x50, 0x78, 0x51, 0x67, 0x6c, 0x41, 0x4f, 0x75, 0x37, 0x62, 0x44, 0x44, 0x74, 0x62, 0x79, 0x4c, 0x6d, 0x58, 0x49, 0x4a, 0x7a, 0x76, 0x51, 0x33, 0x65, 0x31, 0x30, 0x49, 0x31, 0x45, 0x77, 0x39, 0x53, 0x61, 0x56, 0x76, 0x59, 0x39, 0x65, 0x0a, 0x31, 0x62, 0x65, 0x79, 0x62, 0x37, 0x71, 0x4f, 0x31, 0x36, 0x44, 0x62, 0x73, 0x54, 0x75, 0x6c, 0x45, 0x43, 0x51, 0x4e, 0x2f, 0x2b, 0x79, 0x4e, 0x77, 0x74, 0x6b, 0x44, 0x34, 0x58, 0x69, 0x37, 0x41, 0x6f, 0x49, 0x42, 0x41, 0x41, 0x63, 0x73, 0x6f, 0x4f, 0x7a, 0x75, 0x50, 0x6d, 0x37, 0x35, 0x4a, 0x4f, 0x32, 0x42, 0x33, 0x76, 0x32, 0x45, 0x64, 0x2b, 0x37, 0x47, 0x4b, 0x31, 0x53, 0x63, 0x0a, 0x6c, 0x76, 0x56, 0x4e, 0x55, 0x33, 0x43, 0x7a, 0x30, 0x4e, 0x66, 0x4c, 0x50, 0x4a, 0x56, 0x79, 0x73, 0x56, 0x53, 0x48, 0x65, 0x67, 0x61, 0x53, 0x5a, 0x38, 0x33, 0x5a, 0x6f, 0x4e, 0x50, 0x68, 0x6d, 0x54, 0x42, 0x47, 0x62, 0x72, 0x56, 0x45, 0x72, 0x31, 0x62, 0x33, 0x42, 0x55, 0x59, 0x30, 0x6c, 0x6b, 0x46, 0x49, 0x4f, 0x6f, 0x33, 0x6d, 0x66, 0x30, 0x32, 0x6c, 0x37, 0x57, 0x48, 0x59, 0x0a, 0x78, 0x4d, 0x51, 0x38, 0x48, 0x63, 0x32, 0x61, 0x6e, 0x55, 0x38, 0x71, 0x64, 0x4f, 0x58, 0x76, 0x6f, 0x58, 0x62, 0x51, 0x34, 0x2f, 0x59, 0x59, 0x4b, 0x31, 0x57, 0x42, 0x76, 0x4b, 0x75, 0x2f, 0x43, 0x6c, 0x42, 0x53, 0x45, 0x63, 0x61, 0x4f, 0x39, 0x30, 0x62, 0x71, 0x79, 0x44, 0x73, 0x37, 0x33, 0x6d, 0x69, 0x46, 0x57, 0x2f, 0x43, 0x31, 0x54, 0x66, 0x78, 0x50, 0x58, 0x6e, 0x6b, 0x53, 0x0a, 0x54, 0x2b, 0x72, 0x4f, 0x4d, 0x6d, 0x77, 0x52, 0x51, 0x67, 0x4c, 0x46, 0x50, 0x6c, 0x35, 0x46, 0x41, 0x62, 0x48, 0x4f, 0x6b, 0x31, 0x41, 0x58, 0x5a, 0x45, 0x34, 0x46, 0x46, 0x47, 0x50, 0x75, 0x55, 0x62, 0x52, 0x74, 0x6b, 0x4f, 0x45, 0x72, 0x64, 0x77, 0x34, 0x74, 0x5a, 0x68, 0x53, 0x77, 0x66, 0x58, 0x74, 0x2f, 0x46, 0x41, 0x36, 0x2b, 0x32, 0x4c, 0x6e, 0x48, 0x79, 0x37, 0x38, 0x38, 0x0a, 0x58, 0x4f, 0x46, 0x62, 0x71, 0x30, 0x46, 0x4b, 0x6e, 0x63, 0x6e, 0x68, 0x32, 0x6a, 0x61, 0x2b, 0x64, 0x37, 0x65, 0x4e, 0x6c, 0x48, 0x77, 0x4c, 0x4b, 0x63, 0x53, 0x43, 0x34, 0x43, 0x46, 0x4e, 0x46, 0x4b, 0x51, 0x6d, 0x6c, 0x45, 0x68, 0x5a, 0x5a, 0x4a, 0x48, 0x63, 0x65, 0x6e, 0x2f, 0x42, 0x30, 0x6d, 0x7a, 0x72, 0x48, 0x6c, 0x35, 0x76, 0x53, 0x6c, 0x59, 0x79, 0x37, 0x50, 0x37, 0x73, 0x0a, 0x63, 0x32, 0x52, 0x34, 0x33, 0x54, 0x6c, 0x45, 0x41, 0x4d, 0x77, 0x72, 0x32, 0x4a, 0x30, 0x4c, 0x37, 0x58, 0x65, 0x34, 0x2b, 0x33, 0x45, 0x36, 0x31, 0x4f, 0x64, 0x43, 0x4f, 0x30, 0x46, 0x37, 0x4e, 0x46, 0x30, 0x76, 0x33, 0x66, 0x2f, 0x34, 0x5a, 0x6f, 0x4a, 0x49, 0x6d, 0x4c, 0x74, 0x4e, 0x7a, 0x4d, 0x4f, 0x31, 0x68, 0x69, 0x61, 0x51, 0x34, 0x69, 0x67, 0x3d, 0x0a, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x45, 0x4e, 0x44, 0x20, 0x52, 0x53, 0x41, 0x20, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x20, 0x4b, 0x45, 0x59, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x0a #ifdef CONFIG_MBEDTLS , 0x00 #endif }; unsigned char node_cert2[] = { 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x42, 0x45, 0x47, 0x49, 0x4e, 0x20, 0x43, 0x45, 0x52, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x45, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x0a, 0x4d, 0x49, 0x49, 0x45, 0x47, 0x7a, 0x43, 0x43, 0x41, 0x77, 0x4f, 0x67, 0x41, 0x77, 0x49, 0x42, 0x41, 0x67, 0x49, 0x44, 0x45, 0x41, 0x41, 0x44, 0x4d, 0x41, 0x30, 0x47, 0x43, 0x53, 0x71, 0x47, 0x53, 0x49, 0x62, 0x33, 0x44, 0x51, 0x45, 0x42, 0x43, 0x77, 0x55, 0x41, 0x4d, 0x45, 0x38, 0x78, 0x47, 0x7a, 0x41, 0x5a, 0x42, 0x67, 0x4e, 0x56, 0x42, 0x41, 0x6f, 0x54, 0x45, 0x6d, 0x78, 0x70, 0x0a, 0x59, 0x6e, 0x64, 0x6c, 0x59, 0x6e, 0x4e, 0x76, 0x59, 0x32, 0x74, 0x6c, 0x64, 0x48, 0x4d, 0x74, 0x64, 0x47, 0x56, 0x7a, 0x64, 0x44, 0x45, 0x53, 0x4d, 0x42, 0x41, 0x47, 0x41, 0x31, 0x55, 0x45, 0x42, 0x78, 0x4d, 0x4a, 0x57, 0x47, 0x6c, 0x68, 0x62, 0x32, 0x4a, 0x70, 0x64, 0x47, 0x46, 0x75, 0x4d, 0x51, 0x38, 0x77, 0x44, 0x51, 0x59, 0x44, 0x56, 0x51, 0x51, 0x49, 0x45, 0x77, 0x5a, 0x55, 0x0a, 0x59, 0x57, 0x6c, 0x77, 0x5a, 0x57, 0x6b, 0x78, 0x43, 0x7a, 0x41, 0x4a, 0x42, 0x67, 0x4e, 0x56, 0x42, 0x41, 0x59, 0x54, 0x41, 0x6c, 0x52, 0x58, 0x4d, 0x43, 0x41, 0x58, 0x44, 0x54, 0x49, 0x79, 0x4d, 0x44, 0x63, 0x77, 0x4e, 0x6a, 0x45, 0x78, 0x4d, 0x6a, 0x55, 0x77, 0x4d, 0x31, 0x6f, 0x59, 0x44, 0x7a, 0x49, 0x77, 0x4e, 0x54, 0x41, 0x77, 0x4e, 0x7a, 0x45, 0x35, 0x4d, 0x54, 0x45, 0x79, 0x0a, 0x4e, 0x54, 0x41, 0x7a, 0x57, 0x6a, 0x42, 0x50, 0x4d, 0x51, 0x73, 0x77, 0x43, 0x51, 0x59, 0x44, 0x56, 0x51, 0x51, 0x47, 0x45, 0x77, 0x4a, 0x55, 0x56, 0x7a, 0x45, 0x50, 0x4d, 0x41, 0x30, 0x47, 0x41, 0x31, 0x55, 0x45, 0x43, 0x42, 0x4d, 0x47, 0x56, 0x47, 0x46, 0x70, 0x63, 0x47, 0x56, 0x70, 0x4d, 0x52, 0x73, 0x77, 0x47, 0x51, 0x59, 0x44, 0x56, 0x51, 0x51, 0x4b, 0x45, 0x78, 0x4a, 0x73, 0x0a, 0x61, 0x57, 0x4a, 0x33, 0x5a, 0x57, 0x4a, 0x7a, 0x62, 0x32, 0x4e, 0x72, 0x5a, 0x58, 0x52, 0x7a, 0x4c, 0x58, 0x52, 0x6c, 0x63, 0x33, 0x51, 0x78, 0x45, 0x6a, 0x41, 0x51, 0x42, 0x67, 0x4e, 0x56, 0x42, 0x41, 0x4d, 0x54, 0x43, 0x57, 0x78, 0x76, 0x59, 0x32, 0x46, 0x73, 0x61, 0x47, 0x39, 0x7a, 0x64, 0x44, 0x43, 0x43, 0x41, 0x69, 0x49, 0x77, 0x44, 0x51, 0x59, 0x4a, 0x4b, 0x6f, 0x5a, 0x49, 0x0a, 0x68, 0x76, 0x63, 0x4e, 0x41, 0x51, 0x45, 0x42, 0x42, 0x51, 0x41, 0x44, 0x67, 0x67, 0x49, 0x50, 0x41, 0x44, 0x43, 0x43, 0x41, 0x67, 0x6f, 0x43, 0x67, 0x67, 0x49, 0x42, 0x41, 0x4d, 0x74, 0x58, 0x71, 0x68, 0x69, 0x59, 0x68, 0x47, 0x6a, 0x56, 0x4c, 0x77, 0x56, 0x75, 0x61, 0x79, 0x76, 0x4d, 0x4d, 0x49, 0x72, 0x6a, 0x4b, 0x37, 0x53, 0x34, 0x4c, 0x62, 0x52, 0x48, 0x6c, 0x4e, 0x55, 0x44, 0x0a, 0x74, 0x4a, 0x7a, 0x46, 0x6f, 0x32, 0x41, 0x6a, 0x75, 0x4c, 0x75, 0x6d, 0x74, 0x65, 0x46, 0x2b, 0x4b, 0x4c, 0x73, 0x34, 0x56, 0x6a, 0x59, 0x7a, 0x78, 0x75, 0x64, 0x61, 0x43, 0x51, 0x72, 0x79, 0x76, 0x4d, 0x61, 0x6c, 0x30, 0x64, 0x2f, 0x38, 0x32, 0x38, 0x75, 0x6e, 0x33, 0x78, 0x34, 0x67, 0x57, 0x6a, 0x59, 0x54, 0x4f, 0x43, 0x35, 0x35, 0x63, 0x51, 0x39, 0x4d, 0x44, 0x4e, 0x64, 0x2b, 0x0a, 0x70, 0x6d, 0x4d, 0x45, 0x45, 0x34, 0x2b, 0x64, 0x31, 0x75, 0x6e, 0x54, 0x66, 0x6f, 0x39, 0x38, 0x38, 0x32, 0x6a, 0x4d, 0x38, 0x65, 0x6a, 0x6c, 0x4e, 0x46, 0x54, 0x63, 0x44, 0x6f, 0x54, 0x50, 0x68, 0x6f, 0x4e, 0x37, 0x77, 0x71, 0x66, 0x78, 0x4f, 0x31, 0x35, 0x46, 0x6e, 0x69, 0x54, 0x77, 0x54, 0x43, 0x57, 0x39, 0x30, 0x62, 0x6d, 0x7a, 0x37, 0x32, 0x74, 0x36, 0x7a, 0x4c, 0x4f, 0x6d, 0x0a, 0x33, 0x43, 0x70, 0x5a, 0x75, 0x75, 0x64, 0x48, 0x53, 0x6e, 0x58, 0x48, 0x71, 0x74, 0x67, 0x4f, 0x7a, 0x36, 0x6e, 0x53, 0x53, 0x62, 0x54, 0x6a, 0x4f, 0x31, 0x51, 0x52, 0x33, 0x4c, 0x4e, 0x2b, 0x44, 0x76, 0x4e, 0x30, 0x34, 0x62, 0x4d, 0x58, 0x42, 0x66, 0x65, 0x2f, 0x30, 0x4e, 0x56, 0x45, 0x2f, 0x51, 0x70, 0x65, 0x4f, 0x4f, 0x47, 0x50, 0x5a, 0x53, 0x47, 0x43, 0x4f, 0x74, 0x4b, 0x76, 0x0a, 0x44, 0x5a, 0x34, 0x4f, 0x75, 0x79, 0x4b, 0x68, 0x6d, 0x32, 0x52, 0x6f, 0x72, 0x47, 0x4a, 0x6e, 0x4c, 0x6d, 0x58, 0x78, 0x44, 0x46, 0x48, 0x6d, 0x42, 0x4d, 0x70, 0x30, 0x30, 0x64, 0x41, 0x63, 0x65, 0x72, 0x42, 0x45, 0x52, 0x4c, 0x44, 0x6b, 0x4c, 0x52, 0x70, 0x64, 0x57, 0x34, 0x38, 0x4b, 0x32, 0x69, 0x35, 0x74, 0x42, 0x51, 0x76, 0x41, 0x63, 0x4a, 0x5a, 0x7a, 0x6c, 0x4c, 0x38, 0x51, 0x0a, 0x2b, 0x48, 0x32, 0x66, 0x67, 0x75, 0x53, 0x62, 0x42, 0x32, 0x32, 0x65, 0x55, 0x79, 0x74, 0x42, 0x62, 0x62, 0x4e, 0x6e, 0x67, 0x76, 0x36, 0x68, 0x79, 0x52, 0x79, 0x30, 0x62, 0x41, 0x49, 0x7a, 0x61, 0x59, 0x48, 0x77, 0x61, 0x70, 0x52, 0x49, 0x78, 0x72, 0x4c, 0x54, 0x57, 0x6e, 0x64, 0x4d, 0x69, 0x42, 0x37, 0x79, 0x4f, 0x76, 0x64, 0x69, 0x73, 0x6c, 0x55, 0x2b, 0x31, 0x53, 0x6f, 0x46, 0x0a, 0x57, 0x41, 0x62, 0x66, 0x56, 0x35, 0x79, 0x75, 0x68, 0x77, 0x4f, 0x6e, 0x77, 0x54, 0x4d, 0x53, 0x6f, 0x64, 0x52, 0x30, 0x39, 0x4f, 0x78, 0x67, 0x55, 0x61, 0x75, 0x41, 0x32, 0x79, 0x72, 0x41, 0x4c, 0x32, 0x51, 0x37, 0x42, 0x4d, 0x35, 0x47, 0x6e, 0x59, 0x4c, 0x70, 0x55, 0x6f, 0x35, 0x71, 0x35, 0x46, 0x67, 0x41, 0x77, 0x6b, 0x73, 0x4a, 0x6c, 0x38, 0x77, 0x79, 0x53, 0x44, 0x70, 0x59, 0x0a, 0x63, 0x51, 0x72, 0x37, 0x46, 0x72, 0x7a, 0x53, 0x6a, 0x71, 0x63, 0x31, 0x6f, 0x39, 0x55, 0x73, 0x37, 0x68, 0x45, 0x45, 0x6c, 0x6b, 0x76, 0x4e, 0x42, 0x5a, 0x6b, 0x31, 0x2b, 0x56, 0x50, 0x54, 0x61, 0x50, 0x35, 0x78, 0x45, 0x59, 0x79, 0x70, 0x63, 0x62, 0x67, 0x2b, 0x75, 0x2b, 0x59, 0x43, 0x7a, 0x63, 0x74, 0x4a, 0x57, 0x6e, 0x4a, 0x4b, 0x62, 0x43, 0x42, 0x7a, 0x32, 0x65, 0x73, 0x36, 0x0a, 0x4b, 0x6b, 0x70, 0x66, 0x43, 0x34, 0x61, 0x57, 0x63, 0x38, 0x55, 0x49, 0x4c, 0x6c, 0x55, 0x4b, 0x2f, 0x57, 0x34, 0x6a, 0x52, 0x46, 0x73, 0x4e, 0x47, 0x33, 0x55, 0x68, 0x41, 0x31, 0x76, 0x6e, 0x49, 0x5a, 0x77, 0x4b, 0x38, 0x36, 0x69, 0x71, 0x6d, 0x33, 0x6b, 0x2b, 0x50, 0x45, 0x62, 0x61, 0x68, 0x63, 0x45, 0x78, 0x41, 0x34, 0x71, 0x42, 0x2f, 0x4c, 0x42, 0x68, 0x6f, 0x67, 0x76, 0x73, 0x0a, 0x34, 0x7a, 0x39, 0x62, 0x32, 0x4d, 0x51, 0x33, 0x35, 0x74, 0x69, 0x49, 0x6f, 0x51, 0x44, 0x6a, 0x37, 0x52, 0x35, 0x78, 0x4e, 0x38, 0x63, 0x35, 0x41, 0x79, 0x77, 0x44, 0x79, 0x62, 0x38, 0x78, 0x47, 0x76, 0x32, 0x59, 0x6d, 0x6b, 0x34, 0x6a, 0x47, 0x74, 0x44, 0x6b, 0x64, 0x71, 0x72, 0x62, 0x74, 0x49, 0x55, 0x34, 0x32, 0x2b, 0x48, 0x4d, 0x31, 0x79, 0x4f, 0x6b, 0x38, 0x75, 0x38, 0x5a, 0x0a, 0x45, 0x69, 0x78, 0x4c, 0x51, 0x7a, 0x6f, 0x77, 0x6d, 0x71, 0x55, 0x71, 0x72, 0x65, 0x42, 0x43, 0x68, 0x6f, 0x41, 0x6f, 0x73, 0x63, 0x33, 0x46, 0x4f, 0x52, 0x4f, 0x6d, 0x54, 0x43, 0x44, 0x6c, 0x59, 0x36, 0x33, 0x34, 0x2f, 0x61, 0x63, 0x49, 0x49, 0x50, 0x33, 0x31, 0x64, 0x65, 0x64, 0x48, 0x4e, 0x59, 0x5a, 0x35, 0x31, 0x52, 0x72, 0x75, 0x6b, 0x41, 0x64, 0x41, 0x36, 0x32, 0x44, 0x62, 0x0a, 0x47, 0x44, 0x77, 0x67, 0x77, 0x7a, 0x36, 0x54, 0x41, 0x67, 0x4d, 0x42, 0x41, 0x41, 0x45, 0x77, 0x44, 0x51, 0x59, 0x4a, 0x4b, 0x6f, 0x5a, 0x49, 0x68, 0x76, 0x63, 0x4e, 0x41, 0x51, 0x45, 0x4c, 0x42, 0x51, 0x41, 0x44, 0x67, 0x67, 0x45, 0x42, 0x41, 0x4b, 0x56, 0x76, 0x2f, 0x53, 0x43, 0x50, 0x4f, 0x67, 0x77, 0x50, 0x41, 0x59, 0x30, 0x47, 0x34, 0x37, 0x79, 0x63, 0x76, 0x55, 0x48, 0x67, 0x0a, 0x6b, 0x33, 0x44, 0x51, 0x67, 0x6d, 0x62, 0x78, 0x56, 0x54, 0x46, 0x46, 0x57, 0x51, 0x79, 0x72, 0x50, 0x36, 0x58, 0x76, 0x4b, 0x48, 0x4f, 0x6c, 0x33, 0x65, 0x5a, 0x55, 0x32, 0x52, 0x65, 0x4a, 0x78, 0x65, 0x54, 0x78, 0x43, 0x4d, 0x55, 0x4b, 0x63, 0x4e, 0x6c, 0x57, 0x34, 0x2b, 0x65, 0x4d, 0x32, 0x6f, 0x43, 0x5a, 0x37, 0x57, 0x31, 0x76, 0x69, 0x74, 0x61, 0x75, 0x70, 0x6e, 0x4f, 0x30, 0x0a, 0x7a, 0x4c, 0x57, 0x36, 0x47, 0x42, 0x46, 0x53, 0x56, 0x58, 0x55, 0x34, 0x54, 0x2b, 0x59, 0x5a, 0x63, 0x69, 0x49, 0x48, 0x6e, 0x78, 0x6b, 0x71, 0x6c, 0x48, 0x33, 0x58, 0x78, 0x63, 0x6b, 0x67, 0x7a, 0x4e, 0x56, 0x4c, 0x79, 0x57, 0x44, 0x41, 0x41, 0x4a, 0x6f, 0x61, 0x77, 0x32, 0x63, 0x2b, 0x58, 0x31, 0x45, 0x39, 0x42, 0x7a, 0x59, 0x62, 0x49, 0x54, 0x2b, 0x7a, 0x4d, 0x59, 0x6a, 0x5a, 0x0a, 0x31, 0x62, 0x59, 0x41, 0x61, 0x76, 0x79, 0x51, 0x4f, 0x6f, 0x4d, 0x50, 0x64, 0x2f, 0x31, 0x7a, 0x30, 0x64, 0x59, 0x6d, 0x49, 0x39, 0x46, 0x72, 0x77, 0x78, 0x5a, 0x32, 0x4f, 0x42, 0x6e, 0x76, 0x2b, 0x63, 0x58, 0x41, 0x72, 0x69, 0x30, 0x2f, 0x4a, 0x4d, 0x47, 0x54, 0x63, 0x7a, 0x58, 0x36, 0x66, 0x56, 0x67, 0x53, 0x45, 0x50, 0x47, 0x66, 0x48, 0x48, 0x63, 0x6f, 0x36, 0x53, 0x4b, 0x4a, 0x0a, 0x52, 0x5a, 0x57, 0x38, 0x56, 0x49, 0x39, 0x67, 0x49, 0x4f, 0x52, 0x75, 0x57, 0x68, 0x79, 0x39, 0x76, 0x78, 0x55, 0x57, 0x41, 0x43, 0x4a, 0x6f, 0x30, 0x4f, 0x6b, 0x4a, 0x44, 0x75, 0x55, 0x37, 0x2b, 0x57, 0x54, 0x61, 0x39, 0x65, 0x44, 0x66, 0x6a, 0x46, 0x2b, 0x62, 0x62, 0x68, 0x2b, 0x2f, 0x49, 0x73, 0x38, 0x36, 0x66, 0x72, 0x4c, 0x32, 0x67, 0x76, 0x38, 0x79, 0x39, 0x69, 0x4d, 0x55, 0x0a, 0x74, 0x32, 0x36, 0x37, 0x75, 0x58, 0x39, 0x52, 0x52, 0x64, 0x30, 0x46, 0x70, 0x69, 0x4b, 0x70, 0x2b, 0x70, 0x4b, 0x4d, 0x48, 0x6d, 0x50, 0x77, 0x47, 0x33, 0x70, 0x75, 0x6b, 0x78, 0x57, 0x64, 0x38, 0x76, 0x6b, 0x4f, 0x72, 0x67, 0x6a, 0x4a, 0x44, 0x46, 0x2b, 0x54, 0x56, 0x48, 0x67, 0x67, 0x4c, 0x31, 0x4a, 0x59, 0x58, 0x5a, 0x37, 0x45, 0x4a, 0x39, 0x79, 0x6a, 0x50, 0x64, 0x77, 0x3d, 0x0a, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x45, 0x4e, 0x44, 0x20, 0x43, 0x45, 0x52, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x45, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x0a #ifdef CONFIG_MBEDTLS , 0x00 #endif }; #ifndef BSC_NETWORK_IFACE #define BSC_NETWORK_IFACE "127.0.0.1" #endif #define BACNET_CLOSED_PORT 65500 #define BACNET_LOCALHOST "127.0.0.1" #define BACNET_NODE_LOCAL_HUB_PORT 39005 #define BACNET_NODE_LOCAL_DIRECT_PORT 39006 #define BACNET_NODE_LOCAL_HUB_PORT2 39007 #define BACNET_NODE_LOCAL_DIRECT_PORT2 39008 #define BACNET_NODE_LOCAL_HUB_PORT3 39009 #define BACNET_NODE_LOCAL_DIRECT_PORT3 39010 #define BACNET_TIMEOUT 3 #define BACNET_INFINITE_TIMEOUT 0XFFFF #define MAX_BVLC_LEN 1500 #define MAX_NDPU_LEN 1500 #define MAX_SERVER_SOCKETS BSC_CONF_SERVER_DIRECT_CONNECTIONS_MAX_NUM #define MAX_CLIENT_SOCKETS BSC_CONF_CLIENT_CONNECTIONS_NUM #define WAIT_EVENT_MS 500 // MbedTLS expects a key in DER format #ifdef CONFIG_MBEDTLS #define NODE_KEY node_key_der #else #define NODE_KEY node_key #endif typedef struct { BSC_NODE_EVENT ev; BSC_NODE *node; uint8_t pdu[MAX_BVLC_LEN]; size_t pdu_len; BSC_EVENT *e; BACNET_SC_VMAC_ADDRESS dest; } node_ev_t; static void call_maintenance_timer(bool reset, int time_passed_ms) { static int total_ms; if (reset) { total_ms = 0; } total_ms += time_passed_ms; if (total_ms >= 1000) { bsc_node_maintenance_timer(1); total_ms = 0; } } static void wait_sec(int seconds) { while (seconds >= 0) { bsc_wait(1); bsc_node_maintenance_timer(1); seconds--; } } static node_ev_t node_ev; static node_ev_t node_ev2; static node_ev_t node_ev3; static void init_node_ev(node_ev_t *ev) { memset(ev, 0, sizeof(*ev)); ev->e = bsc_event_init(); ev->ev = -1; zassert_not_equal(ev->e, NULL, 0); } static void deinit_node_ev(node_ev_t *ev) { bsc_event_deinit(ev->e); } static bool wait_node_ev(node_ev_t *ev, BSC_NODE_EVENT wait_ev, BSC_NODE *node) { debug_printf( "wait_node_ev() >>> ev = %p ev->e = %p ev->ev = %d wait_ev = " "%d, node = %p\n", ev, ev->e, ev->ev, wait_ev, node); call_maintenance_timer(1, 0); while (!bsc_event_timedwait(ev->e, WAIT_EVENT_MS)) { call_maintenance_timer(0, WAIT_EVENT_MS); } bws_dispatch_lock(); if (ev->ev == wait_ev && ev->node == node) { debug_printf( "wait_node_ev() got event %d and reset ev %p ev->e %p\n", ev->ev, ev, ev->e); ev->ev = -1; // reset event if it was signalled while we were blocked in call // bws_dispatch_lock(). // (in that case ev->ev contains code of last event.) // that's tricky but that allows to avoid using mutexes which are // platform specific in test code bsc_event_timedwait(ev->e, 1); bws_dispatch_unlock(); debug_printf( "wait_node_ev() <<< ret = true, ev = %p ev->ev = %d " "wait_ev = %d, node = %p\n", ev, ev->ev, wait_ev, node); return true; } else { debug_printf( "wait_node_ev() got event %d but wait for %d\n", ev->ev, wait_ev); bws_dispatch_unlock(); debug_printf( "wait_node_ev() <<< ret = false, ev = %p ev->e %p ev->ev " "= %d wait_ev = %d, node = %p\n", ev, ev->e, ev->ev, wait_ev, node); return false; } } static void wait_specific_node_ev(node_ev_t *ev, BSC_NODE_EVENT wait_ev, BSC_NODE *node) { debug_printf( "wait_specific_node_ev() >>> ev = %p, wait_ev %d, node = %p\n", ev, wait_ev, node); call_maintenance_timer(1, 0); while (1) { while (!bsc_event_timedwait(ev->e, WAIT_EVENT_MS)) { call_maintenance_timer(0, WAIT_EVENT_MS); } bws_dispatch_lock(); if (ev->ev == wait_ev && ev->node == node) { debug_printf( "wait_specific_node_ev() got event %d and reset ev %p " "ev->e %p\n", ev->ev, ev, ev->e); ev->ev = -1; // reset event if it was signalled while we were blocked in call // bws_dispatch_lock(). (in that case ev->ev contains code of last // event.) that's tricky but that allows to avoid using mutexes // which are platform specific in test code bsc_event_timedwait(ev->e, 1); bws_dispatch_unlock(); break; } else { bws_dispatch_unlock(); debug_printf("wait_specific_node_ev() skip event %d\n", ev->ev); } } debug_printf( "wait_specific_node_ev() <<< ev = %p, wait_ev %d, node = %p\n", ev, wait_ev, node); } static void wait_for_connection_to_hub(node_ev_t *ev, BSC_NODE *node) { BACNET_SC_HUB_CONNECTION_STATUS *st1; BACNET_SC_HUB_CONNECTION_STATUS *st2; call_maintenance_timer(1, 0); while (1) { bsc_event_timedwait(ev->e, WAIT_EVENT_MS); call_maintenance_timer(0, WAIT_EVENT_MS); st1 = bsc_node_hub_connector_status(node, true); st2 = bsc_node_hub_connector_status(node, false); if (st1 && st1->State == BACNET_SC_CONNECTION_STATE_CONNECTED) { break; } if (st2 && st2->State == BACNET_SC_CONNECTION_STATE_CONNECTED) { break; } } } /* static void wait_for_direct_connection_established(node_ev_t *ev, BSC_NODE *node, BACNET_SC_VMAC_ADDRESS *dest, char **urls, size_t urls_cnt) { call_maintenance_timer(1, 0); while (1) { bsc_event_timedwait(ev->e, WAIT_EVENT_MS); call_maintenance_timer(0, WAIT_EVENT_MS); if (bsc_node_direct_connection_established( node, dest, urls, urls_cnt)) { break; } } } */ static void signal_node_ev( node_ev_t *e, BSC_NODE_EVENT ev, BSC_NODE *node, BACNET_SC_VMAC_ADDRESS *dest, uint8_t *pdu, size_t pdu_len) { debug_printf( "signal_node_ev() >>> e = %p, ev %d, node = %p\n", e, ev, node); e->ev = ev; e->node = node; zassert_equal(true, pdu_len <= MAX_BVLC_LEN, NULL); if (pdu) { memcpy(e->pdu, pdu, pdu_len); e->pdu_len = pdu_len; } if (dest) { debug_printf("dest = %s\n", bsc_vmac_to_string(dest)); memcpy(&e->dest.address[0], &dest->address[0], sizeof(dest->address)); debug_printf("e->dest = %s\n", bsc_vmac_to_string(&e->dest)); } bsc_event_signal(e->e); debug_printf( "signal_node_ev() <<< e = %p. ev %d, node = %p\n", e, ev, node); } static void node_event( BSC_NODE *node, BSC_NODE_EVENT ev, BACNET_SC_VMAC_ADDRESS *dest, uint8_t *pdu, size_t pdu_len) { bws_dispatch_lock(); debug_printf( "node_event() ev = %p, ev->ev = %d ev->e = %p node = %p\n", &node_ev, ev, node_ev.e, node); signal_node_ev(&node_ev, ev, node, dest, pdu, pdu_len); bws_dispatch_unlock(); } static void node_event2( BSC_NODE *node, BSC_NODE_EVENT ev, BACNET_SC_VMAC_ADDRESS *dest, uint8_t *pdu, size_t pdu_len) { bws_dispatch_lock(); debug_printf( "node_event2() ev = %p, ev->ev = %d ev->e = %p node = %p\n", &node_ev2, ev, node_ev2.e, node); signal_node_ev(&node_ev2, ev, node, dest, pdu, pdu_len); bws_dispatch_unlock(); } static void node_event3( BSC_NODE *node, BSC_NODE_EVENT ev, BACNET_SC_VMAC_ADDRESS *dest, uint8_t *pdu, size_t pdu_len) { bws_dispatch_lock(); debug_printf( "node_event3() ev = %p, ev->ev = %d ev->e = %p node = %p\n", &node_ev3, ev, node_ev3.e, node); signal_node_ev(&node_ev3, ev, node, dest, pdu, pdu_len); bws_dispatch_unlock(); } #if defined(CONFIG_ZTEST_NEW_API) ZTEST(node_test_1, test_node_start_stop) #else static void test_node_start_stop(void) #endif { BACNET_SC_UUID node_uuid = { 0 }; BACNET_SC_VMAC_ADDRESS node_vmac = { 0 }; BSC_NODE_CONF conf = { 0 }; BSC_SC_RET ret; BSC_NODE *node = NULL; BSC_NODE *node1 = NULL; BSC_NODE *node2 = NULL; BSC_NODE *node3 = NULL; char primary_url[128] = { 0 }; char secondary_url[128] = { 0 }; snprintf( primary_url, sizeof(primary_url), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); snprintf( secondary_url, sizeof(secondary_url), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); conf.ca_cert_chain = ca_cert; conf.ca_cert_chain_size = sizeof(ca_cert); conf.cert_chain = node_cert; conf.cert_chain_size = sizeof(node_cert); conf.key = node_key; conf.key_size = sizeof(node_key); conf.local_uuid = &node_uuid; conf.local_vmac = node_vmac; conf.max_local_bvlc_len = MAX_BVLC_LEN; conf.max_local_npdu_len = MAX_NDPU_LEN; conf.connect_timeout_s = BACNET_TIMEOUT; conf.heartbeat_timeout_s = BACNET_TIMEOUT; conf.disconnect_timeout_s = BACNET_TIMEOUT; conf.reconnnect_timeout_s = BACNET_TIMEOUT; conf.address_resolution_timeout_s = BACNET_TIMEOUT; conf.address_resolution_freshness_timeout_s = BACNET_TIMEOUT; conf.primaryURL = primary_url; conf.failoverURL = secondary_url; conf.hub_server_port = BACNET_NODE_LOCAL_HUB_PORT; conf.direct_server_port = BACNET_NODE_LOCAL_DIRECT_PORT; conf.hub_iface = BSC_NETWORK_IFACE; conf.direct_iface = BSC_NETWORK_IFACE; conf.direct_connect_accept_enable = true; conf.direct_connect_initiate_enable = true; conf.hub_function_enabled = true; conf.direct_connection_accept_uris = NULL; conf.direct_connection_accept_uris_len = 0; conf.event_func = node_event; init_node_ev(&node_ev); ret = bsc_node_init(NULL, NULL); zassert_equal(ret, BSC_SC_BAD_PARAM, NULL); conf.ca_cert_chain = NULL; ret = bsc_node_init(&conf, &node); zassert_equal(ret == BSC_SC_BAD_PARAM, true, 0); conf.ca_cert_chain = ca_cert; ret = bsc_node_init(&conf, &node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_init(&conf, &node1); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_init(&conf, &node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_init(&conf, &node3); zassert_equal(ret == BSC_SC_NO_RESOURCES, true, 0); ret = bsc_node_deinit(node1); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_deinit(node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_send(node, (uint8_t *)&node_uuid, sizeof(node_uuid)); zassert_equal(ret == BSC_SC_INVALID_OPERATION, true, 0); ret = bsc_node_start(NULL); zassert_equal(ret == BSC_SC_BAD_PARAM, true, 0); ret = bsc_node_send(NULL, NULL, 0); zassert_equal(ret == BSC_SC_BAD_PARAM, true, 0); ret = bsc_node_hub_connector_send(NULL, NULL, 0); zassert_equal(ret == BSC_SC_BAD_PARAM, true, 0); ret = bsc_node_hub_connector_send( node, (uint8_t *)&node_uuid, sizeof(node_uuid)); zassert_equal(ret == BSC_SC_INVALID_OPERATION, true, 0); ret = bsc_node_start(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_deinit(node); zassert_equal(ret == BSC_SC_INVALID_OPERATION, true, 0); ret = bsc_node_start(node); zassert_equal(ret == BSC_SC_INVALID_OPERATION, true, 0); zassert_equal( wait_node_ev(&node_ev, BSC_NODE_EVENT_STARTED, node), true, 0); bsc_node_stop(node); zassert_equal( wait_node_ev(&node_ev, BSC_NODE_EVENT_STOPPED, node), true, 0); ret = bsc_node_deinit(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); deinit_node_ev(&node_ev); } #if defined(CONFIG_ZTEST_NEW_API) ZTEST(node_test_2, test_node_duplicated_vmac) #else static void test_node_duplicated_vmac(void) #endif { BACNET_SC_UUID node_uuid; BACNET_SC_VMAC_ADDRESS node_vmac; BACNET_SC_UUID node_uuid2; BACNET_SC_VMAC_ADDRESS node_vmac2; BSC_NODE_CONF conf; BSC_NODE_CONF conf2; BSC_SC_RET ret; BSC_NODE *node; BSC_NODE *node2; char node_primary_url[128]; char node_secondary_url[128]; char node_primary_url2[128]; char node_secondary_url2[128]; char url1[256]; char url2[256]; char *urls[2] = { url1, url2 }; memset(&node_uuid, 0x1, sizeof(node_uuid)); memset(&node_vmac, 0x2, sizeof(node_vmac)); memset(&node_uuid2, 0x3, sizeof(node_uuid2)); memset(&node_vmac2, 0x2, sizeof(node_vmac2)); snprintf( node_primary_url, sizeof(node_primary_url), "wss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_HUB_PORT2); snprintf( node_secondary_url, sizeof(node_secondary_url), "wss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_HUB_PORT2); snprintf( node_primary_url2, sizeof(node_primary_url2), BACNET_LOCALHOST, BACNET_NODE_LOCAL_HUB_PORT); snprintf( node_secondary_url2, sizeof(node_secondary_url2), "wss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_HUB_PORT); conf.ca_cert_chain = ca_cert; conf.ca_cert_chain_size = sizeof(ca_cert); conf.cert_chain = node_cert; conf.cert_chain_size = sizeof(node_cert); conf.key = node_key; conf.key_size = sizeof(node_key); conf.local_uuid = &node_uuid; conf.local_vmac = node_vmac; conf.max_local_bvlc_len = MAX_BVLC_LEN; conf.max_local_npdu_len = MAX_NDPU_LEN; conf.connect_timeout_s = BACNET_TIMEOUT; conf.heartbeat_timeout_s = BACNET_TIMEOUT; conf.disconnect_timeout_s = BACNET_TIMEOUT; conf.reconnnect_timeout_s = BACNET_TIMEOUT; conf.address_resolution_timeout_s = BACNET_TIMEOUT; conf.address_resolution_freshness_timeout_s = BACNET_TIMEOUT; conf.primaryURL = node_primary_url; conf.failoverURL = node_secondary_url; conf.hub_server_port = BACNET_NODE_LOCAL_HUB_PORT; conf.direct_server_port = BACNET_NODE_LOCAL_DIRECT_PORT; conf.hub_iface = BSC_NETWORK_IFACE; conf.direct_iface = BSC_NETWORK_IFACE; conf.direct_connect_accept_enable = true; conf.direct_connect_initiate_enable = true; conf.hub_function_enabled = true; conf.direct_connection_accept_uris = NULL; conf.direct_connection_accept_uris_len = 0; conf.event_func = node_event; conf2.ca_cert_chain = ca_cert; conf2.ca_cert_chain_size = sizeof(ca_cert); conf2.cert_chain = node_cert; conf2.cert_chain_size = sizeof(node_cert); conf2.key = node_key; conf2.key_size = sizeof(node_key); conf2.local_uuid = &node_uuid2; conf2.local_vmac = node_vmac2; conf2.max_local_bvlc_len = MAX_BVLC_LEN; conf2.max_local_npdu_len = MAX_NDPU_LEN; conf2.connect_timeout_s = BACNET_TIMEOUT; conf2.heartbeat_timeout_s = BACNET_TIMEOUT; conf2.disconnect_timeout_s = BACNET_TIMEOUT; conf2.reconnnect_timeout_s = BACNET_TIMEOUT; conf2.address_resolution_timeout_s = BACNET_TIMEOUT; conf2.address_resolution_freshness_timeout_s = BACNET_TIMEOUT; conf2.primaryURL = node_primary_url2; conf2.failoverURL = node_secondary_url2; conf2.hub_server_port = BACNET_NODE_LOCAL_HUB_PORT2; conf2.direct_server_port = BACNET_NODE_LOCAL_DIRECT_PORT2; conf2.hub_iface = BSC_NETWORK_IFACE; conf2.direct_iface = BSC_NETWORK_IFACE; conf2.direct_connect_accept_enable = true; conf2.direct_connect_initiate_enable = true; conf2.hub_function_enabled = true; conf2.direct_connection_accept_uris = NULL; conf2.direct_connection_accept_uris_len = 0; conf2.event_func = node_event2; init_node_ev(&node_ev); init_node_ev(&node_ev2); ret = bsc_node_init(&conf, &node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_init(&conf2, &node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_start(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev, BSC_NODE_EVENT_STARTED, node), true, 0); ret = bsc_node_start(node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); wait_specific_node_ev(&node_ev, BSC_NODE_EVENT_RESTARTED, node); wait_specific_node_ev(&node_ev2, BSC_NODE_EVENT_RESTARTED, node2); bsc_node_stop(node); wait_specific_node_ev(&node_ev, BSC_NODE_EVENT_STOPPED, node); bsc_node_stop(node2); wait_specific_node_ev(&node_ev2, BSC_NODE_EVENT_STOPPED, node2); ret = bsc_node_deinit(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_deinit(node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); // node switch duplicated vmac memset(&node_uuid, 0x1, sizeof(node_uuid)); memset(&node_vmac, 0x2, sizeof(node_vmac)); memset(&node_uuid2, 0x3, sizeof(node_uuid2)); memset(&node_vmac2, 0x2, sizeof(node_vmac2)); snprintf( url1, sizeof(url1), "wss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_DIRECT_PORT); snprintf( url2, sizeof(url2), "wss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_DIRECT_PORT); conf.primaryURL = NULL; conf.failoverURL = NULL; conf2.primaryURL = NULL; conf2.failoverURL = NULL; ret = bsc_node_init(&conf, &node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_init(&conf2, &node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_start(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev, BSC_NODE_EVENT_STARTED, node), true, 0); ret = bsc_node_start(node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_STARTED, node2), true, 0); ret = bsc_node_connect_direct(node2, NULL, urls, 2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); wait_specific_node_ev(&node_ev, BSC_NODE_EVENT_RESTARTED, node); wait_specific_node_ev(&node_ev2, BSC_NODE_EVENT_RESTARTED, node2); ret = bsc_node_connect_direct(node2, NULL, urls, 2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_DIRECT_CONNECTED, node2), true, 0); bsc_node_stop(node); wait_specific_node_ev(&node_ev, BSC_NODE_EVENT_STOPPED, node); bsc_node_stop(node2); wait_specific_node_ev(&node_ev2, BSC_NODE_EVENT_STOPPED, node2); ret = bsc_node_deinit(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_deinit(node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); deinit_node_ev(&node_ev); deinit_node_ev(&node_ev2); } #if defined(CONFIG_ZTEST_NEW_API) ZTEST(node_test_3, test_node_send) #else static void test_node_send(void) #endif { BACNET_SC_UUID node_uuid; BACNET_SC_VMAC_ADDRESS node_vmac; BACNET_SC_UUID node_uuid2; BACNET_SC_VMAC_ADDRESS node_vmac2; BACNET_SC_UUID node_uuid3; BACNET_SC_VMAC_ADDRESS node_vmac3; BSC_NODE_CONF conf; BSC_NODE_CONF conf2; BSC_NODE_CONF conf3; BSC_SC_RET ret; BSC_NODE *node; BSC_NODE *node2; BSC_NODE *node3; char node_primary_url[128]; char node_secondary_url[128]; char node_primary_url2[128]; char node_secondary_url2[128]; uint8_t buf[256]; size_t len; uint8_t npdu[128]; BVLC_SC_DECODED_MESSAGE message; uint16_t error_code; uint16_t error_class; const char *err_desc; uint8_t optbuf[128]; size_t optlen; memset(npdu, 0x33, sizeof(npdu)); memset(&node_uuid, 0x1, sizeof(node_uuid)); memset(&node_vmac, 0x2, sizeof(node_vmac)); memset(&node_uuid2, 0x3, sizeof(node_uuid2)); memset(&node_vmac2, 0x4, sizeof(node_vmac2)); memset(&node_uuid3, 0x5, sizeof(node_uuid3)); memset(&node_vmac3, 0x6, sizeof(node_vmac3)); snprintf( node_primary_url, sizeof(node_primary_url), "wss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_HUB_PORT); snprintf( node_secondary_url, sizeof(node_secondary_url), "wss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_HUB_PORT2); snprintf( node_primary_url2, sizeof(node_primary_url2), "wss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_HUB_PORT); snprintf( node_secondary_url2, sizeof(node_secondary_url2), "wss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_HUB_PORT2); conf.ca_cert_chain = ca_cert; conf.ca_cert_chain_size = sizeof(ca_cert); conf.cert_chain = node_cert; conf.cert_chain_size = sizeof(node_cert); conf.key = node_key; conf.key_size = sizeof(node_key); conf.local_uuid = &node_uuid; conf.local_vmac = node_vmac; conf.max_local_bvlc_len = MAX_BVLC_LEN; conf.max_local_npdu_len = MAX_NDPU_LEN; conf.connect_timeout_s = BACNET_TIMEOUT; conf.heartbeat_timeout_s = BACNET_TIMEOUT; conf.disconnect_timeout_s = BACNET_TIMEOUT; conf.reconnnect_timeout_s = BACNET_TIMEOUT; conf.address_resolution_timeout_s = BACNET_TIMEOUT; conf.address_resolution_freshness_timeout_s = BACNET_TIMEOUT; conf.primaryURL = node_primary_url; conf.failoverURL = node_secondary_url; conf.hub_server_port = BACNET_NODE_LOCAL_HUB_PORT; conf.direct_server_port = BACNET_NODE_LOCAL_DIRECT_PORT; conf.hub_iface = BSC_NETWORK_IFACE; conf.direct_iface = BSC_NETWORK_IFACE; conf.direct_connect_accept_enable = true; conf.direct_connect_initiate_enable = true; conf.hub_function_enabled = true; conf.direct_connection_accept_uris = NULL; conf.direct_connection_accept_uris_len = 0; conf.event_func = node_event; conf2.ca_cert_chain = ca_cert; conf2.ca_cert_chain_size = sizeof(ca_cert); conf2.cert_chain = node_cert; conf2.cert_chain_size = sizeof(node_cert); conf2.key = NODE_KEY; conf2.key_size = sizeof(NODE_KEY); conf2.local_uuid = &node_uuid2; conf2.local_vmac = node_vmac2; conf2.max_local_bvlc_len = MAX_BVLC_LEN; conf2.max_local_npdu_len = MAX_NDPU_LEN; conf2.connect_timeout_s = BACNET_TIMEOUT; conf2.heartbeat_timeout_s = BACNET_TIMEOUT; conf2.disconnect_timeout_s = BACNET_TIMEOUT; conf2.reconnnect_timeout_s = BACNET_TIMEOUT; conf2.address_resolution_timeout_s = BACNET_TIMEOUT; conf2.address_resolution_freshness_timeout_s = BACNET_TIMEOUT; conf2.primaryURL = node_primary_url2; conf2.failoverURL = node_secondary_url2; conf2.hub_server_port = BACNET_NODE_LOCAL_HUB_PORT2; conf2.direct_server_port = BACNET_NODE_LOCAL_DIRECT_PORT2; conf2.hub_iface = BSC_NETWORK_IFACE; conf2.direct_iface = BSC_NETWORK_IFACE; conf2.direct_connect_accept_enable = false; conf2.direct_connect_initiate_enable = false; conf2.hub_function_enabled = false; conf2.direct_connection_accept_uris = NULL; conf2.direct_connection_accept_uris_len = 0; conf2.event_func = node_event2; conf3 = conf2; conf3.event_func = node_event3; conf3.local_uuid = &node_uuid3; conf3.local_vmac = node_vmac3; init_node_ev(&node_ev); init_node_ev(&node_ev2); init_node_ev(&node_ev3); ret = bsc_node_init(&conf, &node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_init(&conf2, &node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_init(&conf3, &node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_start(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev, BSC_NODE_EVENT_STARTED, node), true, 0); ret = bsc_node_start(node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_STARTED, node2), true, 0); ret = bsc_node_start(node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_STARTED, node3), true, 0); // wait until hub connectors connects wait_for_connection_to_hub(&node_ev3, node3); wait_for_connection_to_hub(&node_ev2, node2); // send encapsulated npdu packet len = bvlc_sc_encode_encapsulated_npdu( buf, sizeof(buf), 111, NULL, &node_vmac2, npdu, sizeof(npdu)); zassert_equal(len > 0, true, NULL); ret = bsc_node_send(node3, buf, len); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_RECEIVED_NPDU, node2), true, 0); ret = bvlc_sc_decode_message( node_ev2.pdu, node_ev2.pdu_len, &message, &error_code, &error_class, &err_desc); zassert_equal(ret, true, NULL); zassert_equal( sizeof(npdu), message.payload.encapsulated_npdu.npdu_len, NULL); ret = memcmp(npdu, message.payload.encapsulated_npdu.npdu, sizeof(npdu)); zassert_equal(ret, 0, NULL); // send encapsulated npdu packet with proprietary option with must // understand flag optlen = bvlc_sc_encode_proprietary_option( optbuf, sizeof(optbuf), true, 0x222, 12, NULL, 0); zassert_not_equal(optlen, 0, NULL); len = bvlc_sc_encode_encapsulated_npdu( buf, sizeof(buf), 111, NULL, &node_vmac2, npdu, sizeof(npdu)); zassert_equal(len > 0, true, NULL); len = bvlc_sc_add_option_to_destination_options( buf, sizeof(buf), buf, len, optbuf, optlen); zassert_equal(len > 0, true, NULL); ret = bsc_node_send(node3, buf, len); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_RECEIVED_RESULT, node3), true, 0); ret = bvlc_sc_decode_message( node_ev3.pdu, node_ev3.pdu_len, &message, &error_code, &error_class, &err_desc); zassert_equal(ret, true, NULL); zassert_equal(message.hdr.bvlc_function, BVLC_SC_RESULT, NULL); zassert_equal( message.payload.result.error_class, ERROR_CLASS_COMMUNICATION, NULL); zassert_equal( message.payload.result.error_code, ERROR_CODE_HEADER_NOT_UNDERSTOOD, NULL); optlen = bvlc_sc_encode_proprietary_option( optbuf, sizeof(optbuf), false, 0x222, 12, NULL, 0); zassert_not_equal(optlen, 0, NULL); len = bvlc_sc_encode_encapsulated_npdu( buf, sizeof(buf), 222, NULL, &node_vmac2, npdu, sizeof(npdu)); zassert_equal(len > 0, true, NULL); len = bvlc_sc_add_option_to_destination_options( buf, sizeof(buf), buf, len, optbuf, optlen); zassert_equal(len > 0, true, NULL); ret = bsc_node_send(node3, buf, len); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_RECEIVED_NPDU, node2), true, 0); ret = bvlc_sc_decode_message( node_ev2.pdu, node_ev2.pdu_len, &message, &error_code, &error_class, &err_desc); zassert_equal(ret, true, NULL); zassert_equal( sizeof(npdu), message.payload.encapsulated_npdu.npdu_len, NULL); ret = memcmp(npdu, message.payload.encapsulated_npdu.npdu, sizeof(npdu)); zassert_equal(ret, 0, NULL); // send advertisiment solicitation len = bvlc_sc_encode_advertisiment_solicitation( buf, sizeof(buf), 234, NULL, &node_vmac2); zassert_equal(len > 0, true, NULL); ret = bsc_node_send(node3, buf, len); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_RECEIVED_ADVERTISIMENT, node3), true, 0); ret = bvlc_sc_decode_message( node_ev3.pdu, node_ev3.pdu_len, &message, &error_code, &error_class, &err_desc); zassert_equal(ret, true, NULL); zassert_equal(message.hdr.bvlc_function, BVLC_SC_ADVERTISIMENT, NULL); zassert_equal( message.payload.advertisiment.support, BVLC_SC_DIRECT_CONNECTION_ACCEPT_UNSUPPORTED, NULL); bsc_node_stop(node); zassert_equal( wait_node_ev(&node_ev, BSC_NODE_EVENT_STOPPED, node), true, 0); bsc_node_stop(node2); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_STOPPED, node2), true, 0); bsc_node_stop(node3); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_STOPPED, node3), true, 0); ret = bsc_node_deinit(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_deinit(node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_deinit(node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); deinit_node_ev(&node_ev); deinit_node_ev(&node_ev2); deinit_node_ev(&node_ev3); } #if defined(CONFIG_ZTEST_NEW_API) ZTEST(node_test_4, test_node_local_hub_function) #else static void test_node_local_hub_function(void) #endif { BACNET_SC_UUID node_uuid; BACNET_SC_VMAC_ADDRESS node_vmac; BACNET_SC_UUID node_uuid2; BACNET_SC_VMAC_ADDRESS node_vmac2; BACNET_SC_UUID node_uuid3; BACNET_SC_VMAC_ADDRESS node_vmac3; BSC_NODE_CONF conf; BSC_NODE_CONF conf2; BSC_NODE_CONF conf3; BSC_SC_RET ret; BSC_NODE *node; BSC_NODE *node2; BSC_NODE *node3; char node_primary_url[128]; char node_secondary_url[128]; uint8_t buf[256]; size_t len; uint8_t npdu[128]; BVLC_SC_DECODED_MESSAGE message; uint16_t error_code; uint16_t error_class; const char *err_desc; BACNET_SC_VMAC_ADDRESS broadcast; memset(&node_uuid, 0x1, sizeof(node_uuid)); memset(&node_vmac, 0x2, sizeof(node_vmac)); memset(&node_uuid2, 0x3, sizeof(node_uuid2)); memset(&node_vmac2, 0x4, sizeof(node_vmac2)); memset(&node_uuid3, 0x5, sizeof(node_uuid3)); memset(&node_vmac3, 0x6, sizeof(node_vmac3)); memset(&broadcast.address[0], 0xff, sizeof(broadcast.address)); snprintf( node_primary_url, sizeof(node_primary_url), "wss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_HUB_PORT); snprintf( node_secondary_url, sizeof(node_secondary_url), "wss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_HUB_PORT); conf.ca_cert_chain = ca_cert; conf.ca_cert_chain_size = sizeof(ca_cert); conf.cert_chain = node_cert; conf.cert_chain_size = sizeof(node_cert); conf.key = node_key; conf.key_size = sizeof(node_key); conf.local_uuid = &node_uuid; conf.local_vmac = node_vmac; conf.max_local_bvlc_len = MAX_BVLC_LEN; conf.max_local_npdu_len = MAX_NDPU_LEN; conf.connect_timeout_s = BACNET_TIMEOUT; conf.heartbeat_timeout_s = BACNET_TIMEOUT; conf.disconnect_timeout_s = BACNET_TIMEOUT; conf.reconnnect_timeout_s = BACNET_TIMEOUT; conf.address_resolution_timeout_s = BACNET_TIMEOUT; conf.address_resolution_freshness_timeout_s = BACNET_TIMEOUT; conf.primaryURL = node_primary_url; conf.failoverURL = node_secondary_url; conf.hub_server_port = BACNET_NODE_LOCAL_HUB_PORT; conf.direct_server_port = BACNET_NODE_LOCAL_DIRECT_PORT; conf.hub_iface = BSC_NETWORK_IFACE; conf.direct_iface = BSC_NETWORK_IFACE; conf.direct_connect_accept_enable = false; conf.direct_connect_initiate_enable = false; conf.hub_function_enabled = true; conf.direct_connection_accept_uris = NULL; conf.direct_connection_accept_uris_len = 0; conf.event_func = node_event; conf2.ca_cert_chain = ca_cert; conf2.ca_cert_chain_size = sizeof(ca_cert); conf2.cert_chain = node_cert; conf2.cert_chain_size = sizeof(node_cert); conf2.key = NODE_KEY; conf2.key_size = sizeof(NODE_KEY); conf2.local_uuid = &node_uuid2; conf2.local_vmac = node_vmac2; conf2.max_local_bvlc_len = MAX_BVLC_LEN; conf2.max_local_npdu_len = MAX_NDPU_LEN; conf2.connect_timeout_s = BACNET_TIMEOUT; conf2.heartbeat_timeout_s = BACNET_TIMEOUT; conf2.disconnect_timeout_s = BACNET_TIMEOUT; conf2.reconnnect_timeout_s = BACNET_TIMEOUT; conf2.address_resolution_timeout_s = BACNET_TIMEOUT; conf2.address_resolution_freshness_timeout_s = BACNET_TIMEOUT; conf2.primaryURL = node_primary_url; conf2.failoverURL = node_secondary_url; conf2.hub_server_port = BACNET_NODE_LOCAL_HUB_PORT; conf2.direct_server_port = BACNET_NODE_LOCAL_DIRECT_PORT; conf2.hub_iface = BSC_NETWORK_IFACE; conf2.direct_iface = BSC_NETWORK_IFACE; conf2.direct_connect_accept_enable = false; conf2.direct_connect_initiate_enable = false; conf2.hub_function_enabled = false; conf2.direct_connection_accept_uris = NULL; conf2.direct_connection_accept_uris_len = 0; conf2.event_func = node_event2; conf3 = conf2; conf3.event_func = node_event3; conf3.local_uuid = &node_uuid3; conf3.local_vmac = node_vmac3; init_node_ev(&node_ev); init_node_ev(&node_ev2); init_node_ev(&node_ev3); ret = bsc_node_init(&conf, &node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_init(&conf2, &node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_init(&conf3, &node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_start(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev, BSC_NODE_EVENT_STARTED, node), true, 0); ret = bsc_node_start(node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_STARTED, node2), true, 0); ret = bsc_node_start(node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_STARTED, node3), true, 0); // wait until hub connectors connects wait_sec(BACNET_TIMEOUT); // now let's node3 sends broadcast and ensure that node2 and node1 // receives it. If node 1 is able to receive broadcast that means that // it's hub connector is connected to local hub function and works // in proper way memset(npdu, 0x55, sizeof(npdu)); len = bvlc_sc_encode_encapsulated_npdu( buf, sizeof(buf), 7777, NULL, &broadcast, npdu, sizeof(npdu)); zassert_equal(len > 0, true, NULL); ret = bsc_node_send(node3, buf, len); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_RECEIVED_NPDU, node2), true, 0); ret = bvlc_sc_decode_message( node_ev2.pdu, node_ev2.pdu_len, &message, &error_code, &error_class, &err_desc); zassert_equal(ret, true, NULL); zassert_equal( sizeof(npdu), message.payload.encapsulated_npdu.npdu_len, NULL); ret = memcmp(npdu, message.payload.encapsulated_npdu.npdu, sizeof(npdu)); zassert_equal(ret, 0, NULL); zassert_equal( wait_node_ev(&node_ev, BSC_NODE_EVENT_RECEIVED_NPDU, node), true, 0); ret = bvlc_sc_decode_message( node_ev.pdu, node_ev.pdu_len, &message, &error_code, &error_class, &err_desc); zassert_equal(ret, true, NULL); zassert_equal( sizeof(npdu), message.payload.encapsulated_npdu.npdu_len, NULL); ret = memcmp(npdu, message.payload.encapsulated_npdu.npdu, sizeof(npdu)); zassert_equal(ret, 0, NULL); bsc_node_stop(node); zassert_equal( wait_node_ev(&node_ev, BSC_NODE_EVENT_STOPPED, node), true, 0); bsc_node_stop(node2); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_STOPPED, node2), true, 0); bsc_node_stop(node3); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_STOPPED, node3), true, 0); ret = bsc_node_deinit(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_deinit(node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_deinit(node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); deinit_node_ev(&node_ev); deinit_node_ev(&node_ev2); deinit_node_ev(&node_ev3); } #if defined(CONFIG_ZTEST_NEW_API) ZTEST(node_test_5, test_node_direct_connection) #else static void test_node_direct_connection(void) #endif { BACNET_SC_UUID node_uuid; BACNET_SC_VMAC_ADDRESS node_vmac; BACNET_SC_UUID node_uuid2; BACNET_SC_VMAC_ADDRESS node_vmac2; BACNET_SC_UUID node_uuid3; BACNET_SC_VMAC_ADDRESS node_vmac3; BSC_NODE_CONF conf; BSC_NODE_CONF conf2; BSC_NODE_CONF conf3; BSC_SC_RET ret; BSC_NODE *node; BSC_NODE *node2; BSC_NODE *node3; char node_primary_url[128]; char node_secondary_url[128]; char node_primary_url2[128]; char node_secondary_url2[128]; char node_primary_url3[128]; char node_secondary_url3[128]; uint8_t buf[256]; size_t len; uint8_t npdu[128]; BVLC_SC_DECODED_MESSAGE message; uint16_t error_code; uint16_t error_class; const char *err_desc; char uris[256]; char url1[256]; char url2[256]; char *urls[2] = { url1, url2 }; BACNET_SC_VMAC_ADDRESS broadcast; uint8_t optbuf[128]; size_t optlen; // test configuration // node is a just a hub // node2 connected to node using hub connector is configured // to accept direct connections // node3 connected to node using hub connector and initiate // direct connection to node 2 and then sends data packet memset(npdu, 0x33, sizeof(npdu)); memset(&node_uuid, 0x1, sizeof(node_uuid)); memset(&node_vmac, 0x2, sizeof(node_vmac)); memset(&node_uuid2, 0x3, sizeof(node_uuid2)); memset(&node_vmac2, 0x4, sizeof(node_vmac2)); memset(&node_uuid3, 0x5, sizeof(node_uuid2)); memset(&node_vmac3, 0x6, sizeof(node_vmac2)); memset(&broadcast.address[0], 0xff, sizeof(broadcast.address)); snprintf( node_primary_url, sizeof(node_primary_url), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); snprintf( node_secondary_url, sizeof(node_secondary_url), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); snprintf( node_primary_url2, sizeof(node_primary_url2), "wss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_HUB_PORT); snprintf( node_secondary_url2, sizeof(node_secondary_url2), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); snprintf( node_primary_url3, sizeof(node_primary_url3), "wss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_HUB_PORT); snprintf( node_secondary_url3, sizeof(node_secondary_url3), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); conf.ca_cert_chain = ca_cert; conf.ca_cert_chain_size = sizeof(ca_cert); conf.cert_chain = node_cert; conf.cert_chain_size = sizeof(node_cert); conf.key = node_key; conf.key_size = sizeof(node_key); conf.local_uuid = &node_uuid; conf.local_vmac = node_vmac; conf.max_local_bvlc_len = MAX_BVLC_LEN; conf.max_local_npdu_len = MAX_NDPU_LEN; conf.connect_timeout_s = BACNET_TIMEOUT; conf.heartbeat_timeout_s = BACNET_INFINITE_TIMEOUT; conf.disconnect_timeout_s = BACNET_TIMEOUT; conf.reconnnect_timeout_s = BACNET_TIMEOUT; conf.address_resolution_timeout_s = BACNET_TIMEOUT; conf.address_resolution_freshness_timeout_s = BACNET_TIMEOUT; conf.primaryURL = node_primary_url; conf.failoverURL = node_secondary_url; conf.hub_server_port = BACNET_NODE_LOCAL_HUB_PORT; conf.direct_server_port = BACNET_NODE_LOCAL_DIRECT_PORT; conf.hub_iface = BSC_NETWORK_IFACE; conf.direct_iface = BSC_NETWORK_IFACE; conf.direct_connect_accept_enable = false; conf.direct_connect_initiate_enable = false; conf.hub_function_enabled = true; conf.direct_connection_accept_uris = NULL; conf.direct_connection_accept_uris_len = 0; conf.event_func = node_event; snprintf( uris, sizeof(uris), "wss://%s:%d wss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_DIRECT_PORT2, BACNET_LOCALHOST, BACNET_NODE_LOCAL_DIRECT_PORT2); conf2.ca_cert_chain = ca_cert; conf2.ca_cert_chain_size = sizeof(ca_cert); conf2.cert_chain = node_cert; conf2.cert_chain_size = sizeof(node_cert); conf2.key = node_key; conf2.key_size = sizeof(node_key); conf2.local_uuid = &node_uuid2; conf2.local_vmac = node_vmac2; conf2.max_local_bvlc_len = MAX_BVLC_LEN; conf2.max_local_npdu_len = MAX_NDPU_LEN; conf2.connect_timeout_s = BACNET_TIMEOUT; conf2.heartbeat_timeout_s = BACNET_INFINITE_TIMEOUT; conf2.disconnect_timeout_s = BACNET_TIMEOUT; conf2.reconnnect_timeout_s = BACNET_TIMEOUT; conf2.address_resolution_timeout_s = BACNET_TIMEOUT; conf2.address_resolution_freshness_timeout_s = BACNET_TIMEOUT; conf2.primaryURL = node_primary_url2; conf2.failoverURL = node_secondary_url2; conf2.hub_server_port = 0; conf2.direct_server_port = BACNET_NODE_LOCAL_DIRECT_PORT2; conf2.hub_iface = BSC_NETWORK_IFACE; conf2.direct_iface = BSC_NETWORK_IFACE; conf2.direct_connect_accept_enable = true; conf2.direct_connect_initiate_enable = true; conf2.hub_function_enabled = false; conf2.direct_connection_accept_uris = uris; conf2.direct_connection_accept_uris_len = strlen(uris); conf2.event_func = node_event2; conf3.ca_cert_chain = ca_cert; conf3.ca_cert_chain_size = sizeof(ca_cert); conf3.cert_chain = node_cert; conf3.cert_chain_size = sizeof(node_cert); conf3.key = NODE_KEY; conf3.key_size = sizeof(NODE_KEY); conf3.local_uuid = &node_uuid3; conf3.local_vmac = node_vmac3; conf3.max_local_bvlc_len = MAX_BVLC_LEN; conf3.max_local_npdu_len = MAX_NDPU_LEN; conf3.connect_timeout_s = BACNET_TIMEOUT; conf3.heartbeat_timeout_s = BACNET_INFINITE_TIMEOUT; conf3.disconnect_timeout_s = BACNET_TIMEOUT; conf3.reconnnect_timeout_s = BACNET_TIMEOUT; conf3.address_resolution_timeout_s = BACNET_TIMEOUT; conf3.address_resolution_freshness_timeout_s = BACNET_TIMEOUT; conf3.primaryURL = node_primary_url3; conf3.failoverURL = node_secondary_url3; conf3.hub_server_port = 0; conf3.direct_server_port = BACNET_NODE_LOCAL_DIRECT_PORT3; conf3.hub_iface = BSC_NETWORK_IFACE; conf3.direct_iface = BSC_NETWORK_IFACE; conf3.direct_connect_accept_enable = true; conf3.direct_connect_initiate_enable = true; conf3.hub_function_enabled = false; conf3.direct_connection_accept_uris = NULL; conf3.direct_connection_accept_uris_len = 0; conf3.event_func = node_event3; init_node_ev(&node_ev); init_node_ev(&node_ev2); init_node_ev(&node_ev3); ret = bsc_node_init(&conf, &node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_init(&conf2, &node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_init(&conf3, &node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_start(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev, BSC_NODE_EVENT_STARTED, node), true, 0); ret = bsc_node_start(node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_STARTED, node2), true, 0); ret = bsc_node_start(node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_STARTED, node3), true, 0); // wait while node3 and node2 connects to node wait_for_connection_to_hub(&node_ev3, node3); wait_for_connection_to_hub(&node_ev2, node2); ret = bsc_node_connect_direct(node3, &node_vmac2, NULL, 0); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); bsc_node_disconnect_direct(node3, &node_vmac2); wait_specific_node_ev(&node_ev3, BSC_NODE_EVENT_DIRECT_DISCONNECTED, node3); ret = memcmp( &node_vmac2.address[0], &node_ev3.dest.address[0], sizeof(node_ev3.dest.address)); zassert_equal(ret, 0, NULL); ret = bsc_node_connect_direct(node3, &node_vmac2, NULL, 0); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_DIRECT_CONNECTED, node3), true, 0); bsc_node_disconnect_direct(node3, &node_vmac2); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_DIRECT_DISCONNECTED, node3), true, 0); ret = memcmp( &node_vmac2.address[0], &node_ev3.dest.address[0], sizeof(node_ev3.dest.address)); zassert_equal(ret, 0, NULL); ret = bsc_node_connect_direct(node3, &node_vmac2, NULL, 0); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_DIRECT_CONNECTED, node3), true, 0); ret = memcmp( &node_vmac2.address[0], &node_ev3.dest.address[0], sizeof(node_ev3.dest.address)); zassert_equal(ret, 0, NULL); len = bvlc_sc_encode_encapsulated_npdu( buf, sizeof(buf), 111, NULL, &node_vmac2, npdu, sizeof(npdu)); zassert_equal(len > 0, true, NULL); ret = bsc_node_send(node3, buf, len); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_RECEIVED_NPDU, node2), true, 0); ret = bvlc_sc_decode_message( node_ev2.pdu, node_ev2.pdu_len, &message, &error_code, &error_class, &err_desc); zassert_equal(ret, true, NULL); zassert_equal( sizeof(npdu), message.payload.encapsulated_npdu.npdu_len, NULL); ret = memcmp(npdu, message.payload.encapsulated_npdu.npdu, sizeof(npdu)); zassert_equal(ret, 0, NULL); len = bvlc_sc_encode_encapsulated_npdu( buf, sizeof(buf), 5555, NULL, &broadcast, npdu, sizeof(npdu)); zassert_equal(len > 0, true, NULL); ret = bsc_node_send(node3, buf, len); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_RECEIVED_NPDU, node2), true, 0); ret = bvlc_sc_decode_message( node_ev2.pdu, node_ev2.pdu_len, &message, &error_code, &error_class, &err_desc); zassert_equal(ret, true, NULL); zassert_equal( sizeof(npdu), message.payload.encapsulated_npdu.npdu_len, NULL); ret = memcmp(npdu, message.payload.encapsulated_npdu.npdu, sizeof(npdu)); zassert_equal(ret, 0, NULL); bsc_node_stop(node2); wait_specific_node_ev(&node_ev2, BSC_NODE_EVENT_STOPPED, node2); wait_specific_node_ev(&node_ev3, BSC_NODE_EVENT_DIRECT_DISCONNECTED, node3); ret = memcmp( &node_vmac2.address[0], &node_ev3.dest.address[0], sizeof(node_ev3.dest.address)); zassert_equal(ret, 0, NULL); bsc_node_start(node2); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_STARTED, node2), true, 0); wait_for_connection_to_hub(&node_ev2, node2); ret = bsc_node_connect_direct(node3, &node_vmac2, NULL, 0); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); wait_specific_node_ev(&node_ev3, BSC_NODE_EVENT_DIRECT_CONNECTED, node3); len = bvlc_sc_encode_encapsulated_npdu( buf, sizeof(buf), 112, NULL, &node_vmac2, npdu, sizeof(npdu)); zassert_equal(len > 0, true, NULL); ret = bsc_node_send(node3, buf, len); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_RECEIVED_NPDU, node2), true, 0); ret = bvlc_sc_decode_message( node_ev2.pdu, node_ev2.pdu_len, &message, &error_code, &error_class, &err_desc); zassert_equal(ret, true, NULL); zassert_equal( sizeof(npdu), message.payload.encapsulated_npdu.npdu_len, NULL); ret = memcmp(npdu, message.payload.encapsulated_npdu.npdu, sizeof(npdu)); zassert_equal(ret, 0, NULL); bsc_node_stop(node); wait_specific_node_ev(&node_ev, BSC_NODE_EVENT_STOPPED, node); bsc_node_stop(node2); wait_specific_node_ev(&node_ev2, BSC_NODE_EVENT_STOPPED, node2); wait_specific_node_ev(&node_ev3, BSC_NODE_EVENT_DIRECT_DISCONNECTED, node3); bsc_node_stop(node3); ret = memcmp( &node_vmac2.address[0], &node_ev3.dest.address[0], sizeof(node_ev3.dest.address)); wait_specific_node_ev(&node_ev3, BSC_NODE_EVENT_STOPPED, node3); ret = bsc_node_start(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev, BSC_NODE_EVENT_STARTED, node), true, 0); ret = bsc_node_start(node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_STARTED, node2), true, 0); ret = bsc_node_start(node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_STARTED, node3), true, 0); // wait while node3 and node2 connects to node wait_for_connection_to_hub(&node_ev3, node3); wait_for_connection_to_hub(&node_ev2, node2); snprintf( url1, sizeof(url1), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); snprintf( url2, sizeof(url2), "wss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_DIRECT_PORT2); ret = bsc_node_connect_direct(node3, NULL, urls, 2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_DIRECT_CONNECTED, node3), true, 0); ret = memcmp( &node_vmac2.address[0], &node_ev3.dest.address[0], sizeof(node_ev3.dest.address)); zassert_equal(ret, 0, NULL); len = bvlc_sc_encode_encapsulated_npdu( buf, sizeof(buf), 111, NULL, &node_vmac2, npdu, sizeof(npdu)); zassert_equal(len > 0, true, NULL); ret = bsc_node_send(node3, buf, len); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_RECEIVED_NPDU, node2), true, 0); ret = bvlc_sc_decode_message( node_ev2.pdu, node_ev2.pdu_len, &message, &error_code, &error_class, &err_desc); zassert_equal(ret, true, NULL); zassert_equal( sizeof(npdu), message.payload.encapsulated_npdu.npdu_len, NULL); ret = memcmp(npdu, message.payload.encapsulated_npdu.npdu, sizeof(npdu)); zassert_equal(ret, 0, NULL); bsc_node_stop(node); zassert_equal( wait_node_ev(&node_ev, BSC_NODE_EVENT_STOPPED, node), true, 0); bsc_node_stop(node2); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_STOPPED, node2), true, 0); wait_specific_node_ev(&node_ev3, BSC_NODE_EVENT_DIRECT_DISCONNECTED, node3); ret = memcmp( &node_vmac2.address[0], &node_ev3.dest.address[0], sizeof(node_ev3.dest.address)); bsc_node_stop(node3); wait_specific_node_ev(&node_ev3, BSC_NODE_EVENT_STOPPED, node3); // direct disconnnect test ret = bsc_node_start(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev, BSC_NODE_EVENT_STARTED, node), true, 0); ret = bsc_node_start(node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_STARTED, node2), true, 0); ret = bsc_node_start(node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_STARTED, node3), true, 0); // wait while node3 and node2 connects to node wait_for_connection_to_hub(&node_ev3, node3); wait_for_connection_to_hub(&node_ev2, node2); ret = bsc_node_connect_direct(node3, &node_vmac2, NULL, 0); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_DIRECT_CONNECTED, node3), true, 0); ret = memcmp( &node_vmac2.address[0], &node_ev3.dest.address[0], sizeof(node_ev3.dest.address)); zassert_equal(ret, 0, NULL); bsc_node_disconnect_direct(node3, &node_vmac2); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_DIRECT_DISCONNECTED, node3), true, 0); ret = memcmp( &node_vmac2.address[0], &node_ev3.dest.address[0], sizeof(node_ev3.dest.address)); zassert_equal(ret, 0, NULL); ret = bsc_node_connect_direct(node3, &node_vmac2, NULL, 0); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); wait_specific_node_ev(&node_ev3, BSC_NODE_EVENT_DIRECT_CONNECTED, node3); ret = memcmp( &node_vmac2.address[0], &node_ev3.dest.address[0], sizeof(node_ev3.dest.address)); zassert_equal(ret, 0, NULL); len = bvlc_sc_encode_encapsulated_npdu( buf, sizeof(buf), 111, NULL, &node_vmac2, npdu, sizeof(npdu)); zassert_equal(len > 0, true, NULL); ret = bsc_node_send(node3, buf, len); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_RECEIVED_NPDU, node2), true, 0); ret = bvlc_sc_decode_message( node_ev2.pdu, node_ev2.pdu_len, &message, &error_code, &error_class, &err_desc); zassert_equal(ret, true, NULL); zassert_equal( sizeof(npdu), message.payload.encapsulated_npdu.npdu_len, NULL); ret = memcmp(npdu, message.payload.encapsulated_npdu.npdu, sizeof(npdu)); zassert_equal(ret, 0, NULL); len = bvlc_sc_encode_encapsulated_npdu( buf, sizeof(buf), 333, NULL, &node_vmac3, npdu, sizeof(npdu)); zassert_equal(len > 0, true, NULL); ret = bsc_node_send(node2, buf, len); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_RECEIVED_NPDU, node3), true, 0); ret = bvlc_sc_decode_message( node_ev3.pdu, node_ev3.pdu_len, &message, &error_code, &error_class, &err_desc); zassert_equal(ret, true, NULL); zassert_equal( sizeof(npdu), message.payload.encapsulated_npdu.npdu_len, NULL); ret = memcmp(npdu, message.payload.encapsulated_npdu.npdu, sizeof(npdu)); zassert_equal(ret, 0, NULL); optlen = bvlc_sc_encode_proprietary_option( optbuf, sizeof(optbuf), true, 0x222, 12, NULL, 0); zassert_not_equal(optlen, 0, NULL); len = bvlc_sc_encode_encapsulated_npdu( buf, sizeof(buf), 33352, NULL, &broadcast, npdu, sizeof(npdu)); zassert_equal(len > 0, true, NULL); len = bvlc_sc_add_option_to_destination_options( buf, sizeof(buf), buf, len, optbuf, optlen); zassert_equal(len > 0, true, NULL); ret = bsc_node_send(node2, buf, len); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); wait_sec(1); optlen = bvlc_sc_encode_proprietary_option( optbuf, sizeof(optbuf), false, 0x222, 12, NULL, 0); zassert_not_equal(optlen, 0, NULL); len = bvlc_sc_encode_encapsulated_npdu( buf, sizeof(buf), 3352, NULL, &broadcast, npdu, sizeof(npdu)); zassert_equal(len > 0, true, NULL); len = bvlc_sc_add_option_to_destination_options( buf, sizeof(buf), buf, len, optbuf, optlen); zassert_equal(len > 0, true, NULL); ret = bsc_node_send(node2, buf, len); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_RECEIVED_NPDU, node3), true, 0); ret = bvlc_sc_decode_message( node_ev3.pdu, node_ev3.pdu_len, &message, &error_code, &error_class, &err_desc); zassert_equal(ret, true, NULL); zassert_equal( sizeof(npdu), message.payload.encapsulated_npdu.npdu_len, NULL); ret = memcmp(npdu, message.payload.encapsulated_npdu.npdu, sizeof(npdu)); zassert_equal(ret, 0, NULL); bsc_node_stop(node); wait_specific_node_ev(&node_ev, BSC_NODE_EVENT_STOPPED, node); bsc_node_stop(node3); wait_specific_node_ev(&node_ev3, BSC_NODE_EVENT_STOPPED, node3); bsc_node_stop(node2); wait_specific_node_ev(&node_ev2, BSC_NODE_EVENT_STOPPED, node2); // bad case test (when one url in bsc_node_connect_direct() is incorrect) snprintf( url1, sizeof(url1), "w3sdfsdfsdfss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_DIRECT_PORT2); snprintf( url2, sizeof(url2), "wss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_DIRECT_PORT2); ret = bsc_node_start(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev, BSC_NODE_EVENT_STARTED, node), true, 0); ret = bsc_node_start(node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_STARTED, node2), true, 0); ret = bsc_node_start(node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_STARTED, node3), true, 0); // wait while node3 and node2 connects to node wait_for_connection_to_hub(&node_ev3, node3); wait_for_connection_to_hub(&node_ev2, node2); ret = bsc_node_connect_direct(node3, NULL, urls, 2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_DIRECT_CONNECTED, node3), true, 0); ret = memcmp( &node_vmac2.address[0], &node_ev3.dest.address[0], sizeof(node_ev3.dest.address)); zassert_equal(ret, 0, NULL); bsc_node_disconnect_direct(node3, &node_vmac2); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_DIRECT_DISCONNECTED, node3), true, 0); ret = memcmp( &node_vmac2.address[0], &node_ev3.dest.address[0], sizeof(node_ev3.dest.address)); zassert_equal(ret, 0, NULL); bsc_node_stop(node); wait_specific_node_ev(&node_ev, BSC_NODE_EVENT_STOPPED, node); bsc_node_stop(node2); wait_specific_node_ev(&node_ev2, BSC_NODE_EVENT_STOPPED, node2); bsc_node_stop(node3); wait_specific_node_ev(&node_ev3, BSC_NODE_EVENT_STOPPED, node3); ret = bsc_node_deinit(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_deinit(node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_deinit(node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); // bad URLs test snprintf( url1, sizeof(url1), "w3sdfsdfsdfss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_DIRECT_PORT2); snprintf( url2, sizeof(url2), "wssdfsdfsdfs://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_DIRECT_PORT2); ret = bsc_node_init(&conf, &node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_init(&conf2, &node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_init(&conf3, &node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_start(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev, BSC_NODE_EVENT_STARTED, node), true, 0); ret = bsc_node_start(node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_STARTED, node2), true, 0); ret = bsc_node_start(node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_STARTED, node3), true, 0); ret = bsc_node_connect_direct(node3, NULL, urls, 2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); wait_sec(3 * BACNET_TIMEOUT); bsc_node_stop(node); wait_specific_node_ev(&node_ev, BSC_NODE_EVENT_STOPPED, node); bsc_node_stop(node2); wait_specific_node_ev(&node_ev2, BSC_NODE_EVENT_STOPPED, node2); bsc_node_stop(node3); wait_specific_node_ev(&node_ev3, BSC_NODE_EVENT_STOPPED, node3); ret = bsc_node_deinit(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_deinit(node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_deinit(node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); snprintf( node_primary_url, sizeof(node_primary_url), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); snprintf( node_secondary_url, sizeof(node_secondary_url), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); snprintf( node_primary_url2, sizeof(node_primary_url2), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); snprintf( node_secondary_url2, sizeof(node_secondary_url2), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); snprintf( node_primary_url3, sizeof(node_primary_url3), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); snprintf( node_secondary_url3, sizeof(node_secondary_url3), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); ret = bsc_node_init(&conf, &node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_init(&conf2, &node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_init(&conf3, &node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_start(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev, BSC_NODE_EVENT_STARTED, node), true, 0); ret = bsc_node_start(node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_STARTED, node2), true, 0); ret = bsc_node_start(node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_STARTED, node3), true, 0); ret = bsc_node_connect_direct(node3, &node_vmac2, NULL, 0); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); wait_sec(3 * BACNET_TIMEOUT); bsc_node_stop(node); wait_specific_node_ev(&node_ev, BSC_NODE_EVENT_STOPPED, node); bsc_node_stop(node2); wait_specific_node_ev(&node_ev2, BSC_NODE_EVENT_STOPPED, node2); bsc_node_stop(node3); wait_specific_node_ev(&node_ev3, BSC_NODE_EVENT_STOPPED, node3); ret = bsc_node_deinit(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_deinit(node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_deinit(node3); // freshness timeout test conf.address_resolution_freshness_timeout_s = 1; conf2.address_resolution_freshness_timeout_s = 1; conf3.address_resolution_freshness_timeout_s = 1; snprintf( node_primary_url, sizeof(node_primary_url), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); snprintf( node_secondary_url, sizeof(node_secondary_url), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); snprintf( node_primary_url2, sizeof(node_primary_url2), "wss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_HUB_PORT); snprintf( node_secondary_url2, sizeof(node_secondary_url2), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); snprintf( node_primary_url3, sizeof(node_primary_url3), "wss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_HUB_PORT); snprintf( node_secondary_url3, sizeof(node_secondary_url3), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); ret = bsc_node_init(&conf, &node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_init(&conf2, &node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_init(&conf3, &node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_start(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev, BSC_NODE_EVENT_STARTED, node), true, 0); ret = bsc_node_start(node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_STARTED, node2), true, 0); ret = bsc_node_start(node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_STARTED, node3), true, 0); // wait while node3 and node2 connects to node wait_for_connection_to_hub(&node_ev3, node3); wait_for_connection_to_hub(&node_ev2, node2); ret = bsc_node_connect_direct(node3, &node_vmac2, NULL, 0); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_DIRECT_CONNECTED, node3), true, 0); ret = memcmp( &node_vmac2.address[0], &node_ev3.dest.address[0], sizeof(node_ev3.dest.address)); zassert_equal(ret, 0, NULL); bsc_node_disconnect_direct(node3, &node_vmac2); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_DIRECT_DISCONNECTED, node3), true, 0); ret = memcmp( &node_vmac2.address[0], &node_ev3.dest.address[0], sizeof(node_ev3.dest.address)); zassert_equal(ret, 0, NULL); wait_sec(2); ret = bsc_node_connect_direct(node3, &node_vmac2, NULL, 0); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_DIRECT_CONNECTED, node3), true, 0); ret = memcmp( &node_vmac2.address[0], &node_ev3.dest.address[0], sizeof(node_ev3.dest.address)); zassert_equal(ret, 0, NULL); bsc_node_disconnect_direct(node3, &node_vmac2); wait_specific_node_ev(&node_ev3, BSC_NODE_EVENT_DIRECT_DISCONNECTED, node3); ret = memcmp( &node_vmac2.address[0], &node_ev3.dest.address[0], sizeof(node_ev3.dest.address)); zassert_equal(ret, 0, NULL); bsc_node_stop(node); wait_specific_node_ev(&node_ev, BSC_NODE_EVENT_STOPPED, node); bsc_node_stop(node2); wait_specific_node_ev(&node_ev2, BSC_NODE_EVENT_STOPPED, node2); bsc_node_stop(node3); wait_specific_node_ev(&node_ev3, BSC_NODE_EVENT_STOPPED, node3); ret = bsc_node_deinit(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_deinit(node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_deinit(node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); deinit_node_ev(&node_ev); deinit_node_ev(&node_ev2); deinit_node_ev(&node_ev3); } #if defined(CONFIG_ZTEST_NEW_API) ZTEST(node_test_6, test_node_direct_connection_unsupported) #else static void test_node_direct_connection_unsupported(void) #endif { BACNET_SC_UUID node_uuid; BACNET_SC_VMAC_ADDRESS node_vmac; BACNET_SC_UUID node_uuid2; BACNET_SC_VMAC_ADDRESS node_vmac2; BACNET_SC_UUID node_uuid3; BACNET_SC_VMAC_ADDRESS node_vmac3; BSC_NODE_CONF conf; BSC_NODE_CONF conf2; BSC_NODE_CONF conf3; BSC_SC_RET ret; BSC_NODE *node; BSC_NODE *node2; BSC_NODE *node3; char node_primary_url[128]; char node_secondary_url[128]; char node_primary_url2[128]; char node_secondary_url2[128]; char node_primary_url3[128]; char node_secondary_url3[128]; uint8_t npdu[128]; BVLC_SC_DECODED_MESSAGE message; uint16_t error_code; uint16_t error_class; const char *err_desc; char uris[256]; // test configuration // node is a just a hub // node2 has node switch disabed and connected to node using hub connector // node3 has node switch disabed connected to node using hub connector and // initiate // direct connection to node 2 memset(npdu, 0x33, sizeof(npdu)); memset(&node_uuid, 0x1, sizeof(node_uuid)); memset(&node_vmac, 0x2, sizeof(node_vmac)); memset(&node_uuid2, 0x3, sizeof(node_uuid2)); memset(&node_vmac2, 0x4, sizeof(node_vmac2)); memset(&node_uuid3, 0x5, sizeof(node_uuid2)); memset(&node_vmac3, 0x6, sizeof(node_vmac2)); snprintf( node_primary_url, sizeof(node_primary_url), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); snprintf( node_secondary_url, sizeof(node_secondary_url), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); snprintf( node_primary_url2, sizeof(node_primary_url2), "wss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_HUB_PORT); snprintf( node_secondary_url2, sizeof(node_secondary_url2), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); snprintf( node_primary_url3, sizeof(node_primary_url3), "wss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_HUB_PORT); snprintf( node_secondary_url3, sizeof(node_secondary_url3), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); conf.ca_cert_chain = ca_cert; conf.ca_cert_chain_size = sizeof(ca_cert); conf.cert_chain = node_cert; conf.cert_chain_size = sizeof(node_cert); conf.key = node_key; conf.key_size = sizeof(node_key); conf.local_uuid = &node_uuid; conf.local_vmac = node_vmac; conf.max_local_bvlc_len = MAX_BVLC_LEN; conf.max_local_npdu_len = MAX_NDPU_LEN; conf.connect_timeout_s = BACNET_TIMEOUT; conf.heartbeat_timeout_s = BACNET_INFINITE_TIMEOUT; conf.disconnect_timeout_s = BACNET_TIMEOUT; conf.reconnnect_timeout_s = BACNET_TIMEOUT; conf.address_resolution_timeout_s = BACNET_TIMEOUT; conf.address_resolution_freshness_timeout_s = BACNET_TIMEOUT; conf.primaryURL = node_primary_url; conf.failoverURL = node_secondary_url; conf.hub_server_port = BACNET_NODE_LOCAL_HUB_PORT; conf.direct_server_port = BACNET_NODE_LOCAL_DIRECT_PORT; conf.hub_iface = BSC_NETWORK_IFACE; conf.direct_iface = BSC_NETWORK_IFACE; conf.direct_connect_accept_enable = false; conf.direct_connect_initiate_enable = false; conf.hub_function_enabled = true; conf.direct_connection_accept_uris = NULL; conf.direct_connection_accept_uris_len = 0; conf.event_func = node_event; snprintf( uris, sizeof(uris), "wss://%s:%d wss://%s:%d", BACNET_LOCALHOST, BACNET_NODE_LOCAL_DIRECT_PORT2, BACNET_LOCALHOST, BACNET_NODE_LOCAL_DIRECT_PORT2); conf2.ca_cert_chain = ca_cert; conf2.ca_cert_chain_size = sizeof(ca_cert); conf2.cert_chain = node_cert; conf2.cert_chain_size = sizeof(node_cert); conf2.key = NODE_KEY; conf2.key_size = sizeof(NODE_KEY); conf2.local_uuid = &node_uuid2; conf2.local_vmac = node_vmac2; conf2.max_local_bvlc_len = MAX_BVLC_LEN; conf2.max_local_npdu_len = MAX_NDPU_LEN; conf2.connect_timeout_s = BACNET_TIMEOUT; conf2.heartbeat_timeout_s = BACNET_INFINITE_TIMEOUT; conf2.disconnect_timeout_s = BACNET_TIMEOUT; conf2.reconnnect_timeout_s = BACNET_TIMEOUT; conf2.address_resolution_timeout_s = BACNET_TIMEOUT; conf2.address_resolution_freshness_timeout_s = BACNET_TIMEOUT; conf2.primaryURL = node_primary_url2; conf2.failoverURL = node_secondary_url2; conf2.hub_server_port = 0; conf2.direct_server_port = BACNET_NODE_LOCAL_DIRECT_PORT2; conf2.hub_iface = BSC_NETWORK_IFACE; conf2.direct_iface = BSC_NETWORK_IFACE; conf2.direct_connect_accept_enable = false; conf2.direct_connect_initiate_enable = false; conf2.hub_function_enabled = false; conf2.direct_connection_accept_uris = uris; conf2.direct_connection_accept_uris_len = strlen(uris); conf2.event_func = node_event2; conf3.ca_cert_chain = ca_cert; conf3.ca_cert_chain_size = sizeof(ca_cert); conf3.cert_chain = node_cert; conf3.cert_chain_size = sizeof(node_cert); conf3.key = NODE_KEY; conf3.key_size = sizeof(NODE_KEY); conf3.local_uuid = &node_uuid3; conf3.local_vmac = node_vmac3; conf3.max_local_bvlc_len = MAX_BVLC_LEN; conf3.max_local_npdu_len = MAX_NDPU_LEN; conf3.connect_timeout_s = BACNET_TIMEOUT; conf3.heartbeat_timeout_s = BACNET_INFINITE_TIMEOUT; conf3.disconnect_timeout_s = BACNET_TIMEOUT; conf3.reconnnect_timeout_s = BACNET_TIMEOUT; conf3.address_resolution_timeout_s = BACNET_TIMEOUT; conf3.address_resolution_freshness_timeout_s = BACNET_TIMEOUT; conf3.primaryURL = node_primary_url3; conf3.failoverURL = node_secondary_url3; conf3.hub_server_port = 0; conf3.direct_server_port = BACNET_NODE_LOCAL_DIRECT_PORT3; conf3.hub_iface = BSC_NETWORK_IFACE; conf3.direct_iface = BSC_NETWORK_IFACE; conf3.direct_connect_accept_enable = true; conf3.direct_connect_initiate_enable = true; conf3.hub_function_enabled = false; conf3.direct_connection_accept_uris = NULL; conf3.direct_connection_accept_uris_len = 0; conf3.event_func = node_event3; init_node_ev(&node_ev); init_node_ev(&node_ev2); init_node_ev(&node_ev3); ret = bsc_node_init(&conf, &node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_init(&conf2, &node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_init(&conf3, &node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_start(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev, BSC_NODE_EVENT_STARTED, node), true, 0); ret = bsc_node_start(node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_STARTED, node2), true, 0); ret = bsc_node_start(node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_STARTED, node3), true, 0); // wait while node3 and node2 connects to node wait_for_connection_to_hub(&node_ev3, node3); wait_for_connection_to_hub(&node_ev2, node2); ret = bsc_node_connect_direct(node3, &node_vmac2, NULL, 0); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_RECEIVED_RESULT, node3), true, 0); ret = bvlc_sc_decode_message( node_ev3.pdu, node_ev3.pdu_len, &message, &error_code, &error_class, &err_desc); zassert_equal(ret, true, NULL); zassert_equal(message.hdr.bvlc_function, BVLC_SC_RESULT, NULL); zassert_equal( message.payload.result.error_class, ERROR_CLASS_COMMUNICATION, NULL); zassert_equal( message.payload.result.error_code, ERROR_CODE_OPTIONAL_FUNCTIONALITY_NOT_SUPPORTED, NULL); bsc_node_stop(node); zassert_equal( wait_node_ev(&node_ev, BSC_NODE_EVENT_STOPPED, node), true, 0); bsc_node_stop(node2); zassert_equal( wait_node_ev(&node_ev2, BSC_NODE_EVENT_STOPPED, node2), true, 0); bsc_node_stop(node3); zassert_equal( wait_node_ev(&node_ev3, BSC_NODE_EVENT_STOPPED, node3), true, 0); ret = bsc_node_deinit(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_deinit(node2); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_deinit(node3); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); deinit_node_ev(&node_ev); deinit_node_ev(&node_ev2); deinit_node_ev(&node_ev3); } static void node_switch_event( BSC_NODE_SWITCH_EVENT ev, BSC_NODE_SWITCH_HANDLE h, void *user_arg, BACNET_SC_VMAC_ADDRESS *dest, uint8_t *pdu, size_t pdu_len, BVLC_SC_DECODED_MESSAGE *decoded_pdu) { (void)ev; (void)h; (void)user_arg; (void)dest; (void)pdu; (void)pdu_len; (void)decoded_pdu; } #if defined(CONFIG_ZTEST_NEW_API) ZTEST(node_test_7, test_node_bad_cases) #else static void test_node_bad_cases(void) #endif { BSC_SC_RET ret; BSC_NODE *node = NULL; BSC_NODE_CONF conf = { 0 }; BACNET_SC_UUID node_uuid = { 0 }; BACNET_SC_VMAC_ADDRESS node_vmac = { 0 }; char node_primary_url[128] = { 0 }; char node_secondary_url[128] = { 0 }; char big_url[2 * BSC_WSURL_MAX_LEN] = { 0 }; BSC_ADDRESS_RESOLUTION *r = NULL; char *url[1] = { node_primary_url }; char t[2 * BSC_CONF_NODE_MAX_URI_SIZE_IN_ADDRESS_RESOLUTION_ACK] = { 0 }; char *long_url[1] = { t }; BSC_NODE_SWITCH_HANDLE sh[4] = { 0 }; BSC_SC_RET res[4] = { 0 }; int i = 0; memset(&node_uuid, 0x1, sizeof(node_uuid)); memset(&node_vmac, 0x2, sizeof(node_vmac)); memset(big_url, 0x22, sizeof(big_url) - 1); memset(t, 0x22, sizeof(t) - 1); snprintf( node_primary_url, sizeof(node_primary_url), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); snprintf( node_secondary_url, sizeof(node_secondary_url), "wss://%s:%d", BACNET_LOCALHOST, BACNET_CLOSED_PORT); conf.ca_cert_chain = ca_cert; conf.ca_cert_chain_size = sizeof(ca_cert); conf.cert_chain = node_cert; conf.cert_chain_size = sizeof(node_cert); conf.key = node_key; conf.key_size = sizeof(node_key); conf.local_uuid = &node_uuid; conf.local_vmac = node_vmac; conf.max_local_bvlc_len = MAX_BVLC_LEN; conf.max_local_npdu_len = MAX_NDPU_LEN; conf.connect_timeout_s = BACNET_TIMEOUT; conf.heartbeat_timeout_s = BACNET_INFINITE_TIMEOUT; conf.disconnect_timeout_s = BACNET_TIMEOUT; conf.reconnnect_timeout_s = BACNET_TIMEOUT; conf.address_resolution_timeout_s = BACNET_TIMEOUT; conf.address_resolution_freshness_timeout_s = BACNET_TIMEOUT; conf.primaryURL = big_url; conf.failoverURL = node_secondary_url; conf.hub_server_port = BACNET_NODE_LOCAL_HUB_PORT; conf.direct_server_port = BACNET_NODE_LOCAL_DIRECT_PORT; conf.hub_iface = BSC_NETWORK_IFACE; conf.direct_iface = BSC_NETWORK_IFACE; conf.direct_connect_accept_enable = true; conf.direct_connect_initiate_enable = true; conf.hub_function_enabled = true; conf.direct_connection_accept_uris = NULL; conf.direct_connection_accept_uris_len = 0; conf.event_func = node_event; init_node_ev(&node_ev); ret = bsc_node_init(&conf, &node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_start(node); zassert_equal(ret == BSC_SC_BAD_PARAM, true, 0); r = bsc_node_get_address_resolution(NULL, &node_vmac); zassert_equal(r == NULL, true, 0); r = bsc_node_get_address_resolution(NULL, NULL); zassert_equal(r == NULL, true, 0); r = bsc_node_get_address_resolution(node, NULL); zassert_equal(r == NULL, true, 0); conf.cert_chain_size = 20; ret = bsc_node_start(node); zassert_equal(ret == BSC_SC_BAD_PARAM, true, 0); conf.hub_function_enabled = false; ret = bsc_node_start(node); zassert_equal(ret == BSC_SC_BAD_PARAM, true, 0); conf.hub_function_enabled = false; ret = bsc_node_switch_start( NULL, 0, NULL, 0, NULL, 0, 0, NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, false, false, NULL, NULL); zassert_equal(ret == BSC_SC_BAD_PARAM, true, 0); bsc_node_deinit(node); ret = bsc_node_switch_start( NULL, 0, NULL, 0, NULL, 0, 0, NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, false, false, NULL, NULL); zassert_equal(ret == BSC_SC_BAD_PARAM, true, 0); ret = bsc_node_switch_start( ca_cert, sizeof(ca_cert), node_cert, sizeof(node_cert), node_key, sizeof(node_key), BACNET_NODE_LOCAL_DIRECT_PORT, NULL, &node_uuid, &node_vmac, MAX_BVLC_LEN, MAX_NDPU_LEN, BACNET_TIMEOUT, BACNET_TIMEOUT, BACNET_TIMEOUT, BACNET_TIMEOUT, BACNET_TIMEOUT, false, false, node_switch_event, NULL, &sh[0]); zassert_equal(ret == BSC_SC_BAD_PARAM, true, 0); for (i = 0; i < sizeof(sh) / sizeof(sh[0]); i++) { res[i] = bsc_node_switch_start( ca_cert, sizeof(ca_cert), node_cert, sizeof(node_cert), node_key, sizeof(node_key), BACNET_NODE_LOCAL_DIRECT_PORT + i, NULL, &node_uuid, &node_vmac, MAX_BVLC_LEN, MAX_NDPU_LEN, BACNET_TIMEOUT, BACNET_TIMEOUT, BACNET_TIMEOUT, BACNET_TIMEOUT, BACNET_TIMEOUT, false, true, node_switch_event, NULL, &sh[i]); } zassert_equal(res[0] == BSC_SC_SUCCESS, true, 0); zassert_equal(res[1] == BSC_SC_SUCCESS, true, 0); zassert_equal(res[2] == BSC_SC_SUCCESS, true, 0); zassert_equal(res[3] == BSC_SC_NO_RESOURCES, true, 0); ret = bsc_node_switch_started(sh[0]); zassert_equal(ret == true, true, 0); bsc_node_switch_stop(sh[0]); bsc_node_switch_stop(sh[1]); bsc_node_switch_stop(sh[2]); ret = bsc_node_switch_started(sh[0]); zassert_equal(ret == false, true, 0); ret = bsc_node_switch_stopped(sh[0]); zassert_equal(ret == true, true, 0); ret = bsc_node_switch_start( NULL, sizeof(ca_cert), node_cert, sizeof(node_cert), node_key, sizeof(node_key), BACNET_NODE_LOCAL_DIRECT_PORT, NULL, &node_uuid, &node_vmac, MAX_BVLC_LEN, MAX_NDPU_LEN, BACNET_TIMEOUT, BACNET_TIMEOUT, BACNET_TIMEOUT, BACNET_TIMEOUT, BACNET_TIMEOUT, true, false, node_switch_event, NULL, &sh[0]); zassert_equal(ret == BSC_SC_BAD_PARAM, true, 0); ret = bsc_node_switch_start( ca_cert, sizeof(ca_cert), node_cert, sizeof(node_cert), node_key, sizeof(node_key), BACNET_NODE_LOCAL_DIRECT_PORT + 1, NULL, &node_uuid, &node_vmac, MAX_BVLC_LEN, MAX_NDPU_LEN, BACNET_TIMEOUT, BACNET_TIMEOUT, BACNET_TIMEOUT, BACNET_TIMEOUT, BACNET_TIMEOUT, true, false, node_switch_event, NULL, &sh[0]); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); bsc_node_switch_stop(sh[0]); ret = bsc_node_switch_started(sh[0]); zassert_equal(ret == false, true, 0); conf.ca_cert_chain = ca_cert; conf.ca_cert_chain_size = sizeof(ca_cert); conf.cert_chain = node_cert; conf.cert_chain_size = sizeof(node_cert); conf.key = node_key; conf.key_size = sizeof(node_key); conf.local_uuid = &node_uuid; conf.local_vmac = node_vmac; conf.max_local_bvlc_len = MAX_BVLC_LEN; conf.max_local_npdu_len = MAX_NDPU_LEN; conf.connect_timeout_s = BACNET_TIMEOUT; conf.heartbeat_timeout_s = BACNET_INFINITE_TIMEOUT; conf.disconnect_timeout_s = BACNET_TIMEOUT; conf.reconnnect_timeout_s = BACNET_TIMEOUT; conf.address_resolution_timeout_s = BACNET_TIMEOUT; conf.address_resolution_freshness_timeout_s = BACNET_TIMEOUT; conf.primaryURL = node_primary_url; conf.failoverURL = node_secondary_url; conf.hub_server_port = BACNET_NODE_LOCAL_HUB_PORT; conf.direct_server_port = BACNET_NODE_LOCAL_DIRECT_PORT; conf.hub_iface = BSC_NETWORK_IFACE; conf.direct_iface = BSC_NETWORK_IFACE; conf.direct_connect_accept_enable = true; conf.direct_connect_initiate_enable = true; conf.hub_function_enabled = true; conf.direct_connection_accept_uris = NULL; conf.direct_connection_accept_uris_len = 0; conf.event_func = node_event; ret = bsc_node_init(&conf, &node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); ret = bsc_node_start(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); zassert_equal( wait_node_ev(&node_ev, BSC_NODE_EVENT_STARTED, node), true, 0); ret = bsc_node_connect_direct(node, NULL, NULL, 0); zassert_equal(ret == BSC_SC_BAD_PARAM, true, 0); ret = bsc_node_connect_direct(node, &node_vmac, url, 1); zassert_equal(ret == BSC_SC_BAD_PARAM, true, 0); ret = bsc_node_connect_direct(node, &node_vmac, long_url, 1); zassert_equal(ret == BSC_SC_BAD_PARAM, true, 0); bsc_node_stop(node); zassert_equal( wait_node_ev(&node_ev, BSC_NODE_EVENT_STOPPED, node), true, 0); ret = bsc_node_deinit(node); zassert_equal(ret == BSC_SC_SUCCESS, true, 0); deinit_node_ev(&node_ev); } #if defined(CONFIG_ZTEST_NEW_API) static void *suite_setup(void) { setbuf(stdout, NULL); return NULL; } ZTEST_SUITE(node_test_1, NULL, suite_setup, NULL, NULL, NULL); ZTEST_SUITE(node_test_2, NULL, suite_setup, NULL, NULL, NULL); ZTEST_SUITE(node_test_3, NULL, suite_setup, NULL, NULL, NULL); ZTEST_SUITE(node_test_4, NULL, suite_setup, NULL, NULL, NULL); ZTEST_SUITE(node_test_5, NULL, suite_setup, NULL, NULL, NULL); ZTEST_SUITE(node_test_6, NULL, suite_setup, NULL, NULL, NULL); ZTEST_SUITE(node_test_7, NULL, suite_setup, NULL, NULL, NULL); #else void test_main(void) { // setbuf(stdout, NULL); // Tests must not be run in parallel threads! // Thats why tests functions are in different suites. ztest_test_suite(node_test_1, ztest_unit_test(test_node_start_stop)); ztest_test_suite(node_test_2, ztest_unit_test(test_node_duplicated_vmac)); ztest_test_suite(node_test_3, ztest_unit_test(test_node_send)); ztest_test_suite( node_test_4, ztest_unit_test(test_node_local_hub_function)); ztest_test_suite(node_test_5, ztest_unit_test(test_node_direct_connection)); ztest_test_suite( node_test_6, ztest_unit_test(test_node_direct_connection_unsupported)); ztest_test_suite(node_test_7, ztest_unit_test(test_node_bad_cases)); ztest_run_test_suite(node_test_1); ztest_run_test_suite(node_test_2); ztest_run_test_suite(node_test_3); ztest_run_test_suite(node_test_4); ztest_run_test_suite(node_test_5); ztest_run_test_suite(node_test_6); ztest_run_test_suite(node_test_7); } #endif