Source-Changes-HG archive

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

[src/netbsd-1-5]: src/crypto/dist/heimdal/lib/gssapi Pull up revision 1.2 (re...



details:   https://anonhg.NetBSD.org/src/rev/8d6f1f5d4e85
branches:  netbsd-1-5
changeset: 490492:8d6f1f5d4e85
user:      jhawk <jhawk%NetBSD.org@localhost>
date:      Thu Jan 25 16:06:24 2001 +0000

description:
Pull up revision 1.2 (requested by fvdl):
  Make gss_acquire_cred() work for cases other than GSS_C_NO_CREDENTIAL
  (i.e 'get current, default credentials').  This is needed to support
  things like gss-api authentication with IKE, as currently implemented
  in racoon.

diffstat:

 crypto/dist/heimdal/lib/gssapi/release_cred.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 798a8e3a6bf4 -r 8d6f1f5d4e85 crypto/dist/heimdal/lib/gssapi/release_cred.c
--- a/crypto/dist/heimdal/lib/gssapi/release_cred.c     Thu Jan 25 16:06:18 2001 +0000
+++ b/crypto/dist/heimdal/lib/gssapi/release_cred.c     Thu Jan 25 16:06:24 2001 +0000
@@ -33,7 +33,7 @@
 
 #include "gssapi_locl.h"
 
-RCSID("$Id: release_cred.c,v 1.1.1.1.2.2 2001/01/25 13:55:58 jhawk Exp $");
+RCSID("$Id: release_cred.c,v 1.1.1.1.2.3 2001/01/25 16:06:24 jhawk Exp $");
 
 OM_uint32 gss_release_cred
            (OM_uint32 * minor_status,
@@ -49,6 +49,8 @@
     krb5_free_principal(gssapi_krb5_context, (*cred_handle)->principal);
     if ((*cred_handle)->keytab != NULL)
        krb5_kt_close(gssapi_krb5_context, (*cred_handle)->keytab);
+    if ((*cred_handle)->ccache != NULL)
+       krb5_cc_close(gssapi_krb5_context, (*cred_handle)->ccache);
     gss_release_oid_set(NULL, &(*cred_handle)->mechanisms);
     free(*cred_handle);
     *cred_handle = GSS_C_NO_CREDENTIAL;



Home | Main Index | Thread Index | Old Index