1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

auth/kerberos: Move gssapi_parse.c to the top level

This will help with writing a gensec module for the s3 gse layer.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett 2011-12-27 22:00:22 +11:00
parent 1baf916399
commit 9a085b0b80
4 changed files with 12 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* /*
Unix SMB/CIFS implementation. Unix SMB/CIFS implementation.
simple GSSAPI wrappers simple GSSAPI wrappers
@ -6,17 +6,17 @@
Copyright (C) Andrew Tridgell 2001 Copyright (C) Andrew Tridgell 2001
Copyright (C) Jim McDonough <jmcd@us.ibm.com> 2002 Copyright (C) Jim McDonough <jmcd@us.ibm.com> 2002
Copyright (C) Luke Howard 2003 Copyright (C) Luke Howard 2003
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
@ -117,5 +117,3 @@ bool gensec_gssapi_check_oid(const DATA_BLOB *blob, const char *oid)
return ret; return ret;
} }

View File

@ -1,3 +1,3 @@
bld.SAMBA_SUBSYSTEM('KRB5_PAC', bld.SAMBA_SUBSYSTEM('KRB5_PAC',
source='gssapi_pac.c kerberos_pac.c', source='gssapi_pac.c kerberos_pac.c gssapi_parse.c',
deps='gssapi_krb5 krb5 ndr-krb5pac com_err') deps='gssapi_krb5 krb5 ndr-krb5pac com_err asn1util')

View File

@ -77,3 +77,7 @@ NTSTATUS gssapi_obtain_pac_blob(TALLOC_CTX *mem_ctx,
gss_ctx_id_t gssapi_context, gss_ctx_id_t gssapi_context,
gss_name_t gss_client_name, gss_name_t gss_client_name,
DATA_BLOB *pac_data); DATA_BLOB *pac_data);
DATA_BLOB gensec_gssapi_gen_krb5_wrap(TALLOC_CTX *mem_ctx, const DATA_BLOB *ticket, const uint8_t tok_id[2]);
bool gensec_gssapi_parse_krb5_wrap(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob, DATA_BLOB *ticket, uint8_t tok_id[2]);
bool gensec_gssapi_check_oid(const DATA_BLOB *blob, const char *oid);

View File

@ -1,10 +1,10 @@
#!/usr/bin/env python #!/usr/bin/env python
bld.SAMBA_LIBRARY('authkrb5', bld.SAMBA_LIBRARY('authkrb5',
source='kerberos.c kerberos_heimdal.c kerberos_pac.c gssapi_parse.c krb5_init_context.c keytab_copy.c', source='kerberos.c kerberos_heimdal.c kerberos_pac.c krb5_init_context.c keytab_copy.c',
autoproto='proto.h', autoproto='proto.h',
public_deps='krb5 ndr-krb5pac samba_socket LIBCLI_RESOLVE com_err asn1', public_deps='krb5 ndr-krb5pac samba_socket LIBCLI_RESOLVE com_err asn1',
deps='asn1util auth_sam_reply tevent LIBPACKET ndr ldb KRB5_WRAP errors', deps='auth_sam_reply tevent LIBPACKET ndr ldb KRB5_WRAP errors',
private_library=True private_library=True
) )