@@ -1377,6 +1377,7 @@ AC_ARG_ENABLE([mcast],
13771377# FFmpeg (--enable-ffmpeg) WOLFSSL_FFMPEG
13781378# strongSwan (--enable-strongswan)
13791379# OpenLDAP (--enable-openldap)
1380+ # hitch (--enable-hitch)
13801381
13811382# Bind DNS compatibility Build
13821383AC_ARG_ENABLE ( [ bind] ,
@@ -1580,6 +1581,13 @@ AC_ARG_ENABLE([strongswan],
15801581 [ ENABLED_STRONGSWAN=no ]
15811582 )
15821583
1584+ # hitch support
1585+ AC_ARG_ENABLE ( [ hitch] ,
1586+ [ AS_HELP_STRING ( [ --enable-hitch] ,[ Enable hitch support (default: disabled)] ) ] ,
1587+ [ ENABLED_HITCH=$enableval ] ,
1588+ [ ENABLED_HITCH=no ]
1589+ )
1590+
15831591# OpenSSL Coexist
15841592AC_ARG_ENABLE ( [ opensslcoexist] ,
15851593 [ AS_HELP_STRING ( [ --enable-opensslcoexist] ,[ Enable coexistence of wolfssl/openssl (default: disabled)] ) ] ,
@@ -1691,7 +1699,7 @@ if test "$ENABLED_LIBWEBSOCKETS" = "yes" || test "$ENABLED_OPENVPN" = "yes" || \
16911699 test "$ENABLED_OPENRESTY" = "yes" || test "$ENABLED_RSYSLOG" = "yes" || \
16921700 test "$ENABLED_KRB" = "yes" || test "$ENABLED_CHRONY" = "yes" || \
16931701 test "$ENABLED_FFMPEG" = "yes" || test "$ENABLED_STRONGSWAN" = "yes" || \
1694- test "$ENABLED_OPENLDAP" = "yes"
1702+ test "$ENABLED_OPENLDAP" = "yes" || test "$ENABLED_HITCH" = "yes"
16951703then
16961704 ENABLED_OPENSSLALL="yes"
16971705fi
@@ -3109,7 +3117,7 @@ AC_ARG_ENABLE([sessioncerts],
31093117
31103118if test "x$ENABLED_NGINX" = "xyes" || test "x$ENABLED_OPENVPN" = "xyes" || \
31113119 test "x$ENABLED_LIGHTY" = "xyes" || test "x$ENABLED_NETSNMP" = "xyes" || \
3112- test "x$ENABLED_STRONGSWAN" = "xyes"
3120+ test "x$ENABLED_STRONGSWAN" = "xyes" || test "x$ENABLED_HITCH" = "xyes"
31133121then
31143122 ENABLED_SESSIONCERTS=yes
31153123fi
@@ -3149,7 +3157,7 @@ AC_ARG_ENABLE([certgen],
31493157if test "$ENABLED_OPENVPN" = "yes" || test "$ENABLED_OPENSSH" = "yes" || \
31503158 test "$ENABLED_BIND" = "yes" || test "$ENABLED_NTP" = "yes" || \
31513159 test "$ENABLED_CHRONY" = "yes" || test "$ENABLED_STRONGSWAN" = "yes" || \
3152- test "$ENABLED_OPENLDAP" = "yes"
3160+ test "$ENABLED_OPENLDAP" = "yes" || test "$ENABLED_HITCH" = "yes"
31533161then
31543162 ENABLED_CERTGEN=yes
31553163fi
@@ -5961,6 +5969,45 @@ then
59615969 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DES_ECB -DHAVE_EX_DATA -DWOLFSSL_KEY_GEN"
59625970fi
59635971
5972+ if test "$ENABLED_HITCH" = "yes"
5973+ then
5974+ # Requires opensslextra make sure on
5975+ if test "x$ENABLED_OPENSSLEXTRA" = "xno" && test "x$ENABLED_OPENSSLCOEXIST" = "xno"
5976+ then
5977+ ENABLED_OPENSSLEXTRA="yes"
5978+ AM_CFLAGS="$AM_CFLAGS -DOPENSSL_EXTRA"
5979+ fi
5980+
5981+ # Requires OCSP make sure on
5982+ if test "x$ENABLED_OCSP" = "xno"
5983+ then
5984+ ENABLED_OCSP="yes"
5985+ fi
5986+
5987+ # Requires ALPN
5988+ if test "x$ENABLED_ALPN" = "xno"
5989+ then
5990+ ENABLED_ALPN="yes"
5991+ AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_ALPN"
5992+ fi
5993+
5994+ if test "x$ENABLED_KEYGEN" = "xno"
5995+ then
5996+ ENABLED_KEYGEN="yes"
5997+ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_KEY_GEN"
5998+ fi
5999+
6000+ # Requires sessioncerts make sure on
6001+ if test "x$ENABLED_SESSIONCERTS" = "xno"
6002+ then
6003+ ENABLED_SESSIONCERTS="yes"
6004+ AM_CFLAGS="$AM_CFLAGS -DSESSION_CERTS"
6005+ fi
6006+
6007+ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_HITCH -DHAVE_EX_DATA -DWOLFSSL_SIGNER_DER_CERT"
6008+ AM_CFLAGS="$AM_CFLAGS -DOPENSSL_COMPATIBLE_DEFAULTS -DWOLFSSL_CIPHER_INTERNALNAME"
6009+ fi
6010+
59646011
59656012if test "$ENABLED_NGINX" = "yes"|| test "x$ENABLED_HAPROXY" = "xyes" || test "x$ENABLED_LIGHTY" = "xyes"
59666013then
@@ -8003,7 +8050,7 @@ if test "$ENABLED_OPENSSH" = "yes" || test "$ENABLED_NGINX" = "yes" || \
80038050 test "$ENABLED_LIBWEBSOCKETS" = "yes" || \
80048051 test "x$ENABLED_LIGHTY" = "xyes" || test "$ENABLED_LIBSSH2" = "yes" || \
80058052 test "x$ENABLED_NTP" = "xyes" || test "$ENABLED_RSYSLOG" = "yes" || \
8006- test "$ENABLED_OPENLDAP" = "yes"
8053+ test "$ENABLED_OPENLDAP" = "yes" || test "$ENABLED_HITCH" = "yes"
80078054then
80088055 ENABLED_OPENSSLEXTRA="yes"
80098056fi
@@ -9189,6 +9236,7 @@ echo " * SIGNAL: $ENABLED_SIGNAL"
91899236echo " * chrony: $ENABLED_CHRONY"
91909237echo " * strongSwan: $ENABLED_STRONGSWAN"
91919238echo " * OpenLDAP: $ENABLED_OPENLDAP"
9239+ echo " * hitch: $ENABLED_HITCH"
91929240echo " * ERROR_STRINGS: $ENABLED_ERROR_STRINGS"
91939241echo " * DTLS: $ENABLED_DTLS"
91949242echo " * DTLS v1.3: $ENABLED_DTLS13"
0 commit comments