util_saml: correctly account for gss lengths
[mech_eap.orig] / mech_invoke.c
index df58177..2b7fb7e 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
@@ -38,5 +38,7 @@ gssspi_mech_invoke(OM_uint32 *minor,
                    const gss_OID desired_object,
                    gss_buffer_t value)
 {
-    GSSEAP_NOT_IMPLEMENTED;
+    *minor = GSSEAP_BAD_INVOCATION;
+
+    return GSS_S_UNAVAILABLE;
 }