From 4209a1ef887ab8431f625b7838e47f5ce2bd61ff Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 23 May 1999 06:51:32 +0000 Subject: [PATCH] removed unused stuff git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6281 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/test/uu_client.c | 12 ++---------- appl/test/uu_server.c | 4 ---- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/appl/test/uu_client.c b/appl/test/uu_client.c index ae32421c7..c0a6e5f9b 100644 --- a/appl/test/uu_client.c +++ b/appl/test/uu_client.c @@ -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); diff --git a/appl/test/uu_server.c b/appl/test/uu_server.c index 35069821b..6e9d73f56 100644 --- a/appl/test/uu_server.c +++ b/appl/test/uu_server.c @@ -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");