]> granicus.if.org Git - curl/commitdiff
sasl: Moved Curl_sasl_gssapi_cleanup() definition into header file
authorSteve Holme <steve_holme@hotmail.com>
Fri, 14 Nov 2014 21:16:08 +0000 (21:16 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Fri, 14 Nov 2014 22:11:48 +0000 (22:11 +0000)
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.

lib/curl_sasl.c
lib/curl_sasl.h
lib/curl_sasl_sspi.c

index 44efd91491f94a0de799aa3670ee71c5d0ec1292..3600fa2fe3ed1f355cdcb9b7bd35df4afae7370d 100644 (file)
 /* 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)
index 74f44650094ea5366f63caa6f23f8300e6bca71d..26d94296c1333ee42d413194f8537b1493fdf385 100644 (file)
@@ -173,6 +173,9 @@ CURLcode Curl_sasl_create_gssapi_security_message(struct SessionHandle *data,
                                                   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
index ffc569c096ff1db16130874f6d950103d46dc72c..b07623fb9bc4fb2790756dafa367213b1533fe74 100644 (file)
 /* 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()
  *
@@ -1010,6 +1006,16 @@ CURLcode Curl_sasl_create_gssapi_security_message(struct SessionHandle *data,
   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 */