62 lines
1.8 KiB
C
Raw Normal View History

2015-11-17 17:22:37 +01:00
#ifndef HEADER_CURL_SMB_H
#define HEADER_CURL_SMB_H
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
2023-07-02 19:51:09 +02:00
* Copyright (C) Bill Nagel <wnagel@tycoint.com>, Exacq Technologies
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
2015-11-17 17:22:37 +01:00
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
2021-09-14 00:13:48 +02:00
* are also available at https://curl.se/docs/copyright.html.
2015-11-17 17:22:37 +01:00
*
* 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.
*
2022-11-16 20:14:03 +01:00
* SPDX-License-Identifier: curl
*
2015-11-17 17:22:37 +01:00
***************************************************************************/
enum smb_conn_state {
SMB_NOT_CONNECTED = 0,
SMB_CONNECTING,
SMB_NEGOTIATE,
SMB_SETUP,
SMB_CONNECTED
};
struct smb_conn {
enum smb_conn_state state;
char *user;
char *domain;
2018-10-28 12:09:07 +01:00
char *share;
2015-11-17 17:22:37 +01:00
unsigned char challenge[8];
unsigned int session_key;
unsigned short uid;
char *recv_buf;
2024-07-09 14:46:46 +02:00
char *send_buf;
2015-11-17 17:22:37 +01:00
size_t upload_size;
size_t send_size;
size_t sent;
size_t got;
};
2021-09-14 00:13:48 +02:00
#if !defined(CURL_DISABLE_SMB) && defined(USE_CURL_NTLM_CORE) && \
(SIZEOF_CURL_OFF_T > 4)
2015-11-17 17:22:37 +01:00
extern const struct Curl_handler Curl_handler_smb;
extern const struct Curl_handler Curl_handler_smbs;
2021-09-14 00:13:48 +02:00
#endif /* CURL_DISABLE_SMB && USE_CURL_NTLM_CORE &&
SIZEOF_CURL_OFF_T > 4 */
2015-11-17 17:22:37 +01:00
#endif /* HEADER_CURL_SMB_H */