Deleted Added
full compact
smb_lib.h (87866) smb_lib.h (88282)
1/*
2 * Copyright (c) 2000-2001 Boris Popov
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
1/*
2 * Copyright (c) 2000-2001 Boris Popov
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * $Id: smb_lib.h,v 1.22 2001/04/10 05:37:22 bp Exp $
32 * $Id: smb_lib.h,v 1.24 2001/12/20 15:19:43 bp Exp $
33 */
34#ifndef _NETSMB_SMB_LIB_H_
35#define _NETSMB_SMB_LIB_H_
36
37#include <netsmb/smb.h>
38#include <netsmb/smb_dev.h>
39
33 */
34#ifndef _NETSMB_SMB_LIB_H_
35#define _NETSMB_SMB_LIB_H_
36
37#include <netsmb/smb.h>
38#include <netsmb/smb_dev.h>
39
40#ifndef SMB_CFG_FILE
40#define SMB_CFG_FILE "/usr/local/etc/nsmb.conf"
41#define SMB_CFG_FILE "/usr/local/etc/nsmb.conf"
42#endif
41
42#define STDPARAM_ARGS 'A':case 'B':case 'C':case 'E':case 'I': \
43 case 'L':case 'M': \
44 case 'N':case 'U':case 'R':case 'S':case 'T': \
45 case 'W':case 'O':case 'P'
46
47#define STDPARAM_OPT "A:BCE:I:L:M:NO:P:U:R:S:T:W:"
48

--- 154 unchanged lines hidden (view full) ---

203void smb_rq_wend(struct smb_rq *);
204int smb_rq_simple(struct smb_rq *);
205int smb_rq_dmem(struct mbdata *, const char *, size_t);
206int smb_rq_dstring(struct mbdata *, const char *);
207
208int smb_t2_request(struct smb_ctx *, int, int, const char *,
209 int, void *, int, void *, int *, void *, int *, void *);
210
43
44#define STDPARAM_ARGS 'A':case 'B':case 'C':case 'E':case 'I': \
45 case 'L':case 'M': \
46 case 'N':case 'U':case 'R':case 'S':case 'T': \
47 case 'W':case 'O':case 'P'
48
49#define STDPARAM_OPT "A:BCE:I:L:M:NO:P:U:R:S:T:W:"
50

--- 154 unchanged lines hidden (view full) ---

205void smb_rq_wend(struct smb_rq *);
206int smb_rq_simple(struct smb_rq *);
207int smb_rq_dmem(struct mbdata *, const char *, size_t);
208int smb_rq_dstring(struct mbdata *, const char *);
209
210int smb_t2_request(struct smb_ctx *, int, int, const char *,
211 int, void *, int, void *, int *, void *, int *, void *);
212
211void smb_simplecrypt(char *dst, const char *src);
213char* smb_simplecrypt(char *dst, const char *src);
212int smb_simpledecrypt(char *dst, const char *src);
213
214int m_getm(struct mbuf *, size_t, struct mbuf **);
215int m_lineup(struct mbuf *, struct mbuf **);
216int mb_init(struct mbdata *, size_t);
217int mb_initm(struct mbdata *, struct mbuf *);
218int mb_done(struct mbdata *);
219int mb_fit(struct mbdata *mbp, size_t size, char **pp);

--- 37 unchanged lines hidden ---
214int smb_simpledecrypt(char *dst, const char *src);
215
216int m_getm(struct mbuf *, size_t, struct mbuf **);
217int m_lineup(struct mbuf *, struct mbuf **);
218int mb_init(struct mbdata *, size_t);
219int mb_initm(struct mbdata *, struct mbuf *);
220int mb_done(struct mbdata *);
221int mb_fit(struct mbdata *mbp, size_t size, char **pp);

--- 37 unchanged lines hidden ---