From a67c8b469852f51d90f6e48bc54ae34addeb8b1b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 12 Jul 2007 21:34:42 +0000 Subject: Made the krb5 code build with Heimdal's GSSAPI lib --- lib/krb5.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/krb5.c b/lib/krb5.c index 2c0a16f2a..989bc4959 100644 --- a/lib/krb5.c +++ b/lib/krb5.c @@ -36,14 +36,24 @@ #ifndef CURL_DISABLE_FTP #ifdef HAVE_GSSAPI +#ifdef HAVE_GSSMIT +#define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name +#endif + #include #ifdef HAVE_NETDB_H #include #endif #include +#ifdef HAVE_GSSMIT +/* MIT style */ #include #include #include +#else +/* Heimdal-style */ +#include +#endif #include "urldata.h" #include "base64.h" @@ -185,7 +195,7 @@ krb5_auth(void *app_data, struct connectdata *conn) gssbuf.value = data->state.buffer; gssbuf.length = snprintf(gssbuf.value, BUFSIZE, "%s@%s", service, host); - maj = gss_import_name(&min, &gssbuf, gss_nt_service_name, &gssname); + maj = gss_import_name(&min, &gssbuf, GSS_C_NT_HOSTBASED_SERVICE, &gssname); if(maj != GSS_S_COMPLETE) { gss_release_name(&min, &gssname); if(service == srv_host) { -- cgit v1.2.3