removed unused stuff
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6281 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997 Kungliga Tekniska H<>gskolan
|
||||
* Copyright (c) 1997 - 1999 Kungliga Tekniska H<>gskolan
|
||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||
* All rights reserved.
|
||||
*
|
||||
@@ -51,7 +51,7 @@ proto (int sock, const char *hostname, const char *service)
|
||||
krb5_ccache ccache;
|
||||
krb5_auth_context auth_context;
|
||||
krb5_error_code status;
|
||||
krb5_principal client, server;
|
||||
krb5_principal client;
|
||||
krb5_data data;
|
||||
krb5_data packet;
|
||||
krb5_creds mcred, cred;
|
||||
@@ -130,14 +130,6 @@ proto (int sock, const char *hostname, const char *service)
|
||||
if(status)
|
||||
krb5_err(context, 1, status, "krb5_auth_con_setuserkey");
|
||||
|
||||
status = krb5_sname_to_principal (context,
|
||||
hostname,
|
||||
service,
|
||||
KRB5_NT_SRV_HST,
|
||||
&server);
|
||||
if (status)
|
||||
krb5_err(context, 1, status, "krb5_sname_to_principal");
|
||||
|
||||
status = krb5_recvauth(context, &auth_context, &sock,
|
||||
VERSION, client, 0, NULL, NULL);
|
||||
|
||||
|
@@ -50,7 +50,6 @@ proto (int sock, const char *service)
|
||||
krb5_ccache ccache;
|
||||
krb5_auth_context auth_context;
|
||||
krb5_error_code status;
|
||||
char hostname[MAXHOSTNAMELEN];
|
||||
krb5_data packet;
|
||||
krb5_data data;
|
||||
krb5_data client_name;
|
||||
@@ -87,9 +86,6 @@ proto (int sock, const char *service)
|
||||
errx (1, "krb5_auth_con_setaddr: %s",
|
||||
krb5_get_err_text(context, status));
|
||||
|
||||
if(gethostname (hostname, sizeof(hostname)) < 0)
|
||||
err (1, "gethostname");
|
||||
|
||||
status = krb5_read_message(context, &sock, &client_name);
|
||||
if(status)
|
||||
krb5_err(context, 1, status, "krb5_read_message");
|
||||
|
Reference in New Issue
Block a user