cleanup unused parameter warnings
[mech_eap.git] / inquire_sec_context_by_oid.c
index 71f7202..a69b9e9 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.
  */
 
+/*
+ * Return extended properties of a context handle.
+ */
+
 #include "gssapiP_eap.h"
 
 static OM_uint32
 inquireSessionKey(OM_uint32 *minor,
                   const gss_ctx_id_t ctx,
-                  const gss_OID desired_object,
+                  const gss_OID desired_object GSSEAP_UNUSED,
                   gss_buffer_set_t *dataSet)
 {
     OM_uint32 major, tmpMinor;
@@ -69,6 +73,7 @@ inquireSessionKey(OM_uint32 *minor,
         goto cleanup;
 
     major = GSS_S_COMPLETE;
+    *minor = 0;
 
 cleanup:
     if (GSS_ERROR(major) && *dataSet != GSS_C_NO_BUFFER_SET) {