2 Unix SMB/CIFS implementation.
4 Generic Authentication Interface (socket wrapper)
6 Copyright (C) Andrew Bartlett <abartlet@samba.org> 2006
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 struct gensec_security;
23 struct socket_context;
25 NTSTATUS gensec_socket_init(struct gensec_security *gensec_security,
26 struct socket_context *current_socket,
27 struct event_context *ev,
28 void (*recv_handler)(void *, uint16_t),
30 struct socket_context **new_socket);
31 /* These functions are for use here only (public because SPNEGO must
32 * use them for recursion) */
33 NTSTATUS gensec_wrap_packets(struct gensec_security *gensec_security,
37 size_t *len_processed);
38 /* These functions are for use here only (public because SPNEGO must
39 * use them for recursion) */
40 NTSTATUS gensec_unwrap_packets(struct gensec_security *gensec_security,
44 size_t *len_processed);
46 /* These functions are for use here only (public because SPNEGO must
47 * use them for recursion) */
48 NTSTATUS gensec_packet_full_request(struct gensec_security *gensec_security,
49 DATA_BLOB blob, size_t *size);