(init_auth): remove unnecessary gssapi_krb5_init. ask for KEYTYPE_DES

credentials


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5364 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-02-15 21:02:39 +00:00
parent 0b54ed61fe
commit 30250940c5
2 changed files with 14 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan
* Copyright (c) 1997, 1998, 1999 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -69,8 +69,6 @@ init_auth
Checksum cksum;
krb5_enctype enctype;
gssapi_krb5_init ();
outbuf.length = 0;
outbuf.data = NULL;
@@ -155,12 +153,13 @@ init_auth
}
memset(&this_cred, 0, sizeof(this_cred));
this_cred.client = (*context_handle)->source;
this_cred.server = (*context_handle)->target;
this_cred.times.endtime = 0;
this_cred.client = (*context_handle)->source;
this_cred.server = (*context_handle)->target;
this_cred.times.endtime = 0;
this_cred.session.keytype = KEYTYPE_DES;
kret = krb5_get_credentials (gssapi_krb5_context,
0,
KRB5_TC_MATCH_KEYTYPE,
ccache,
&this_cred,
&cred);

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan
* Copyright (c) 1997, 1998, 1999 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -69,8 +69,6 @@ init_auth
Checksum cksum;
krb5_enctype enctype;
gssapi_krb5_init ();
outbuf.length = 0;
outbuf.data = NULL;
@@ -155,12 +153,13 @@ init_auth
}
memset(&this_cred, 0, sizeof(this_cred));
this_cred.client = (*context_handle)->source;
this_cred.server = (*context_handle)->target;
this_cred.times.endtime = 0;
this_cred.client = (*context_handle)->source;
this_cred.server = (*context_handle)->target;
this_cred.times.endtime = 0;
this_cred.session.keytype = KEYTYPE_DES;
kret = krb5_get_credentials (gssapi_krb5_context,
0,
KRB5_TC_MATCH_KEYTYPE,
ccache,
&this_cred,
&cred);