X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=wrap.c;h=a89bcb615fe65a39f12d99585192fa09ecfa39fb;hb=refs%2Fheads%2Fvm-integration;hp=3be87d510dd5b6ec000c78e1a1ee7d431600724c;hpb=a15319b0cfd582f3abe0c9ec21b8595dc9b1ae11;p=mech_eap.orig diff --git a/wrap.c b/wrap.c index 3be87d5..a89bcb6 100644 --- a/wrap.c +++ b/wrap.c @@ -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 @@ -30,6 +30,10 @@ * 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;