+/*
+ * XXX License
+ */
+
#ifndef _MIT_INTERNALS_H_
#define _MIT_INTERNALS_H_
krb5_timestamp tgt_expire;
} krb5_gss_cred_id_rec, *krb5_gss_cred_id_t;
-#endif _MIT_INTERNALS_H_
+#endif /* _MIT_INTERNALS_H_ */
#ifdef STANDARD20_MODULE_STUFF
#include <ap_compat.h>
#include <apr_strings.h>
+#include <apr_base64.h>
#endif
-
#ifdef KRB5
#include <krb5.h>
#ifdef HEIMDAL
#else
# include <gssapi/gssapi.h>
# include <gssapi/gssapi_generic.h>
+# include <gssapi/gssapi_krb5.h>
# define GSS_C_NT_USER_NAME gss_nt_user_name
# define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name
# define krb5_get_err_text(context,code) error_message(code)
#include <netdb.h> /* gethostbyname() */
#endif /* KRB4 */
+/* XXX remove dependency on unistd.h ??? */
+#include <unistd.h>
+
#ifdef STANDARD20_MODULE_STUFF
module AP_MODULE_DECLARE_DATA auth_kerb_module;
#else
krb5_auth_context auth_context = NULL;
krb5_keytab keytab = NULL;
- krb5_data_zero (&req);
+ memset(&req, 0, sizeof(req));
if (ap_req_keytab == NULL) {
ret = krb5_kt_default (context, &keytab);
goto end;
krb5_auth_con_free (context, auth_context);
+ auth_context = NULL;
ret = krb5_auth_con_init(context, &auth_context);
if (ret)
goto end;