[7686] in Kerberos

home help back first fref pref prev next nref lref last post

GSS API - gss_init_sec_context

daemon@ATHENA.MIT.EDU (Charles LaRosse)
Sun Jul 28 00:34:14 1996

To: kerberos@MIT.EDU
Date: Sat, 27 Jul 1996 21:14:29 -0700
From: Charles LaRosse <cxlaros@pacbell.com>

Help me Mr. Wizard!

I have a program where I have to initiate a security context a second
time to the same service (after calling gss_delete_sec_context).  The
problem is that the second attempt always fails. -- GSS_NO_CONTEXT 
| GSS_BAD_BINDINGS.  I'm not using the channel bindings, I pass 
GSS_C_NULL_CHANNEL_BINDINGS. 

example:

    gss_init_sec_context ()
    ...
    gss_seal ()
    send_request ()
    get_reply ()
    rc = gss_unseal ()
    if (rc is bad)
    {
        gss_delete_sec_context ()
        gss_init_sec_context ()
        gss_unseal ()
    }
    ...
    gss_delete_sec_context ()

I know this is kludgy, but I inherited these programs and must
make them work.

BTW, I'm usings Cybersafe Security Toolkit 1.0 with Cybersafe
  Kerberos 5.6.2c.

As an aside, I'm new this, will I ever come to like the GSS API?

Thank-you.

home help back first fref pref prev next nref lref last post