summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--gss-serv-krb5.c6
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b870c075c..6073abbb8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
120140120 120140120
2 - (dtucker) [gss-serv-krb5.c] Fall back to krb5_cc_gen_new if the Kerberos
3 implementation does not have krb5_cc_new_unique, similar to what we do
4 in auth-krb5.c.
2 - (djm) OpenBSD CVS Sync 5 - (djm) OpenBSD CVS Sync
3 - djm@cvs.openbsd.org 2014/01/20 00:08:48 6 - djm@cvs.openbsd.org 2014/01/20 00:08:48
4 [digest.c] 7 [digest.c]
diff --git a/gss-serv-krb5.c b/gss-serv-krb5.c
index 87f26831a..759fa104f 100644
--- a/gss-serv-krb5.c
+++ b/gss-serv-krb5.c
@@ -132,10 +132,16 @@ ssh_gssapi_krb5_storecreds(ssh_gssapi_client *client)
132 return; 132 return;
133 133
134#ifdef HEIMDAL 134#ifdef HEIMDAL
135# ifdef HAVE_KRB5_CC_NEW_UNIQUE
135 if ((problem = krb5_cc_new_unique(krb_context, krb5_fcc_ops.prefix, 136 if ((problem = krb5_cc_new_unique(krb_context, krb5_fcc_ops.prefix,
136 NULL, &ccache)) != 0) { 137 NULL, &ccache)) != 0) {
137 errmsg = krb5_get_error_message(krb_context, problem); 138 errmsg = krb5_get_error_message(krb_context, problem);
138 logit("krb5_cc_new_unique(): %.100s", errmsg); 139 logit("krb5_cc_new_unique(): %.100s", errmsg);
140# else
141 if ((problem = krb5_cc_gen_new(krb_context, &krb5_fcc_ops, &ccache))) {
142 logit("krb5_cc_gen_new(): %.100s",
143 krb5_get_err_text(krb_context, problem));
144# endif
139 krb5_free_error_message(krb_context, errmsg); 145 krb5_free_error_message(krb_context, errmsg);
140 return; 146 return;
141 } 147 }