diff options
author | Steve Holme <steve_holme@hotmail.com> | 2015-01-18 17:12:28 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2015-01-18 15:42:26 +0000 |
commit | 9c4fa400cfd076d66671c38c306220196f40ab15 (patch) | |
tree | 141fca13b39bb4beb1185b0f9314232f0bbc2159 | |
parent | b9fd757d03c990cbd859ec93bfd943ef3503176a (diff) | |
download | curl-9c4fa400cfd076d66671c38c306220196f40ab15.tar.gz |
sasl_gssapi: Make Curl_sasl_build_gssapi_spn() public
-rw-r--r-- | lib/curl_sasl.h | 6 | ||||
-rw-r--r-- | lib/curl_sasl_gssapi.c | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/curl_sasl.h b/lib/curl_sasl.h index 41ef859a2..369751cee 100644 --- a/lib/curl_sasl.h +++ b/lib/curl_sasl.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 2012 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 2012 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -80,6 +80,10 @@ char *Curl_sasl_build_spn(const char *service, const char *instance); TCHAR *Curl_sasl_build_spn(const char *service, const char *instance); #endif +#if defined(HAVE_GSSAPI) +char *Curl_sasl_build_gssapi_spn(const char *service, const char *host); +#endif + /* This is used to generate a base64 encoded PLAIN authentication message */ CURLcode Curl_sasl_create_plain_message(struct SessionHandle *data, const char *userp, diff --git a/lib/curl_sasl_gssapi.c b/lib/curl_sasl_gssapi.c index cee00e10a..46158532e 100644 --- a/lib/curl_sasl_gssapi.c +++ b/lib/curl_sasl_gssapi.c @@ -54,7 +54,7 @@ * * Returns a pointer to the newly allocated SPN. */ -static char *Curl_sasl_build_gssapi_spn(const char *service, const char *host) +char *Curl_sasl_build_gssapi_spn(const char *service, const char *host) { /* Generate and return our SPN */ return aprintf("%s@%s", service, host); |