diff options
author | Darren Tucker <dtucker@zip.com.au> | 2013-08-04 21:48:41 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2013-08-04 21:48:41 +1000 |
commit | f3ab2c5f9cf4aed44971eded3ac9eeb1344b2be5 (patch) | |
tree | a17f6aa145e9a75b48766160427aef34e93c6d6b /auth-krb5.c | |
parent | ab3575c055adfbce70fa7405345cf0f80b07c827 (diff) | |
download | openssh-git-f3ab2c5f9cf4aed44971eded3ac9eeb1344b2be5.tar.gz |
- (dtucker) [auth-krb5.c configure.ac openbsd-compat/bsd-misc.h] Add support
for building with older Heimdal versions. ok djm.
Diffstat (limited to 'auth-krb5.c')
-rw-r--r-- | auth-krb5.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/auth-krb5.c b/auth-krb5.c index 43ee9272..7c83f597 100644 --- a/auth-krb5.c +++ b/auth-krb5.c @@ -97,8 +97,12 @@ auth_krb5_password(Authctxt *authctxt, const char *password) goto out; #ifdef HEIMDAL +# ifdef HAVE_KRB5_CC_NEW_UNIQUE problem = krb5_cc_new_unique(authctxt->krb5_ctx, krb5_mcc_ops.prefix, NULL, &ccache); +# else + problem = krb5_cc_gen_new(authctxt->krb5_ctx, &krb5_mcc_ops, &ccache); +# endif if (problem) goto out; @@ -117,8 +121,13 @@ auth_krb5_password(Authctxt *authctxt, const char *password) if (problem) goto out; +# ifdef HAVE_KRB5_CC_NEW_UNIQUE problem = krb5_cc_new_unique(authctxt->krb5_ctx, krb5_fcc_ops.prefix, NULL, &authctxt->krb5_fwd_ccache); +# else + problem = krb5_cc_gen_new(authctxt->krb5_ctx, &krb5_fcc_ops, + &authctxt->krb5_fwd_ccache); +# endif if (problem) goto out; |