[Perlgssapi-developer] Warning cropping up...
Brought to you by:
achimgrolms
From: Merijn B. <me...@il...> - 2006-02-08 16:57:15
|
So this is the diff: --- distro/xs/Context.xs Wed Feb 8 04:36:26 2006 +++ ../../0.12-1.4/src/distro/xs/Context.xs Fri Jul 1 10:21:34 2005 @@ -12,14 +12,9 @@ GSSAPI::Context_opt context PREINIT: OM_uint32 minor; - OM_uint32 major; CODE: if (context != NULL) { - - major = gss_delete_sec_context(&minor, &context, GSS_C_NO_BUFFER); - if ( major != GSS_S_COMPLETE) { - warn("failed gss_delete_sec_context() module Context.xs"); - } + gss_delete_sec_context(&minor, &context, GSS_C_NO_BUFFER); } That seems entirely reasonable, but guess what? This is what my test server now does : SERVER::waiting for request ... SERVER::accepted connection from client ... SERVER::received token (length is 459): SERVER::authenticated client name is me...@is...rgan SERVER::Have mutual token to send ... SERVER::GSS token size: 114 SERVER::sent token (length is 114) failed gss_delete_sec_context() module Context.xs at gss-server.pl line 128. and my test client too: CLIENT::gss_init_sec_context success CLIENT::going to identify client to server CLIENT::have token to send ... CLIENT::GSS token length is 459 CLIENT::sent token to server CLIENT::Mutual auth requested ... CLIENT::got mutual auth token from server CLIENT::mutual auth token length is 114 CLIENT::gss_init_sec_context success CLIENT::confirmed server identity from mutual token CLIENT::authenticated server name is krbping/xx...@is...rgan failed gss_delete_sec_context() module Context.xs, <GEN0> line 1. Mmmmmmmm. I shall be looking through the gssapi docs. Googling gives me this tasty bit of code : maj_stat = gss_delete_sec_context(&min_stat, &context, &out_buf); if (maj_stat != GSS_S_COMPLETE) { display_status("deleting context", maj_stat, min_stat); (void) close(s); (void) gss_delete_sec_context(&min_stat, &context, GSS_C_NO_BUFFER); return -1; } yummy. How very odd... Other then that it all seems to be working without any issues. That's something at least. :-) Cheers, -- Merijn Broeren | Sometime in the middle ages, God got fed up with us Software Geek | and put earth at sol.milky-way.univ in his kill-file. | Pray all you want, it just gets junked. |