675118ede6b046c15c572d59b582ede0de97f9d1
[platform/upstream/curl.git] / lib / sasl_sspi.c
1 /***************************************************************************
2  *                                  _   _ ____  _
3  *  Project                     ___| | | |  _ \| |
4  *                             / __| | | | |_) | |
5  *                            | (__| |_| |  _ <| |___
6  *                             \___|\___/|_| \_\_____|
7  *
8  * Copyright (C) 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
9  *
10  * This software is licensed as described in the file COPYING, which
11  * you should have received as part of this distribution. The terms
12  * are also available at http://curl.haxx.se/docs/copyright.html.
13  *
14  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15  * copies of the Software, and permit persons to whom the Software is
16  * furnished to do so, under the terms of the COPYING file.
17  *
18  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19  * KIND, either express or implied.
20  *
21  * RFC2831 DIGEST-MD5 authentication
22  * RFC4422 Simple Authentication and Security Layer (SASL)
23  *
24  ***************************************************************************/
25
26 #include "curl_setup.h"
27
28 #if defined(USE_WINDOWS_SSPI)
29
30 #include <curl/curl.h>
31
32 /* The last #include file should be: */
33 #include "memdebug.h"
34
35 /*
36  * Curl_sasl_create_digest_md5_message()
37  *
38  * This is used to generate an already encoded DIGEST-MD5 response message
39  * ready for sending to the recipient.
40  *
41  * Parameters:
42  *
43  * data    [in]     - The session handle.
44  * chlg64  [in]     - Pointer to the base64 encoded challenge message.
45  * userp   [in]     - The user name.
46  * passdwp [in]     - The user's password.
47  * service [in]     - The service type such as www, smtp, pop or imap.
48  * outptr  [in/out] - The address where a pointer to newly allocated memory
49  *                    holding the result will be stored upon completion.
50  * outlen  [out]    - The length of the output message.
51  *
52  * Returns CURLE_OK on success.
53  */
54 CURLcode Curl_sasl_create_digest_md5_message(struct SessionHandle *data,
55                                              const char *chlg64,
56                                              const char *userp,
57                                              const char *passwdp,
58                                              const char *service,
59                                              char **outptr, size_t *outlen)
60 {
61   (void)data;
62   (void)chlg64;
63   (void)userp;
64   (void)passwdp;
65   (void)outptr;
66   (void)outlen;
67
68   return CURLE_NOT_BUILT_IN;
69 }
70
71 #endif /* USE_WINDOWS_SSPI */