Skip to content

Commit

Permalink
ssh: use standalone config file for security key support
Browse files Browse the repository at this point in the history
An upcoming OpenSSH update has multiple config.h settings that change
depending on whether builtin security key support is enabled.  Prepare
for this by moving ENABLE_SK_INTERNAL to a new sk_config.h header
(similar to the approach used for optional krb5 support) and optionally
including that, instead of defining the macro directly from CFLAGS.

Reviewed by:	kevans
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D34407
  • Loading branch information
emaste committed Mar 2, 2022
1 parent d94d94e commit 92ef98b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions crypto/openssh/sk_config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#define ENABLE_SK_INTERNAL /**/
3 changes: 2 additions & 1 deletion secure/ssh.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ CFLAGS+= -I${SSHDIR} -include ssh_namespace.h
SRCS+= ssh_namespace.h

.if ${MK_USB} != "no"
CFLAGS+= -DENABLE_SK_INTERNAL=1
# Built-in security key support
CFLAGS+= -include sk_config.h
.endif

0 comments on commit 92ef98b

Please sign in to comment.