diff --git a/src/gssapi_client.cpp b/src/gssapi_client.cpp index 6fd8d894..91cb342a 100644 --- a/src/gssapi_client.cpp +++ b/src/gssapi_client.cpp @@ -165,7 +165,8 @@ int zmq::gssapi_client_t::initialize_context () send_tok.value = service_name; send_tok.length = strlen(service_name); OM_uint32 maj = gss_import_name(&min_stat, &send_tok, - gss_nt_service_name, &target_name); + GSS_C_NT_HOSTBASED_SERVICE, + &target_name); if (maj != GSS_S_COMPLETE) return -1; diff --git a/src/gssapi_mechanism_base.cpp b/src/gssapi_mechanism_base.cpp index e51481c9..f9498232 100644 --- a/src/gssapi_mechanism_base.cpp +++ b/src/gssapi_mechanism_base.cpp @@ -317,7 +317,7 @@ int zmq::gssapi_mechanism_base_t::acquire_credentials (char * service_name_, gss name_buf.length = strlen ((char *) name_buf.value) + 1; maj_stat = gss_import_name (&min_stat, &name_buf, - gss_nt_service_name, &server_name); + GSS_C_NT_HOSTBASED_SERVICE, &server_name); if (maj_stat != GSS_S_COMPLETE) return -1; diff --git a/src/gssapi_mechanism_base.hpp b/src/gssapi_mechanism_base.hpp index 170f9a32..1f402f98 100644 --- a/src/gssapi_mechanism_base.hpp +++ b/src/gssapi_mechanism_base.hpp @@ -24,7 +24,9 @@ #ifdef HAVE_LIBGSSAPI_KRB5 +#ifndef ZMQ_HAVE_FREEBSD #include +#endif #include #include "mechanism.hpp"