/*
- * 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
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
static OM_uint32
gssEapInitLibRadsec(OM_uint32 *minor)
{
+ if (0) {
+ *minor = GSSEAP_RADSEC_INIT_FAILURE;
+ return GSS_S_FAILURE;
+ }
+
return GSS_S_COMPLETE;
}
{
OM_uint32 major, minor;
- initialize_gsseap_error_table();
+ initialize_eapg_error_table();
+ initialize_rse_error_table();
major = gssEapInitLibEap(&minor);
assert(major == GSS_S_COMPLETE);