GSS and gssglue question…..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings,

I have a hopefully very simple question, and any suggestions would be greatly appreciated…

In my app, basically doing the following, using gssglue/gssapi with gssapi_krb5. In my app:

OM_uint32 major = gss_import_name();
if (major == GSS_S_COMPLETE)
{
   major = gss_acquire_cred();
   gss_release_name();
}

I'm testing error handling when gssapi_krb5.so is missing (being dynamically loaded by GSS). I find that gss_import_name succeeds (always returns GSS_S_COMPLETE). I happen to be getting GSS_S_BAD_MECH from gss_acquire_cred. Regardless whether gss_acquire_cred succeeds or fails, I always call gss_release_name to avoid memory leakage. In this scenario, gss_release_name segfaults.

FYI, I'm working in Ubuntu 6.06 (libgssapi-dev 0.7-0ubuntu1). Having a little trouble determining the corresponding source version, so I apologize for that.

Basically, what's the recommended usage here? Is there any reason to *not* call gss_release_name? I see a shared object debug message from somewhere within gss_import_name, so I would normally expect it to fail, and use that to know whether to later release or not. Do I only release if gss_acquire_cred succeeds, maybe?

Otherwise, no problems. Just can't figure out the recommended usage here…. Any suggestions would be wonderful!

Regards,
- Matthew

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux