aboutsummaryrefslogtreecommitdiff
path: root/lib/curl_ntlm_core.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-08-28 01:19:08 +0200
committerYang Tse <yangsita@gmail.com>2011-08-28 01:19:08 +0200
commit135f69405804ac9ea73491704be5dfa447a155b0 (patch)
tree5c473dbcc2b04e3d27b0a6b5130dfbe9b2060c47 /lib/curl_ntlm_core.h
parent260ee6b7bfbc4a49832a1e322d1cc5d9d3c33ddf (diff)
NTLM: move NTLM core specifics into curl_ntlm_core.[ch]
Diffstat (limited to 'lib/curl_ntlm_core.h')
-rw-r--r--lib/curl_ntlm_core.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/lib/curl_ntlm_core.h b/lib/curl_ntlm_core.h
new file mode 100644
index 000000000..ea855905f
--- /dev/null
+++ b/lib/curl_ntlm_core.h
@@ -0,0 +1,43 @@
+#ifndef HEADER_CURL_NTLM_CORE_H
+#define HEADER_CURL_NTLM_CORE_H
+/***************************************************************************
+ * _ _ ____ _
+ * Project ___| | | | _ \| |
+ * / __| | | | |_) | |
+ * | (__| |_| | _ <| |___
+ * \___|\___/|_| \_\_____|
+ *
+ * Copyright (C) 1998 - 2011, 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
+ * are also available at http://curl.haxx.se/docs/copyright.html.
+ *
+ * You may opt to use, copy, modify, merge, publish, distribute and/or sell
+ * copies of the Software, and permit persons to whom the Software is
+ * furnished to do so, under the terms of the COPYING file.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ***************************************************************************/
+
+#ifdef USE_NTLM
+
+void Curl_ntlm_core_lm_resp(const unsigned char *keys,
+ const unsigned char *plaintext,
+ unsigned char *results);
+
+void Curl_ntlm_core_mk_lm_hash(struct SessionHandle *data,
+ const char *password,
+ unsigned char *lmbuffer /* 21 bytes */);
+
+#if !defined(USE_WINDOWS_SSPI) && (USE_NTRESPONSES != 0)
+CURLcode Curl_ntlm_core_mk_nt_hash(struct SessionHandle *data,
+ const char *password,
+ unsigned char *ntbuffer /* 21 bytes */);
+#endif
+
+#endif /* USE_NTLM */
+
+#endif /* HEADER_CURL_NTLM_CORE_H */