remove @TARGET_LIBS@, they don't exist
[mech_eap.git] / wrap_size_limit.c
index 4e7a0da..37356ce 100644 (file)
  * SUCH DAMAGE.
  */
 
+/*
+ * Message protection services: determine maximum input size.
+ */
+
 #include "gssapiP_eap.h"
 
 OM_uint32
@@ -45,7 +49,7 @@ gss_wrap_size_limit(OM_uint32 *minor,
 
     if (ctx == GSS_C_NO_CONTEXT) {
         *minor = EINVAL;
-        return GSS_S_NO_CONTEXT;
+        return GSS_S_CALL_INACCESSIBLE_READ | GSS_S_NO_CONTEXT;
     }
 
     *minor = 0;