summaryrefslogtreecommitdiff
path: root/gss-serv.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2015-08-19 17:00:17 +0100
committerColin Watson <cjwatson@debian.org>2015-08-19 17:40:32 +0100
commit927d0032b865f05679d3cc052bc13cb0e6490283 (patch)
tree69f782deb79182f26069ff41e9539f17e6e44912 /gss-serv.c
parentd35c65e77ab6a6a95fefa2c852827ba08e507f0b (diff)
parent810eecd6b2e03770f21e46b5cb8ce8c7fcd46da8 (diff)
New upstream release (6.9p1).
Diffstat (limited to 'gss-serv.c')
-rw-r--r--gss-serv.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gss-serv.c b/gss-serv.c
index 539862d67..2f6baf70d 100644
--- a/gss-serv.c
+++ b/gss-serv.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: gss-serv.c,v 1.28 2015/01/20 23:14:00 deraadt Exp $ */ 1/* $OpenBSD: gss-serv.c,v 1.29 2015/05/22 03:50:02 djm Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2001-2009 Simon Wilkinson. All rights reserved. 4 * Copyright (c) 2001-2009 Simon Wilkinson. All rights reserved.
@@ -52,6 +52,8 @@
52 52
53extern ServerOptions options; 53extern ServerOptions options;
54 54
55extern ServerOptions options;
56
55static ssh_gssapi_client gssapi_client = 57static ssh_gssapi_client gssapi_client =
56 { GSS_C_EMPTY_BUFFER, GSS_C_EMPTY_BUFFER, 58 { GSS_C_EMPTY_BUFFER, GSS_C_EMPTY_BUFFER,
57 GSS_C_NO_CREDENTIAL, GSS_C_NO_NAME, NULL, 59 GSS_C_NO_CREDENTIAL, GSS_C_NO_NAME, NULL,
@@ -109,7 +111,7 @@ ssh_gssapi_acquire_cred(Gssctxt *ctx)
109 gss_create_empty_oid_set(&status, &oidset); 111 gss_create_empty_oid_set(&status, &oidset);
110 gss_add_oid_set_member(&status, ctx->oid, &oidset); 112 gss_add_oid_set_member(&status, ctx->oid, &oidset);
111 113
112 if (gethostname(lname, sizeof(lname))) { 114 if (gethostname(lname, MAXHOSTNAMELEN)) {
113 gss_release_oid_set(&status, &oidset); 115 gss_release_oid_set(&status, &oidset);
114 return (-1); 116 return (-1);
115 } 117 }
@@ -120,7 +122,7 @@ ssh_gssapi_acquire_cred(Gssctxt *ctx)
120 } 122 }
121 123
122 if ((ctx->major = gss_acquire_cred(&ctx->minor, 124 if ((ctx->major = gss_acquire_cred(&ctx->minor,
123 ctx->name, 0, oidset, GSS_C_ACCEPT, &ctx->creds, 125 ctx->name, 0, oidset, GSS_C_ACCEPT, &ctx->creds,
124 NULL, NULL))) 126 NULL, NULL)))
125 ssh_gssapi_error(ctx); 127 ssh_gssapi_error(ctx);
126 128