@@ -85,48 +85,45 @@ AC_SUBST(enable_latex_docs)
85
85
# Acutally perform the doxygen check
86
86
BB_ENABLE_DOXYGEN
87
87
88
- # Enable cyassl ?
89
- AC_DEFUN ( [ BB_CYASSL ] ,
88
+ # Enable wolfssl ?
89
+ AC_DEFUN ( [ BB_WOLFSSL ] ,
90
90
[
91
- AC_ARG_ENABLE ( cyassl , [ --enable-cyassl enable TLS support for auth server communication (no)] , [ ] , [ enable_cyassl=no] )
92
- if test "x$enable_cyassl" = xyes; then
93
- # CyaSSL has been renamed wolfSSL. Old method names are still available
94
- # via cyassl/ssl.h, which maps old methods to new methods via macros.
95
- # To find the proper lib to link against (cyassl or wolfssl), we do have
96
- # the use the new naming scheme below as cyassl/ssl.h is not available for
97
- # AC_SEARCH_LIBS
98
- AC_CHECK_HEADERS ( cyassl/ssl.h )
99
- AC_SEARCH_LIBS ( [ CyaTLSv1_client_method] , [ cyassl] , [ ] , [
100
- AC_SEARCH_LIBS ( [ wolfTLSv1_client_method] , [ wolfssl] , [ ] , [
101
- AC_MSG_ERROR ( [ unable to locate SSL lib: either wolfSSL or CyaSSL needed.] )
102
- ] )
91
+ AC_ARG_ENABLE ( wolfssl , [ --enable-wolfssl enable TLS support for auth server communication (no)] , [ ] , [ enable_wolfssl=no] )
92
+ if test "x$enable_wolfssl" = xyes; then
93
+ AC_CHECK_HEADERS ( wolfssl/ssl.h , [ ] , [ ] ,
94
+ [
95
+ #include <wolfssl/options.h>
96
+ ] )
97
+ AC_SEARCH_LIBS ( [ wolfTLSv1_client_method] , [ wolfssl] , [ ] , [
98
+ AC_MSG_ERROR ( [ unable to locate SSL lib: wolfSSL needed.] )
103
99
] )
104
100
105
- AC_MSG_CHECKING ( [ for the CyaSSL SNI enabled] )
101
+ AC_MSG_CHECKING ( [ for the Wolfssl SNI enabled] )
106
102
AC_LINK_IFELSE ( [ AC_LANG_PROGRAM (
107
103
[ [
108
104
#define HAVE_SNI
109
- #include <cyassl/ssl.h>
105
+ #include <wolfssl/options.h>
106
+ #include <wolfssl/ssl.h>
110
107
] ] , [ [
111
- CYASSL_CTX *ctx;
112
- CyaSSL_Init ();
113
- ctx = CyaSSL_CTX_new(CyaTLSv1_client_method ());
114
- CyaSSL_CTX_UseSNI (ctx, CYASSL_SNI_HOST_NAME , "wifidog.org", 11);
108
+ WOLFSSL_CTX *ctx;
109
+ wolfSSL_Init ();
110
+ ctx = wolfSSL_CTX_new(wolfTLSv1_client_method ());
111
+ wolfSSL_CTX_UseSNI (ctx, WOLFSSL_SNI_HOST_NAME , "wifidog.org", 11);
115
112
] ] ) ] , [ enabled_sni=yes] , [ enabled_sni=no] )
116
113
117
114
if test "x$enabled_sni" = xyes; then
118
115
AC_MSG_RESULT ( [ yes] )
119
- AC_DEFINE ( [ HAVE_SNI] ,, "Compile with CyaSSL SNI support" )
116
+ AC_DEFINE ( [ HAVE_SNI] ,, "Compile with wolfssl SNI support" )
120
117
else
121
118
AC_MSG_RESULT ( [ no] )
122
119
fi
123
120
124
- AC_DEFINE ( USE_CYASSL ,, "Compile with CyaSSL support" )
121
+ AC_DEFINE ( USE_WOLFSSL ,, "Compile with wolfssl support" )
125
122
fi
126
123
] )
127
124
128
- # Actually perform the cyassl check
129
- BB_CYASSL
125
+ # Actually perform the wolfssl check
126
+ BB_WOLFSSL
130
127
131
128
132
129
0 commit comments