BLE: Comment security requirement elevation for signed writes.

pull/6932/head
Vincent Coubard 2018-05-15 12:17:59 +01:00
parent 2c7ed993ec
commit ee720f30bb
1 changed files with 2 additions and 0 deletions

View File

@ -1414,6 +1414,8 @@ public:
_valueAttribute.allowWrite(isWritable(_properties)); _valueAttribute.allowWrite(isWritable(_properties));
_valueAttribute.allowRead(isReadable(_properties)); _valueAttribute.allowRead(isReadable(_properties));
// signed writes requires at least an unauthenticated CSRK or an
// unauthenticated ltk if the link is encrypted.
if (_properties & BLE_GATT_CHAR_PROPERTIES_AUTHENTICATED_SIGNED_WRITES) { if (_properties & BLE_GATT_CHAR_PROPERTIES_AUTHENTICATED_SIGNED_WRITES) {
_valueAttribute.setWriteSecurityRequirement( _valueAttribute.setWriteSecurityRequirement(
SecurityRequirement_t::UNAUTHENTICATED SecurityRequirement_t::UNAUTHENTICATED