sm.c (f76e733a84a7041cbc110e15b9b7f8177432aa07) | sm.c (e2a5eb6349242fe8c0617013ed0e1adeacc70d8d) |
---|---|
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 --- 4502 unchanged lines hidden (view full) --- 4511 break;; 4512 } 4513 4514 // received random value 4515 reverse_128(&packet[1], setup->sm_peer_random); 4516 sm_conn->sm_engine_state = SM_PH2_C1_GET_ENC_C; 4517 break; 4518 | 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 --- 4502 unchanged lines hidden (view full) --- 4511 break;; 4512 } 4513 4514 // received random value 4515 reverse_128(&packet[1], setup->sm_peer_random); 4516 sm_conn->sm_engine_state = SM_PH2_C1_GET_ENC_C; 4517 break; 4518 |
4519 case SM_INITIATOR_PH4_HAS_LTK: |
|
4519 case SM_PH4_W4_CONNECTION_ENCRYPTED: 4520 // ignore Security Request, see SM_INITIATOR_PH1_W4_PAIRING_RESPONSE above 4521 if (sm_pdu_code != SM_CODE_SECURITY_REQUEST){ 4522 sm_pdu_received_in_wrong_state(sm_conn); 4523 } 4524 break; 4525#endif 4526 --- 1072 unchanged lines hidden --- | 4520 case SM_PH4_W4_CONNECTION_ENCRYPTED: 4521 // ignore Security Request, see SM_INITIATOR_PH1_W4_PAIRING_RESPONSE above 4522 if (sm_pdu_code != SM_CODE_SECURITY_REQUEST){ 4523 sm_pdu_received_in_wrong_state(sm_conn); 4524 } 4525 break; 4526#endif 4527 --- 1072 unchanged lines hidden --- |