summaryrefslogtreecommitdiff
path: root/tools/btgatt-client.c
diff options
context:
space:
mode:
authorƁukasz Rymanowski <lukasz.rymanowski@codecoup.pl>2020-05-08 15:23:49 +0200
committerSzymon Janc <szymon.janc@codecoup.pl>2020-05-13 13:02:33 +0200
commitf52def1535c5b5619e9749660187a96f531c0357 (patch)
tree05fc26c0309f2b85be4d1c8f3ec51c99a56443ba /tools/btgatt-client.c
parentee49fb1d13617e7d38fbf8f979206b905aa25345 (diff)
downloadbluez-f52def1535c5b5619e9749660187a96f531c0357.tar.gz
tools/btgatt-client: Add option to set BT_SECURITY_FIPS
Needed for GAP/SEC/SEM/BI-10-C.
Diffstat (limited to 'tools/btgatt-client.c')
-rw-r--r--tools/btgatt-client.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c
index 82a9e3fe0..bc762dba1 100644
--- a/tools/btgatt-client.c
+++ b/tools/btgatt-client.c
@@ -1492,8 +1492,8 @@ static void usage(void)
"\t-d, --dest <addr>\t\tSpecify the destination address\n"
"\t-t, --type [random|public] \tSpecify the LE address type\n"
"\t-m, --mtu <mtu> \t\tThe ATT MTU to use\n"
- "\t-s, --security-level <sec> \tSet security level (low|"
- "medium|high)\n"
+ "\t-s, --security-level <sec> \tSet security level (low|medium|"
+ "high|fips)\n"
"\t-v, --verbose\t\t\tEnable extra logging\n"
"\t-h, --help\t\t\tDisplay help\n");
}
@@ -1537,6 +1537,8 @@ int main(int argc, char *argv[])
sec = BT_SECURITY_MEDIUM;
else if (strcmp(optarg, "high") == 0)
sec = BT_SECURITY_HIGH;
+ else if (strcmp(optarg, "fips") == 0)
+ sec = BT_SECURITY_FIPS;
else {
fprintf(stderr, "Invalid security level\n");
return EXIT_FAILURE;