util: Move asn1 to lib/util to trim down the number of subsystems.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 15 Jan 2008 00:04:38 +0000 (01:04 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 15 Jan 2008 00:04:38 +0000 (01:04 +0100)
(This used to be commit 44e1cfd2d0ef62e4ee541cec00581a7151d951b3)

12 files changed:
source4/auth/gensec/spnego_parse.c
source4/auth/kerberos/gssapi_parse.c
source4/ldap_server/ldap_server.c
source4/lib/util/asn1.c [moved from source4/libcli/util/asn1.c with 99% similarity]
source4/lib/util/asn1.h [moved from source4/libcli/util/asn_1.h with 97% similarity]
source4/lib/util/config.mk
source4/libcli/cldap/cldap.h
source4/libcli/config.mk
source4/libcli/ldap/ldap.c
source4/libcli/ldap/ldap_client.c
source4/libcli/ldap/ldap_controls.c
source4/librpc/ndr/ndr_drsuapi.c

index 37f4f12278ad85964f873ab4a3eb6403fe0b8e31..8012a83ba8d59149e9d49355f90e89bb5696828a 100644 (file)
@@ -23,7 +23,7 @@
 #include "includes.h"
 #include "auth/gensec/spnego.h"
 #include "auth/gensec/gensec.h"
-#include "libcli/util/asn_1.h"
+#include "lib/util/asn1.h"
 
 static bool read_negTokenInit(struct asn1_data *asn1, TALLOC_CTX *mem_ctx,
                              struct spnego_negTokenInit *token)
index 4b1b178238773fd8b49479eda0ba67f77577df50..77e907d3fae6217a766b6aee0650f64ca77aa0a0 100644 (file)
@@ -22,7 +22,7 @@
 */
 
 #include "includes.h"
-#include "libcli/util/asn_1.h"
+#include "lib/util/asn1.h"
 #include "auth/gensec/gensec.h"
 
 /*
index fcc9435ead11a0ab65eb11b0879a261db754a5b2..8380775c287dfd6a580ab88b390733c0a4dee981 100644 (file)
@@ -27,7 +27,7 @@
 #include "auth/credentials/credentials.h"
 #include "librpc/gen_ndr/ndr_samr.h"
 #include "lib/util/dlinklist.h"
-#include "libcli/util/asn_1.h"
+#include "lib/util/asn1.h"
 #include "ldap_server/ldap_server.h"
 #include "smbd/service_task.h"
 #include "smbd/service_stream.h"
similarity index 99%
rename from source4/libcli/util/asn1.c
rename to source4/lib/util/asn1.c
index aad55382d9b31613546ce7a150a99e4f5cd618ec..4756c0640df391e3a196c1d48ff47d4db451a6c9 100644 (file)
@@ -18,7 +18,7 @@
 */
 
 #include "includes.h"
-#include "libcli/util/asn_1.h"
+#include "lib/util/asn1.h"
 
 /* allocate an asn1 structure */
 struct asn1_data *asn1_init(TALLOC_CTX *mem_ctx)
similarity index 97%
rename from source4/libcli/util/asn_1.h
rename to source4/lib/util/asn1.h
index 612a8a932fd855a33c307978e0325bd51f9f5d33..34aa1e2cb9caee6a597feecfd3dbc3101122a95d 100644 (file)
@@ -49,6 +49,6 @@ struct asn1_data {
 
 #define ASN1_MAX_OIDS 20
 
-#include "libcli/util/asn1_proto.h"
+#include "lib/util/asn1_proto.h"
 
 #endif /* _ASN_1_H */
index 01ad14aa95be880e86999515b603165e037e2175..53a55bf7afca5e268affdddc3cefdf2273daf497 100644 (file)
@@ -34,6 +34,11 @@ PUBLIC_DEPENDENCIES = \
                SOCKET_WRAPPER EXT_NSL \
                CHARSET EXECINFO
 
+[SUBSYSTEM::ASN1_UTIL]
+PUBLIC_PROTO_HEADER = asn1_proto.h
+PUBLIC_HEADERS = asn1.h
+OBJ_FILES = asn1.o
+
 [SUBSYSTEM::UNIX_PRIVS]
 PRIVATE_PROTO_HEADER = unix_privs.h
 OBJ_FILES = unix_privs.o
index 8aa98f03312eeaf8c16a70ad22179d5eac434f86..7a222e06524a8c015dc5fe38bc44409cd8d4f0fb 100644 (file)
@@ -19,7 +19,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#include "libcli/util/asn_1.h"
+#include "lib/util/asn1.h"
 #include "librpc/gen_ndr/nbt.h"
 
 struct ldap_message;
index adb51c6c9aeea933c14822792bfde67d769d0c0d..eb3c56cf7f6f7a4b8ab219450ef9141789d140e1 100644 (file)
@@ -8,11 +8,6 @@ OBJ_FILES = util/doserr.o \
                    util/errormap.o \
                    util/nterr.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
 OBJ_FILES = util/clilsa.o
index 586f2fa6531ca49200fb9720858d15c9ce8b2fe2..00a0631753a276c0f076646e28c733e93dd9dbf0 100644 (file)
@@ -23,7 +23,7 @@
 */
 
 #include "includes.h"
-#include "libcli/util/asn_1.h"
+#include "lib/util/asn1.h"
 #include "libcli/ldap/ldap.h"
 
 
index 6b8a7a3f286cc3c791aead109c1039296ad9b697..d99851ee15be8db75e60d79ae10421be9081f65e 100644 (file)
@@ -23,7 +23,7 @@
 */
 
 #include "includes.h"
-#include "libcli/util/asn_1.h"
+#include "lib/util/asn1.h"
 #include "lib/util/dlinklist.h"
 #include "lib/events/events.h"
 #include "lib/socket/socket.h"
index 34e5cccf75bb6ab02f100e59c78972dbcc639849..3b94580033729aa2edf1ccd849a6864f5e0990a9 100644 (file)
@@ -20,7 +20,7 @@
 */
 
 #include "includes.h"
-#include "libcli/util/asn_1.h"
+#include "lib/util/asn1.h"
 #include "libcli/ldap/ldap.h"
 #include "lib/ldb/include/ldb.h"
 
index dedcb0601d291c1a8343a75d5bee4df2420698d6..9f755ffaabbe87a9ddc2aba742bf55a8b16f9a43 100644 (file)
@@ -23,7 +23,7 @@
 #include "includes.h"
 #include "librpc/gen_ndr/ndr_drsuapi.h"
 #include "librpc/gen_ndr/ndr_misc.h"
-#include "libcli/util/asn_1.h"
+#include "lib/util/asn1.h"
 
 void ndr_print_drsuapi_DsReplicaObjectListItem(struct ndr_print *ndr, const char *name, 
                                               const struct drsuapi_DsReplicaObjectListItem *r)