Rather than define the function as extern in the source files that use
it, moved the function declaration into the SASL header file just like
the Digest and NTLM clean-up functions.
Additionally, added a function description comment block.
/* The last #include file should be: */
#include "memdebug.h"
-#if defined(USE_KRB5)
-extern void Curl_sasl_gssapi_cleanup(struct kerberos5data *krb5);
-#endif
-
#if !defined(CURL_DISABLE_CRYPTO_AUTH) && !defined(USE_WINDOWS_SSPI)
#define DIGEST_QOP_VALUE_AUTH (1 << 0)
#define DIGEST_QOP_VALUE_AUTH_INT (1 << 1)
struct kerberos5data *krb5,
char **outptr,
size_t *outlen);
+
+/* This is used to clean up the gssapi specific data */
+void Curl_sasl_gssapi_cleanup(struct kerberos5data *krb5);
#endif /* USE_KRB5 */
/* This is used to generate a base64 encoded XOAUTH2 authentication message
/* The last #include file should be: */
#include "memdebug.h"
-#if defined(USE_KRB5)
-void Curl_sasl_gssapi_cleanup(struct kerberos5data *krb5);
-#endif
-
/*
* Curl_sasl_build_spn()
*
return result;
}
+/*
+* Curl_sasl_gssapi_cleanup()
+*
+* This is used to clean up the gssapi specific data.
+*
+* Parameters:
+*
+* krb5 [in/out] - The kerberos 5 data struct being cleaned up.
+*
+*/
void Curl_sasl_gssapi_cleanup(struct kerberos5data *krb5)
{
/* Free our security context */