]> granicus.if.org Git - curl/commitdiff
sasl_gssapi: Make Curl_sasl_build_gssapi_spn() public
authorSteve Holme <steve_holme@hotmail.com>
Sun, 18 Jan 2015 17:12:28 +0000 (17:12 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 18 Jan 2015 15:42:26 +0000 (15:42 +0000)
lib/curl_sasl.h
lib/curl_sasl_gssapi.c

index 41ef859a2cbfd15ba0374bbfc827fb1253a3d4b7..369751ceea73c3bf086d7dc7af7e7693a76b9ff6 100644 (file)
@@ -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,
index cee00e10a162d9a1f7bd08c21b5930574748cda4..46158532e84fbad848ed333d3eacc0fa323e408c 100644 (file)
@@ -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);