summaryrefslogtreecommitdiffstats
path: root/crypto/heimdal/appl/test/nt_gss_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/heimdal/appl/test/nt_gss_server.c')
-rw-r--r--crypto/heimdal/appl/test/nt_gss_server.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/crypto/heimdal/appl/test/nt_gss_server.c b/crypto/heimdal/appl/test/nt_gss_server.c
index 05b6bcb..df4a32e 100644
--- a/crypto/heimdal/appl/test/nt_gss_server.c
+++ b/crypto/heimdal/appl/test/nt_gss_server.c
@@ -36,7 +36,7 @@
#include <krb5.h>
#include "nt_gss_common.h"
-RCSID("$Id: nt_gss_server.c,v 1.5 2000/08/09 20:53:07 assar Exp $");
+RCSID("$Id: nt_gss_server.c 12323 2003-05-21 15:15:34Z lha $");
/*
* This program tries to act as a server for the sample in `Sample
@@ -116,13 +116,18 @@ proto (int sock, const char *service)
if (auth_file != NULL) {
int fd = open (auth_file, O_WRONLY | O_CREAT, 0666);
- krb5_ticket *ticket = context_hdl->ticket;
- krb5_data *data = &ticket->ticket.authorization_data->val[0].ad_data;
+#if 0
+ krb5_ticket *ticket;
+ krb5_data *data;
+
+ ticket = context_hdl->ticket;
+ data = &ticket->ticket.authorization_data->val[0].ad_data;
if(fd < 0)
err (1, "open %s", auth_file);
if (write (fd, data->data, data->length) != data->length)
errx (1, "write to %s failed", auth_file);
+#endif
if (close (fd))
err (1, "close %s", auth_file);
}
OpenPOWER on IntegriCloud