mirror of
https://github.com/moparisthebest/curl
synced 2024-11-12 04:25:08 -05:00
sasl_gssapi: Make Curl_sasl_build_gssapi_spn() public
This commit is contained in:
parent
b9fd757d03
commit
9c4fa400cf
@ -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
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* 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);
|
TCHAR *Curl_sasl_build_spn(const char *service, const char *instance);
|
||||||
#endif
|
#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 */
|
/* This is used to generate a base64 encoded PLAIN authentication message */
|
||||||
CURLcode Curl_sasl_create_plain_message(struct SessionHandle *data,
|
CURLcode Curl_sasl_create_plain_message(struct SessionHandle *data,
|
||||||
const char *userp,
|
const char *userp,
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
*
|
*
|
||||||
* Returns a pointer to the newly allocated SPN.
|
* 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 */
|
/* Generate and return our SPN */
|
||||||
return aprintf("%s@%s", service, host);
|
return aprintf("%s@%s", service, host);
|
||||||
|
Loading…
Reference in New Issue
Block a user