]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Hack radeapclient to make it build.
authorAlan T. DeKok <aland@freeradius.org>
Thu, 12 May 2011 08:38:03 +0000 (10:38 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 12 May 2011 10:26:06 +0000 (12:26 +0200)
People should be using eapol_test instead.  It's SO much better.
We probably also need to make radclient handle EAP-MD5, for
simplicity of testing

src/modules/rlm_eap/radeapclient.c

index b27475d081cbe44950724a7407f5440b38502e8f..ec59fe38615d5d1a24028be7e0fa2671900c6452 100644 (file)
@@ -55,6 +55,14 @@ char *radius_dir = NULL;
 const char *progname = "radeapclient";
 /* fr_randctx randctx; */
 
+#ifdef WITH_TLS
+#include <freeradius-devel/tls.h>
+
+int tls_success(UNUSED tls_session_t *ssn, UNUSED REQUEST *request){return 0;}
+void tls_fail(UNUSED tls_session_t *ssn){_exit(1);}
+fr_tls_status_t tls_ack_handler(UNUSED tls_session_t *tls_session, UNUSED REQUEST *request){return FR_TLS_INVALID;}
+fr_tls_status_t tls_application_data(UNUSED tls_session_t *ssn, UNUSED REQUEST *request){return FR_TLS_INVALID;}
+#endif
 
 radlog_dest_t radlog_dest = RADLOG_STDERR;
 const char *radlog_dir = NULL;