summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJeffrey Altman <jaltman@secure-endpoints.com>2007-09-02 14:12:13 +0000
committerJeffrey Altman <jaltman@secure-endpoints.com>2007-09-02 14:12:13 +0000
commitf1a06003f32e1cfde3d96333c20e02ee5e761e97 (patch)
tree6c4d4ce86b7ec7aa3aa6bb76a29c1cfa48c09138 /src/lib
parent35b9f28c1e947cdeb80e5445302b0b13c2b1b309 (diff)
downloadkrb5-f1a06003f32e1cfde3d96333c20e02ee5e761e97.tar.gz
krb5-f1a06003f32e1cfde3d96333c20e02ee5e761e97.tar.xz
krb5-f1a06003f32e1cfde3d96333c20e02ee5e761e97.zip
GSS-API Win64 support
The name of the Leash API DLL on Win64 is "leashw64.dll". ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19909 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/gssapi/krb5/acquire_cred.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/gssapi/krb5/acquire_cred.c b/src/lib/gssapi/krb5/acquire_cred.c
index af17e6742f..7754e2452e 100644
--- a/src/lib/gssapi/krb5/acquire_cred.c
+++ b/src/lib/gssapi/krb5/acquire_cred.c
@@ -82,6 +82,11 @@
#if defined(USE_LOGIN_LIBRARY)
#include <Kerberos/KerberosLoginPrivate.h>
#elif defined(USE_LEASH)
+#ifdef _WIN64
+#define LEASH_DLL "leashw64.dll"
+#else
+#define LEASH_DLL "leashw32.dll"
+#endif
static void (*pLeash_AcquireInitialTicketsIfNeeded)(krb5_context,krb5_principal,char*,int) = NULL;
static HANDLE hLeashDLL = INVALID_HANDLE_VALUE;
#endif
@@ -265,7 +270,7 @@ acquire_init_cred(context, minor_status, desired_name, output_princ, cred)
#elif defined(USE_LEASH)
if ( hLeashDLL == INVALID_HANDLE_VALUE ) {
- hLeashDLL = LoadLibrary("leashw32.dll");
+ hLeashDLL = LoadLibrary(LEASH_DLL);
if ( hLeashDLL != INVALID_HANDLE_VALUE ) {
(FARPROC) pLeash_AcquireInitialTicketsIfNeeded =
GetProcAddress(hLeashDLL, "not_an_API_Leash_AcquireInitialTicketsIfNeeded");