aboutsummaryrefslogtreecommitdiffstats
path: root/trial
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-10-25 12:02:26 +0200
committerSven Gothel <[email protected]>2023-10-25 12:02:26 +0200
commitcb387988f3e01e16f58325ba843d539e4425c021 (patch)
tree448601984a88b10f3fae23415116137f6bfa2b87 /trial
parent2765a530e1a0bf77ec286c907ad613c0a4e1ca55 (diff)
GATT Server Auth: Prepare dbt_peripheral00 (C++ and java), add 'SMPIOCapability adapter_sec_io_cap' commandline param to enable IO for auth
Currently I limit my tests for ENC + AUTH to: - BTSecurityLevel: ENC_AUTH (3) and ENC_AUTH_FIPS(4) - SMPIOCapability.DISPLAY_ONLY (0) to have a PASSKEY being display by the user application. Current unit tests cover the ENC_ONLY(2) with IO NONE (0xff) only and shall be enhanced for these enc+auth cases as well.
Diffstat (limited to 'trial')
-rw-r--r--trial/direct_bt/dbt_server01.hpp2
-rw-r--r--trial/java/trial/org/direct_bt/DBTClientServer1x.java2
-rw-r--r--trial/java/trial/org/direct_bt/DBTServer01.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/trial/direct_bt/dbt_server01.hpp b/trial/direct_bt/dbt_server01.hpp
index ddd0f905..31027cd6 100644
--- a/trial/direct_bt/dbt_server01.hpp
+++ b/trial/direct_bt/dbt_server01.hpp
@@ -107,7 +107,7 @@ class DBTServer01 : public DBTServerTest {
std::make_shared<DBGattChar>( std::make_unique<const jau::uuid16_t>(GattCharacteristicType::MODEL_NUMBER_STRING) /* value_type_ */,
BTGattChar::PropertyBitVal::Read,
jau::darray<DBGattDescRef>() /* intentionally empty */,
- make_poctets("2.4.0-pre") /* value */ ),
+ make_poctets("3.2.0-pre") /* value */ ),
std::make_shared<DBGattChar>( std::make_unique<const jau::uuid16_t>(GattCharacteristicType::SERIAL_NUMBER_STRING) /* value_type_ */,
BTGattChar::PropertyBitVal::Read,
jau::darray<DBGattDescRef>() /* intentionally empty */,
diff --git a/trial/java/trial/org/direct_bt/DBTClientServer1x.java b/trial/java/trial/org/direct_bt/DBTClientServer1x.java
index c7845f39..9b6caac7 100644
--- a/trial/java/trial/org/direct_bt/DBTClientServer1x.java
+++ b/trial/java/trial/org/direct_bt/DBTClientServer1x.java
@@ -263,7 +263,7 @@ public abstract class DBTClientServer1x extends BaseDBTClientServer {
// Validating Security Mode
//
final SMPKeyBin clientKeys = SMPKeyBin.read(DBTConstants.CLIENT_KEY_PATH, lastCompletedDevice, true /* verbose */);
- Assert.assertTrue(clientKeys.isValid());
+ Assert.assertTrue(clientKeys.toString(), clientKeys.isValid());
final BTSecurityLevel clientKeysSecLevel = clientKeys.getSecLevel();
Assert.assertEquals(secLevelClient, clientKeysSecLevel);
{
diff --git a/trial/java/trial/org/direct_bt/DBTServer01.java b/trial/java/trial/org/direct_bt/DBTServer01.java
index c9c28a48..7e308175 100644
--- a/trial/java/trial/org/direct_bt/DBTServer01.java
+++ b/trial/java/trial/org/direct_bt/DBTServer01.java
@@ -211,7 +211,7 @@ public class DBTServer01 implements DBTServerTest {
new DBGattChar( DBGattChar.UUID16.MODEL_NUMBER_STRING /* value_type_ */,
new GattCharPropertySet(GattCharPropertySet.Type.Read),
new ArrayList<DBGattDesc>(/* intentionally w/o Desc */ ),
- make_gvalue("2.4.0-pre") /* value */ ),
+ make_gvalue("3.2.0-pre") /* value */ ),
new DBGattChar( DBGattChar.UUID16.SERIAL_NUMBER_STRING /* value_type_ */,
new GattCharPropertySet(GattCharPropertySet.Type.Read),
new ArrayList<DBGattDesc>(/* intentionally w/o Desc */ ),