- (dtucker) [gss-serv-krb5.c] Fall back to krb5_cc_gen_new if the Kerberos

implementation does not have krb5_cc_new_unique, similar to what we do
   in auth-krb5.c.
This commit is contained in:
Darren Tucker 2014-01-20 13:18:09 +11:00
parent 3510979e83
commit c74e70eb52
2 changed files with 9 additions and 0 deletions

View File

@ -1,4 +1,7 @@
20140120 20140120
- (dtucker) [gss-serv-krb5.c] Fall back to krb5_cc_gen_new if the Kerberos
implementation does not have krb5_cc_new_unique, similar to what we do
in auth-krb5.c.
- (djm) OpenBSD CVS Sync - (djm) OpenBSD CVS Sync
- djm@cvs.openbsd.org 2014/01/20 00:08:48 - djm@cvs.openbsd.org 2014/01/20 00:08:48
[digest.c] [digest.c]

View File

@ -132,10 +132,16 @@ ssh_gssapi_krb5_storecreds(ssh_gssapi_client *client)
return; return;
#ifdef HEIMDAL #ifdef HEIMDAL
# ifdef HAVE_KRB5_CC_NEW_UNIQUE
if ((problem = krb5_cc_new_unique(krb_context, krb5_fcc_ops.prefix, if ((problem = krb5_cc_new_unique(krb_context, krb5_fcc_ops.prefix,
NULL, &ccache)) != 0) { NULL, &ccache)) != 0) {
errmsg = krb5_get_error_message(krb_context, problem); errmsg = krb5_get_error_message(krb_context, problem);
logit("krb5_cc_new_unique(): %.100s", errmsg); logit("krb5_cc_new_unique(): %.100s", errmsg);
# else
if ((problem = krb5_cc_gen_new(krb_context, &krb5_fcc_ops, &ccache))) {
logit("krb5_cc_gen_new(): %.100s",
krb5_get_err_text(krb_context, problem));
# endif
krb5_free_error_message(krb_context, errmsg); krb5_free_error_message(krb_context, errmsg);
return; return;
} }