(doit_v5): call krb5_sendauth with ccache == NULL

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6192 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-05-10 03:47:21 +00:00
parent 30f9781488
commit 2a2250c2e3

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1995, 1996, 1997, 1998 Kungliga Tekniska H<>gskolan * Copyright (c) 1995 - 1999 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -129,15 +129,12 @@ doit_v5 (char *host, int port)
{ {
krb5_error_code ret; krb5_error_code ret;
krb5_context context; krb5_context context;
krb5_ccache ccache;
krb5_auth_context auth_context = NULL; krb5_auth_context auth_context = NULL;
krb5_principal server; krb5_principal server;
int s = get_socket (host, port); int s = get_socket (host, port);
krb5_init_context (&context); krb5_init_context (&context);
krb5_cc_default (context, &ccache);
ret = krb5_sname_to_principal (context, ret = krb5_sname_to_principal (context,
host, host,
"pop", "pop",
@@ -157,7 +154,7 @@ doit_v5 (char *host, int port)
0, 0,
NULL, NULL,
NULL, NULL,
ccache, NULL,
NULL, NULL,
NULL, NULL,
NULL); NULL);