CVE-2022-2031 gensec_krb5: Add helper function to check if client sent an initial...
[Samba.git] / source4 / auth / gensec / gensec_krb5_helpers.h
blobd7b694dad0c1174c00b25192823ce8b6962b68b9
1 /*
2 Unix SMB/CIFS implementation.
4 Kerberos backend for GENSEC
6 Copyright (C) Andrew Bartlett <abartlet@samba.org> 2004
7 Copyright (C) Andrew Tridgell 2001
8 Copyright (C) Luke Howard 2002-2003
9 Copyright (C) Stefan Metzmacher 2004-2005
11 This program is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 3 of the License, or
14 (at your option) any later version.
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with this program. If not, see <http://www.gnu.org/licenses/>.
26 struct gensec_security;
29 * Returns 1 if our ticket has the initial flag set, 0 if not, and -1 in case of
30 * error.
32 int gensec_krb5_initial_ticket(const struct gensec_security *gensec_security);