Linux-Bluetooth Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH BlueZ] tools/btgatt-client: Add option to set BT_SECURITY_FIPS
@ 2020-05-08 13:23 Łukasz Rymanowski
  2020-05-13 11:03 ` Szymon Janc
  0 siblings, 1 reply; 2+ messages in thread
From: Łukasz Rymanowski @ 2020-05-08 13:23 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Łukasz Rymanowski

Need for GAP/SEC/SEM/BI-10-C
---
 tools/btgatt-client.c | 6 ++++--
 1 file 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;
-- 
2.20.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH BlueZ] tools/btgatt-client: Add option to set BT_SECURITY_FIPS
  2020-05-08 13:23 [PATCH BlueZ] tools/btgatt-client: Add option to set BT_SECURITY_FIPS Łukasz Rymanowski
@ 2020-05-13 11:03 ` Szymon Janc
  0 siblings, 0 replies; 2+ messages in thread
From: Szymon Janc @ 2020-05-13 11:03 UTC (permalink / raw)
  To: linux-bluetooth, Łukasz Rymanowski; +Cc: Łukasz Rymanowski

Hi Łukasz,

On Friday, 8 May 2020 15:23:49 CEST Łukasz Rymanowski wrote:
> Need for GAP/SEC/SEM/BI-10-C
> ---
>  tools/btgatt-client.c | 6 ++++--
>  1 file 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;

Patch applied, thanks.

-- 
pozdrawiam
Szymon Janc



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-08 13:23 [PATCH BlueZ] tools/btgatt-client: Add option to set BT_SECURITY_FIPS Łukasz Rymanowski
2020-05-13 11:03 ` Szymon Janc

Linux-Bluetooth Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-bluetooth/0 linux-bluetooth/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-bluetooth linux-bluetooth/ https://lore.kernel.org/linux-bluetooth \
		linux-bluetooth@vger.kernel.org
	public-inbox-index linux-bluetooth

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-bluetooth


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git