auth/kerberos: Move gssapi_parse.c to the top level
authorAndrew Bartlett <abartlet@samba.org>
Tue, 27 Dec 2011 11:00:22 +0000 (22:00 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 28 Dec 2011 11:39:19 +0000 (22:39 +1100)
This will help with writing a gensec module for the s3 gse layer.

Andrew Bartlett

auth/kerberos/gssapi_parse.c [moved from source4/auth/kerberos/gssapi_parse.c with 99% similarity]
auth/kerberos/wscript_build
libcli/auth/krb5_wrap.h
source4/auth/kerberos/wscript_build

similarity index 99%
rename from source4/auth/kerberos/gssapi_parse.c
rename to auth/kerberos/gssapi_parse.c
index b538d822d130c47810b208a4597d5ecb90f13f72..6e9eddced660ecdf852f95247bb7296b68b91c9a 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Unix SMB/CIFS implementation.
 
    simple GSSAPI wrappers
@@ -6,17 +6,17 @@
    Copyright (C) Andrew Tridgell 2001
    Copyright (C) Jim McDonough <jmcd@us.ibm.com> 2002
    Copyright (C) Luke Howard     2003
-   
+
    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
    the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
-   
+
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
-   
+
    You should have received a copy of the GNU General Public License
    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;
 }
-
-
index 2421b1654f83a7b4e1153595f6d5aad9a47c41f6..fe38b76c0ce59108da3323765d426842801de635 100644 (file)
@@ -1,3 +1,3 @@
 bld.SAMBA_SUBSYSTEM('KRB5_PAC',
-                    source='gssapi_pac.c kerberos_pac.c',
-                    deps='gssapi_krb5 krb5 ndr-krb5pac com_err')
+                    source='gssapi_pac.c kerberos_pac.c gssapi_parse.c',
+                    deps='gssapi_krb5 krb5 ndr-krb5pac com_err asn1util')
index 82769aede9341bd5ccc12d84800d00f9d011805b..affb892b574dcf3c9313e66beeab0536ee7cb643 100644 (file)
@@ -77,3 +77,7 @@ NTSTATUS gssapi_obtain_pac_blob(TALLOC_CTX *mem_ctx,
                                gss_ctx_id_t gssapi_context,
                                gss_name_t gss_client_name,
                                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);
index 90e8560573f5d5bc3ae6e5c96505557ee0e5c1a8..989614e8046ab89c78afde9e9e38512de1de703b 100644 (file)
@@ -1,10 +1,10 @@
 #!/usr/bin/env python
 
 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',
                   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
                   )