mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-30 09:13:31 +00:00
nimble/test: Fix expected error for key size lower than minimum
For key size lower than minimum, an "Encryption Key Size" error shall be returned, not "Invalid Parameters". X-Original-Commit: c3f9aa1968a483183de60ad9a8bf43545fa0c36a
This commit is contained in:
@@ -202,7 +202,7 @@ TEST_CASE(ble_sm_test_case_peer_fail_inval)
|
||||
.resp_key_dist = 0x07,
|
||||
} }),
|
||||
((struct ble_sm_pair_fail[1]) { {
|
||||
.reason = BLE_SM_ERR_INVAL,
|
||||
.reason = BLE_SM_ERR_ENC_KEY_SZ,
|
||||
} })
|
||||
);
|
||||
|
||||
@@ -457,7 +457,7 @@ TEST_CASE(ble_sm_test_case_us_fail_inval)
|
||||
.resp_key_dist = 0x07,
|
||||
},
|
||||
.pair_fail = (struct ble_sm_pair_fail) {
|
||||
.reason = BLE_SM_ERR_INVAL,
|
||||
.reason = BLE_SM_ERR_ENC_KEY_SZ,
|
||||
},
|
||||
};
|
||||
ble_sm_test_util_us_fail_inval(¶ms);
|
||||
|
||||
Reference in New Issue
Block a user