(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:
@@ -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).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -69,8 +69,6 @@ init_auth
|
|||||||
Checksum cksum;
|
Checksum cksum;
|
||||||
krb5_enctype enctype;
|
krb5_enctype enctype;
|
||||||
|
|
||||||
gssapi_krb5_init ();
|
|
||||||
|
|
||||||
outbuf.length = 0;
|
outbuf.length = 0;
|
||||||
outbuf.data = NULL;
|
outbuf.data = NULL;
|
||||||
|
|
||||||
@@ -158,9 +156,10 @@ init_auth
|
|||||||
this_cred.client = (*context_handle)->source;
|
this_cred.client = (*context_handle)->source;
|
||||||
this_cred.server = (*context_handle)->target;
|
this_cred.server = (*context_handle)->target;
|
||||||
this_cred.times.endtime = 0;
|
this_cred.times.endtime = 0;
|
||||||
|
this_cred.session.keytype = KEYTYPE_DES;
|
||||||
|
|
||||||
kret = krb5_get_credentials (gssapi_krb5_context,
|
kret = krb5_get_credentials (gssapi_krb5_context,
|
||||||
0,
|
KRB5_TC_MATCH_KEYTYPE,
|
||||||
ccache,
|
ccache,
|
||||||
&this_cred,
|
&this_cred,
|
||||||
&cred);
|
&cred);
|
||||||
|
@@ -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).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -69,8 +69,6 @@ init_auth
|
|||||||
Checksum cksum;
|
Checksum cksum;
|
||||||
krb5_enctype enctype;
|
krb5_enctype enctype;
|
||||||
|
|
||||||
gssapi_krb5_init ();
|
|
||||||
|
|
||||||
outbuf.length = 0;
|
outbuf.length = 0;
|
||||||
outbuf.data = NULL;
|
outbuf.data = NULL;
|
||||||
|
|
||||||
@@ -158,9 +156,10 @@ init_auth
|
|||||||
this_cred.client = (*context_handle)->source;
|
this_cred.client = (*context_handle)->source;
|
||||||
this_cred.server = (*context_handle)->target;
|
this_cred.server = (*context_handle)->target;
|
||||||
this_cred.times.endtime = 0;
|
this_cred.times.endtime = 0;
|
||||||
|
this_cred.session.keytype = KEYTYPE_DES;
|
||||||
|
|
||||||
kret = krb5_get_credentials (gssapi_krb5_context,
|
kret = krb5_get_credentials (gssapi_krb5_context,
|
||||||
0,
|
KRB5_TC_MATCH_KEYTYPE,
|
||||||
ccache,
|
ccache,
|
||||||
&this_cred,
|
&this_cred,
|
||||||
&cred);
|
&cred);
|
||||||
|
Reference in New Issue
Block a user