sm.c (f82b8f4bf298eb90da2419f58d7aeb355e687200) | sm.c (dc542de1f1ef56ab897f4ddabe21858dc41b0e13) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 4330 unchanged lines hidden (view full) --- 4339 sm_pdu_received_in_wrong_state(sm_conn); 4340 break;; 4341 } 4342 4343 // received random value 4344 reverse_128(&packet[1], setup->sm_peer_random); 4345 sm_conn->sm_engine_state = SM_PH2_C1_GET_ENC_C; 4346 break; | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 4330 unchanged lines hidden (view full) --- 4339 sm_pdu_received_in_wrong_state(sm_conn); 4340 break;; 4341 } 4342 4343 // received random value 4344 reverse_128(&packet[1], setup->sm_peer_random); 4345 sm_conn->sm_engine_state = SM_PH2_C1_GET_ENC_C; 4346 break; |
4347 4348 case SM_PH4_W4_CONNECTION_ENCRYPTED: 4349 // ignore Security Request, see SM_INITIATOR_PH1_W4_PAIRING_RESPONSE above 4350 if (sm_pdu_code != SM_CODE_SECURITY_REQUEST){ 4351 sm_pdu_received_in_wrong_state(sm_conn); 4352 } 4353 break; |
|
4347#endif 4348 4349#ifdef ENABLE_LE_PERIPHERAL 4350 // Responder 4351 case SM_RESPONDER_IDLE: 4352 case SM_RESPONDER_SEND_SECURITY_REQUEST: 4353 case SM_RESPONDER_PH1_W4_PAIRING_REQUEST: 4354 if (sm_pdu_code != SM_CODE_PAIRING_REQUEST){ --- 1003 unchanged lines hidden --- | 4354#endif 4355 4356#ifdef ENABLE_LE_PERIPHERAL 4357 // Responder 4358 case SM_RESPONDER_IDLE: 4359 case SM_RESPONDER_SEND_SECURITY_REQUEST: 4360 case SM_RESPONDER_PH1_W4_PAIRING_REQUEST: 4361 if (sm_pdu_code != SM_CODE_PAIRING_REQUEST){ --- 1003 unchanged lines hidden --- |