summaryrefslogtreecommitdiff
path: root/gss-serv.c
diff options
context:
space:
mode:
Diffstat (limited to 'gss-serv.c')
-rw-r--r--gss-serv.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gss-serv.c b/gss-serv.c
index 2e27cbf9c..967c6cfbc 100644
--- a/gss-serv.c
+++ b/gss-serv.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: gss-serv.c,v 1.29 2015/05/22 03:50:02 djm Exp $ */ 1/* $OpenBSD: gss-serv.c,v 1.30 2017/06/24 06:34:38 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.
@@ -549,4 +549,13 @@ ssh_gssapi_update_creds(ssh_gssapi_ccache *store) {
549 return ok; 549 return ok;
550} 550}
551 551
552/* Privileged */
553const char *ssh_gssapi_displayname(void)
554{
555 if (gssapi_client.displayname.length == 0 ||
556 gssapi_client.displayname.value == NULL)
557 return NULL;
558 return (char *)gssapi_client.displayname.value;
559}
560
552#endif 561#endif