remove debugging statement
[mech_eap.orig] / eap_mech.c
index f067b4e..fb827dd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2010, JANET(UK)
+ * Copyright (c) 2011, JANET(UK)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * SUCH DAMAGE.
  */
 
+/*
+ * Initialisation and finalise functions.
+ */
+
 #include "gssapiP_eap.h"
 
 static OM_uint32
@@ -137,7 +141,11 @@ eapPeerRegisterMethods(OM_uint32 *minor)
         ret = eap_peer_tnc_register();
 #endif /* EAP_TNC */
 
-    return ret ? GSS_S_FAILURE : GSS_S_COMPLETE;
+    if (ret == 0)
+        return GSS_S_COMPLETE;
+
+    *minor = GSSEAP_LIBEAP_INIT_FAILURE;
+    return GSS_S_FAILURE;
 }
 
 static OM_uint32
@@ -149,6 +157,11 @@ gssEapInitLibEap(OM_uint32 *minor)
 static OM_uint32
 gssEapInitLibRadsec(OM_uint32 *minor)
 {
+    if (0) {
+        *minor = GSSEAP_RADSEC_INIT_FAILURE;
+        return GSS_S_FAILURE;
+    }
+
     return GSS_S_COMPLETE;
 }
 
@@ -160,6 +173,9 @@ gssEapInitiatorInit(void)
 {
     OM_uint32 major, minor;
 
+    initialize_eapg_error_table();
+    initialize_rse_error_table();
+
     major = gssEapInitLibEap(&minor);
     assert(major == GSS_S_COMPLETE);