summaryrefslogtreecommitdiff
path: root/auth-krb5.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2013-08-04 21:48:41 +1000
committerDarren Tucker <dtucker@zip.com.au>2013-08-04 21:48:41 +1000
commitf3ab2c5f9cf4aed44971eded3ac9eeb1344b2be5 (patch)
treea17f6aa145e9a75b48766160427aef34e93c6d6b /auth-krb5.c
parentab3575c055adfbce70fa7405345cf0f80b07c827 (diff)
- (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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/auth-krb5.c b/auth-krb5.c
index 43ee9272f..7c83f597f 100644
--- a/auth-krb5.c
+++ b/auth-krb5.c
@@ -97,8 +97,12 @@ auth_krb5_password(Authctxt *authctxt, const char *password)
97 goto out; 97 goto out;
98 98
99#ifdef HEIMDAL 99#ifdef HEIMDAL
100# ifdef HAVE_KRB5_CC_NEW_UNIQUE
100 problem = krb5_cc_new_unique(authctxt->krb5_ctx, 101 problem = krb5_cc_new_unique(authctxt->krb5_ctx,
101 krb5_mcc_ops.prefix, NULL, &ccache); 102 krb5_mcc_ops.prefix, NULL, &ccache);
103# else
104 problem = krb5_cc_gen_new(authctxt->krb5_ctx, &krb5_mcc_ops, &ccache);
105# endif
102 if (problem) 106 if (problem)
103 goto out; 107 goto out;
104 108
@@ -117,8 +121,13 @@ auth_krb5_password(Authctxt *authctxt, const char *password)
117 if (problem) 121 if (problem)
118 goto out; 122 goto out;
119 123
124# ifdef HAVE_KRB5_CC_NEW_UNIQUE
120 problem = krb5_cc_new_unique(authctxt->krb5_ctx, 125 problem = krb5_cc_new_unique(authctxt->krb5_ctx,
121 krb5_fcc_ops.prefix, NULL, &authctxt->krb5_fwd_ccache); 126 krb5_fcc_ops.prefix, NULL, &authctxt->krb5_fwd_ccache);
127# else
128 problem = krb5_cc_gen_new(authctxt->krb5_ctx, &krb5_fcc_ops,
129 &authctxt->krb5_fwd_ccache);
130# endif
122 if (problem) 131 if (problem)
123 goto out; 132 goto out;
124 133