Add comments explaining exactly *why* we don't check FILE_READ_ATTRIBUTES when evalua...
[Samba/gbeck.git] / source4 / auth / gensec / gensec_tstream.h
blob18389d45a3737e1d499ae4be6ec5baf0185dcf50
1 /*
2 Unix SMB/CIFS implementation.
4 tstream based generic authentication interface
6 Copyright (c) 2010 Stefan Metzmacher
7 Copyright (c) 2010 Andreas Schneider <asn@redhat.com>
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>.
23 #ifndef _GENSEC_TSTREAM_H_
24 #define _GENSEC_TSTREAM_H_
26 struct gensec_context;
27 struct tstream_context;
29 NTSTATUS _gensec_create_tstream(TALLOC_CTX *mem_ctx,
30 struct gensec_security *gensec_security,
31 struct tstream_context *plain_tstream,
32 struct tstream_context **gensec_tstream,
33 const char *location);
34 #define gensec_create_tstream(mem_ctx, gensec_security, \
35 plain_tstream, gensec_tstream) \
36 _gensec_create_tstream(mem_ctx, gensec_security, \
37 plain_tstream, gensec_tstream, \
38 __location__)
40 #endif /* _GENSEC_TSTREAM_H_ */