r14724: Rearrange some source files, install more headers.
authorJelmer Vernooij <jelmer@samba.org>
Sat, 25 Mar 2006 18:47:47 +0000 (18:47 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:59:14 +0000 (13:59 -0500)
(This used to be commit 7146c1600f29c349e5bb78f810e7e170b535dd37)

14 files changed:
source4/dsdb/config.mk
source4/headermap.txt
source4/include/includes.h
source4/lib/util/util.h
source4/libcli/auth/config.mk
source4/libcli/auth/credentials.c
source4/libcli/auth/session.c
source4/libcli/auth/smbdes.c [moved from source4/libcli/util/smbdes.c with 100% similarity]
source4/libcli/config.mk
source4/libcli/ldap/config.mk
source4/libcli/ldap/ldap.h
source4/libcli/util/asn_1.h
source4/libcli/util/error.h [new file with mode: 0644]
source4/librpc/config.mk

index ba8da697e89a634ec84de0bb4032796184ef7fbf..b0ab2cda62c27962322c234a4db229155c18db77 100644 (file)
@@ -5,7 +5,8 @@ include samdb/ldb_modules/config.mk
 ################################################
 # Start SUBSYSTEM SAMDB
 [SUBSYSTEM::SAMDB]
-PRIVATE_PROTO_HEADER = samdb/samdb_proto.h
+PUBLIC_PROTO_HEADER = samdb/samdb_proto.h
+PUBLIC_HEADERS = samdb/samdb.h
 REQUIRED_SUBSYSTEMS = DB_WRAP LIBCLI_LDAP
 OBJ_FILES = \
                samdb/samdb.o \
index 4bce3fb6888c2b3505cfefef4214508c40429de8..5861c3a3c3efe52ecf1f94011b2dace0b4a1f3a5 100644 (file)
@@ -77,3 +77,7 @@ include/dlinklist.h: dlinklist.h
 version.h: samba/version.h
 param/proto.h: param/proto.h
 param/param.h: param.h
+dsdb/samdb/samdb.h: samdb.h
+dsdb/samdb/samdb_proto.h: samdb/proto.h
+libcli/util/asn_1.h: samba/asn1.h
+libcli/util/asn1_proto.h: samba/asn1/proto.h
index b87e6acff7b5f5b0b1e3dd2206aed02437604cb7..b8aebf2f148f80f9d217b3dba6a01eb736df1b97 100644 (file)
@@ -104,12 +104,10 @@ _PUBLIC_ void smb_panic(const char *why) NORETURN_ATTRIBUTE;
 #include "charset/charset.h"
 #include "util/util.h"
 #include "param/param.h"
-#include "libcli/util/nterr.h"
-#include "libcli/util/doserr.h"
 #include "librpc/gen_ndr/misc.h"
 
 struct smbcli_tree;
-#include "libcli/util/proto.h"
+#include "libcli/util/error.h"
 
 /* String routines */
 #include "util/safe_string.h"
index 1b48bafc94273a9b4f417f848fb243226a59bcfe..8a2a9163d65ebbcee936cbffb753b2937c9abfdd 100644 (file)
@@ -33,7 +33,6 @@
  */
 
 struct substitute_context;
-struct asn1_data;
 struct smbsrv_tcon;
 
 extern const char *logfile;
index 26e6913c186d90752efedf7ef3f8bc670a0d62e0..3f036fbfd4c67daa9378f974862b5e5730162ab2 100644 (file)
@@ -5,7 +5,8 @@ PUBLIC_HEADERS = credentials.h
 PRIVATE_PROTO_HEADER = proto.h
 OBJ_FILES = credentials.o \
                session.o \
-               smbencrypt.o 
+               smbencrypt.o \
+               smbdes.o
 REQUIRED_SUBSYSTEMS = \
                auth SCHANNELDB MSRPC_PARSE
 # End SUBSYSTEM LIBCLI_AUTH
index 3f055a657d5e65771b8b77aff5f032f0406a03cf..5bae30f580548b224a035ad531131e242468d15d 100644 (file)
@@ -25,6 +25,7 @@
 #include "system/time.h"
 #include "auth/auth.h"
 #include "lib/crypto/crypto.h"
+#include "libcli/auth/libcli_auth.h"
 
 /*
   initialise the credentials state for old-style 64 bit session keys
index 22146cbfb3c590349f268ff2451734c8d3aed8f3..afa7afbd0fbc34b747ad9fbb533b8c611b0b3960 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "libcli/auth/libcli_auth.h"
 
 /*
   encrypt or decrypt a blob of data using the user session key
index dbeae51807a860c3aa36800a4de1b3a0d207e82d..380beac287cce06879bd58ccc0005cd89abba613 100644 (file)
@@ -2,15 +2,18 @@ include auth/config.mk
 include ldap/config.mk
 include security/config.mk
 
-[SUBSYSTEM::LIBCLI_UTILS]
-PRIVATE_PROTO_HEADER = util/proto.h
-PUBLIC_HEADERS = util/nterr.h util/doserr.h util/nt_status.h
-OBJ_FILES = util/asn1.o \
-               util/doserr.o \
+[SUBSYSTEM::LIBSAMBA-ERRORS]
+PUBLIC_PROTO_HEADER = util/proto.h
+PUBLIC_HEADERS = util/error.h util/nterr.h util/doserr.h util/nt_status.h
+OBJ_FILES = util/doserr.o \
                util/errormap.o \
                util/clierror.o \
                util/nterr.o \
-               util/smbdes.o
+
+[SUBSYSTEM::ASN1_UTIL]
+PUBLIC_PROTO_HEADER = util/asn1_proto.h
+PUBLIC_HEADERS = util/asn_1.h
+OBJ_FILES = util/asn1.o
 
 [SUBSYSTEM::LIBCLI_LSA]
 PRIVATE_PROTO_HEADER = util/clilsa.h
@@ -100,7 +103,7 @@ PUBLIC_HEADERS = libcli.h
 VERSION = 0.0.1
 SO_VERSION = 0
 DESCRIPTION = SMB/CIFS client library
-REQUIRED_SUBSYSTEMS = LIBCLI_RAW LIBCLI_UTILS LIBCLI_AUTH \
+REQUIRED_SUBSYSTEMS = LIBCLI_RAW LIBSAMBA-ERRORS LIBCLI_AUTH \
        LIBCLI_SMB_COMPOSITE LIBCLI_NBT LIB_SECURITY LIBCLI_RESOLVE \
        LIBCLI_DGRAM LIBCLI_SMB2 LIBCLI_FINDDCS
 
index 624b2603ecc2eb13d9dee74fec9aec6978825893..f59da733ebcea84a795a1ca6af6cbcd3bc714f7d 100644 (file)
@@ -10,7 +10,7 @@ OBJ_FILES = ldap.o \
                ldap_ndr.o \
                ldap_ildap.o \
                ldap_controls.o
-REQUIRED_SUBSYSTEMS = LIBCLI_UTILS LIBEVENTS gensec SOCKET NDR_SAMR LIBTLS \
-                                         LIBPACKET
+REQUIRED_SUBSYSTEMS = LIBSAMBA-ERRORS LIBEVENTS gensec SOCKET NDR_SAMR LIBTLS \
+                                         LIBPACKET ASN1_UTIL
 # End SUBSYSTEM LIBCLI_LDAP
 #################################
index ba0f8018326bd8f98a04ecc7f8559e343f6e406c..30c5acc6fb516d6ada3ba914623788102e4a88a8 100644 (file)
@@ -250,6 +250,7 @@ struct ldap_message {
 struct event_context;
 struct cli_credentials;
 struct dom_sid;
+struct asn1_data;
 
 #include "libcli/ldap/ldap_proto.h"
 
index 2dc9bef06d99158df49d187fa20bf5bffa2a6eda..7033f92a7f9d2f074baf293947b397dee91192d8 100644 (file)
@@ -50,4 +50,6 @@ struct asn1_data {
 
 #define ASN1_MAX_OIDS 20
 
+#include "libcli/util/asn1_proto.h"
+
 #endif /* _ASN_1_H */
diff --git a/source4/libcli/util/error.h b/source4/libcli/util/error.h
new file mode 100644 (file)
index 0000000..4aa1ff6
--- /dev/null
@@ -0,0 +1,27 @@
+/* 
+   Unix SMB/CIFS implementation.   
+   Error handling code
+   
+   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 2 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, write to the Free Software
+   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+#ifndef _SAMBA_ERROR_H_
+#define _SAMBA_ERROR_H_
+
+#include "libcli/util/nterr.h"
+#include "libcli/util/doserr.h"
+#include "libcli/util/proto.h"
+
+#endif /* _SAMBA_ERROR_H */
index eb8039c126e170fd76e312814c3e6ccbbc682f63..e02937bead05ddaafa8deba3f587151abb368f30 100644 (file)
@@ -11,7 +11,7 @@ OBJ_FILES = \
                ndr/ndr_basic.o \
                ndr/ndr_string.o \
                ndr/ndr_misc.o
-REQUIRED_SUBSYSTEMS = LIBCLI_UTILS LIBTALLOC LIBSAMBA-UTIL
+REQUIRED_SUBSYSTEMS = LIBSAMBA-ERRORS LIBTALLOC LIBSAMBA-UTIL
 # End SUBSYSTEM LIBNDR
 ################################################