Note that /etc/gss/mech is not implementation-specific
[mech_eap.orig] / wrap.c
diff --git a/wrap.c b/wrap.c
index 3be87d5..408f983 100644 (file)
--- a/wrap.c
+++ b/wrap.c
  * SUCH DAMAGE.
  */
 
+/*
+ * Message protection services: wrap.
+ */
+
 #include "gssapiP_eap.h"
 
 OM_uint32
@@ -45,7 +49,7 @@ gss_wrap(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;