File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -244,7 +244,22 @@ AS_IF([test "x$ENABLED_SHELL" = "xyes"],
244244AS_IF ( [ test "x$ENABLED_AGENT" = "xyes"] ,
245245 [ AM_CPPFLAGS="$AM_CPPFLAGS -DWOLFSSH_AGENT"] )
246246AS_IF ( [ test "x$ENABLED_CERTS" = "xyes"] ,
247- [ AM_CPPFLAGS="$AM_CPPFLAGS -DWOLFSSH_CERTS"] )
247+ [ AM_CPPFLAGS="$AM_CPPFLAGS -DWOLFSSH_CERTS"
248+ # FPKI profile checks in certman.c reference wolfSSL symbols
249+ # (e.g. EXTKEYUSE_SSH_MSCL, DecodedCert::extExtKeyUsageSsh) that
250+ # are only exposed when wolfSSL itself was built with
251+ # WOLFSSL_WOLFSSH. Fail early if it isn't.
252+ AC_MSG_CHECKING ( [ wolfSSL for WOLFSSL_WOLFSSH support] )
253+ AC_COMPILE_IFELSE (
254+ [ AC_LANG_PROGRAM (
255+ [ [ #include <wolfssl/options.h>
256+ #ifndef WOLFSSL_WOLFSSH
257+ #error WOLFSSL_WOLFSSH not defined
258+ #endif] ] ,
259+ [ [ ] ] ) ] ,
260+ [ AC_MSG_RESULT ( [ yes] ) ] ,
261+ [ AC_MSG_RESULT ( [ no] )
262+ AC_MSG_ERROR ( [ wolfSSL must be built with --enable-wolfssh (WOLFSSL_WOLFSSH) to use wolfSSH --enable-certs.] ) ] ) ] )
248263AS_IF ( [ test "x$ENABLED_SMALLSTACK" = "xyes"] ,
249264 [ AM_CPPFLAGS="$AM_CPPFLAGS -DWOLFSSH_SMALL_STACK"] )
250265AS_IF ( [ test "x$ENABLED_SSHCLIENT" = "xyes"] ,
You can’t perform that action at this time.
0 commit comments