If you have the ability to hack the code, I believe you can ignore the GSS_S_CONTEXT_EXPIRED after your calls to gss_wrap() or gss_unwrap() -- relying on the MIT implementation to complete the function before checking the context lifetime and returning the error. I hope they continue to code it this way, as I know of some applications that rely on this undocumented feature.