From: Ɓukasz Rymanowski Date: Fri, 8 May 2020 13:23:49 +0000 (+0200) Subject: tools/btgatt-client: Add option to set BT_SECURITY_FIPS X-Git-Tag: submit/tizen/20210606.232858~137 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e7acf4aa0609046d60379a67645e204cd759f364;p=platform%2Fupstream%2Fbluez.git tools/btgatt-client: Add option to set BT_SECURITY_FIPS Needed for GAP/SEC/SEM/BI-10-C. Signed-off-by: Anuj Jain Signed-off-by: Ayush Garg --- diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c index f08ca3aa..e6b159cb 100755 --- a/tools/btgatt-client.c +++ b/tools/btgatt-client.c @@ -1506,8 +1506,8 @@ static void usage(void) "\t-d, --dest \t\tSpecify the destination address\n" "\t-t, --type [random|public] \tSpecify the LE address type\n" "\t-m, --mtu \t\tThe ATT MTU to use\n" - "\t-s, --security-level \tSet security level (low|" - "medium|high)\n" + "\t-s, --security-level \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"); } @@ -1551,6 +1551,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;