From 241702cf9550dced55ab7d8afa1c3762f8777ca1 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 6 Jun 2011 16:25:08 -0700 Subject: [PATCH] Fix bug 8196 - Many (newer) header files don't have copyright / GPL header comments. Add missing GPL headers and (C) statements. --- auth/auth_sam_reply.h | 19 ++++++++ examples/libsmbclient/get_auth_data_fn.h | 3 + lib/compression/mszip.h | 3 + lib/crypto/arcfour.h | 19 ++++++++ lib/crypto/crc32.h | 22 +++++++++ lib/crypto/md4.h | 22 +++++++++ lib/crypto/md5.h | 19 ++++++++ lib/replace/hdr_replace.h | 25 +++++++++++ lib/replace/replace-test.h | 19 ++++++++ lib/replace/system/readline.h | 2 + lib/replace/win32_replace.h | 19 ++++++++ lib/talloc/talloc_testsuite.h | 19 ++++++++ lib/util/data_blob.h | 2 + lib/util/time.h | 2 + lib/util/util_ldb.h | 18 ++++++++ lib/util/util_tdb.h | 19 ++++++++ lib/util/wrap_xattr.h | 19 ++++++++ libcli/auth/libcli_auth.h | 2 + libcli/auth/msrpc_parse.h | 19 ++++++++ libcli/auth/proto.h | 19 ++++++++ libcli/ldap/ldap_ndr.h | 19 ++++++++ libcli/nbt/nbt_proto.h | 19 ++++++++ libcli/netlogon/ndr_netlogon_proto.h | 19 ++++++++ libcli/netlogon/netlogon_proto.h | 19 ++++++++ libcli/smbreadline/smbreadline.h | 19 ++++++++ libcli/util/error.h | 2 + libds/common/flag_mapping.h | 19 ++++++++ librpc/idl/idl_types.h | 23 ++++++++++ librpc/ndr/ndr_backupkey.h | 22 +++++++++ librpc/ndr/ndr_compression.h | 19 ++++++++ librpc/ndr/ndr_dns.h | 23 ++++++++++ librpc/ndr/ndr_spoolss_buf.h | 19 ++++++++ librpc/ndr/ndr_table.h | 19 ++++++++ nsswitch/pam_winbind.h | 22 +++++++++- nsswitch/winbind_client.h | 22 +++++++++ source3/auth/proto.h | 35 +++++++++++++++ source3/groupdb/proto.h | 26 +++++++++++ source3/include/ads.h | 20 +++++++++ source3/include/krb5_env.h | 23 ++++++++++ source3/include/krb5_protos.h | 23 ++++++++++ source3/include/mangle.h | 20 +++++++++ source3/include/smb_krb5.h | 19 ++++++++ source3/include/smb_ldap.h | 19 ++++++++ source3/intl/lang_tdb.h | 22 +++++++++ source3/lib/eventlog/proto.h | 26 +++++++++++ source3/lib/idmap_cache.h | 24 ++++++++++ source3/lib/netapi/examples/common.h | 23 +++++++++- source3/lib/netapi/libnetapi.h | 19 ++++++++ source3/lib/privileges.h | 23 ++++++++++ source3/libads/ads_ldap_protos.h | 23 ++++++++++ source3/libads/ads_proto.h | 35 +++++++++++++++ source3/libads/ads_status.h | 19 ++++++++ source3/libads/cldap.h | 23 ++++++++++ source3/libads/kerberos_proto.h | 33 ++++++++++++++ source3/libads/ldap_schema.h | 23 ++++++++++ source3/libgpo/gpo_proto.h | 23 ++++++++++ source3/libnet/libnet_join.h | 23 ++++++++++ source3/librpc/ndr/util.h | 21 +++++++++ source3/libsmb/clidgram.h | 23 ++++++++++ source3/libsmb/errormap_wbc.h | 23 ++++++++++ source3/libsmb/libsmb.h | 2 + source3/libsmb/nmblib.h | 23 ++++++++++ source3/libsmb/proto.h | 2 + source3/locking/proto.h | 25 +++++++++++ source3/nmbd/nmbd.h | 22 +++++++++ source3/nmbd/nmbd_proto.h | 29 ++++++++++++ source3/pam_smbpass/general.h | 23 ++++++++++ source3/pam_smbpass/support.h | 23 ++++++++++ source3/passdb/machine_sid.h | 25 +++++++++++ source3/passdb/proto.h | 39 +++++++++++++++++ source3/printing/load.h | 23 ++++++++++ source3/printing/pcap.h | 5 ++ source3/registry/reg_parse_internal.h | 2 + source3/rpc_client/cli_netlogon.h | 24 ++++++++++- source3/rpc_client/cli_spoolss.h | 23 ++++++++++ source3/rpc_client/init_lsa.h | 23 ++++++++++ source3/rpc_client/init_netlogon.h | 23 ++++++++++ source3/rpc_client/init_samr.h | 23 ++++++++++ source3/rpc_client/init_spoolss.h | 23 +++++++++- source3/rpc_client/util_netlogon.h | 23 ++++++++++ source3/rpc_server/srv_access_check.h | 23 ++++++++++ source3/smbd/proto.h | 48 +++++++++++++++++++++ source3/smbd/smbd.h | 2 + source3/winbindd/idmap_proto.h | 29 ++++++++++++ source4/dsdb/common/dsdb_dn.h | 22 +++++++++ source4/dsdb/samdb/ldb_modules/password_modules.h | 22 +++++++++ source4/lib/events/events.h | 19 ++++++++ source4/lib/ldb-samba/ldif_handlers.h | 19 ++++++++ source4/lib/ldb/ldb_map/ldb_map_private.h | 23 ++++++++++ source4/lib/ldb/ldb_tdb/ldb_tdb.h | 23 ++++++++++ source4/libcli/raw/signing.h | 2 +- source4/ntvfs/cifs_posix_cli/cifsposix.h | 22 +++++++++ source4/ntvfs/simple/svfs.h | 22 +++++++++ source4/torture/basic/cxd_known.h | 23 ++++++++++ 94 files changed, 1866 insertions(+), 5 deletions(-) diff --git a/auth/auth_sam_reply.h b/auth/auth_sam_reply.h index dea6501..0a97296 100644 --- a/auth/auth_sam_reply.h +++ b/auth/auth_sam_reply.h @@ -1,6 +1,25 @@ #ifndef __AUTH_AUTH_SAM_REPLY_H__ #define __AUTH_AUTH_SAM_REPLY_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2001 Samba Team. + + 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 . +*/ + #undef _PRINTF_ATTRIBUTE #define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2) /* this file contains prototypes for functions that are private diff --git a/examples/libsmbclient/get_auth_data_fn.h b/examples/libsmbclient/get_auth_data_fn.h index 6b91c97..92015a5 100644 --- a/examples/libsmbclient/get_auth_data_fn.h +++ b/examples/libsmbclient/get_auth_data_fn.h @@ -1,3 +1,5 @@ +#ifndef __LIBSMBCLIENT_GET_AUTH_DATA_DN_H__ +#define __LIBSMBCLIENT_GET_AUTH_DATA_DN_H__ #include static void @@ -80,3 +82,4 @@ get_auth_data_fn(const char * pServer, krb5_set = 1; } +#endif diff --git a/lib/compression/mszip.h b/lib/compression/mszip.h index bb835f2..0f183ef 100644 --- a/lib/compression/mszip.h +++ b/lib/compression/mszip.h @@ -1,3 +1,5 @@ +#ifndef __LIB_COMPRESSION_MSZIP_H__ +#define __LIB_COMPRESSION_MSZIP_H__ /* mszip decompression - based on cabextract.c code from * Stuart Caie * @@ -31,3 +33,4 @@ struct decomp_state *ZIPdecomp_state(TALLOC_CTX *mem_ctx); #define DECR_INPUT (5) #define DECR_OUTPUT (6) int ZIPdecompress(struct decomp_state *decomp_state, DATA_BLOB *inbuf, DATA_BLOB *outbuf); +#endif diff --git a/lib/crypto/arcfour.h b/lib/crypto/arcfour.h index a9f80c4..1753274 100644 --- a/lib/crypto/arcfour.h +++ b/lib/crypto/arcfour.h @@ -1,6 +1,25 @@ #ifndef ARCFOUR_HEADER_H #define ARCFOUR_HEADER_H +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + #include "../lib/util/data_blob.h" struct arcfour_state { diff --git a/lib/crypto/crc32.h b/lib/crypto/crc32.h index 7854abf..34b4352 100644 --- a/lib/crypto/crc32.h +++ b/lib/crypto/crc32.h @@ -1 +1,23 @@ +#ifndef __LIB_CRYPTO_CRC32_H__ +#define __LIB_CRYPTO_CRC32_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ uint32_t crc32_calc_buffer(const uint8_t *buf, size_t size); +#endif diff --git a/lib/crypto/md4.h b/lib/crypto/md4.h index 234e488..6811b21 100644 --- a/lib/crypto/md4.h +++ b/lib/crypto/md4.h @@ -1 +1,23 @@ +#ifndef __LIB_CRYPTO_MD4_H__ +#define __LIB_CRYPTO_MD4_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ void mdfour(uint8_t *out, const uint8_t *in, int n); +#endif diff --git a/lib/crypto/md5.h b/lib/crypto/md5.h index 4064d6f..e1dcbd3 100644 --- a/lib/crypto/md5.h +++ b/lib/crypto/md5.h @@ -5,6 +5,25 @@ #define HEADER_MD5_H #endif +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + struct MD5Context { uint32_t buf[4]; uint32_t bits[2]; diff --git a/lib/replace/hdr_replace.h b/lib/replace/hdr_replace.h index 6cfa50f..134e354 100644 --- a/lib/replace/hdr_replace.h +++ b/lib/replace/hdr_replace.h @@ -1,2 +1,27 @@ +#ifndef __LIB_REPLACE_HDR_REPLACE_H__ +#define __LIB_REPLACE_HDR_REPLACE_H__ + +/* + Unix SMB/CIFS implementation. + + Winbind daemon for ntdom nss module + + Copyright (C) Tim Potter 2000 + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . +*/ + /* this is a replacement header for a missing system header */ #include "replace.h" +#endif diff --git a/lib/replace/replace-test.h b/lib/replace/replace-test.h index 95fb7ab..8c299ba 100644 --- a/lib/replace/replace-test.h +++ b/lib/replace/replace-test.h @@ -1,6 +1,25 @@ #ifndef __LIB_REPLACE_REPLACE_TEST_H__ #define __LIB_REPLACE_REPLACE_TEST_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . +*/ + bool torture_local_replace(struct torture_context *ctx); int libreplace_test_strptime(void); int test_readdir_os2_delete(void); diff --git a/lib/replace/system/readline.h b/lib/replace/system/readline.h index e6b8fb9..439b533 100644 --- a/lib/replace/system/readline.h +++ b/lib/replace/system/readline.h @@ -3,6 +3,8 @@ /* Unix SMB/CIFS implementation. + (C) 2001 Samba Team. + Readline wrappers ** NOTE! The following LGPL license applies to the replace diff --git a/lib/replace/win32_replace.h b/lib/replace/win32_replace.h index 9901e72..98b9c5b 100644 --- a/lib/replace/win32_replace.h +++ b/lib/replace/win32_replace.h @@ -1,6 +1,25 @@ #ifndef _WIN32_REPLACE_H #define _WIN32_REPLACE_H +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . +*/ + #ifdef HAVE_WINSOCK2_H #include #endif diff --git a/lib/talloc/talloc_testsuite.h b/lib/talloc/talloc_testsuite.h index acb9701..21607f1 100644 --- a/lib/talloc/talloc_testsuite.h +++ b/lib/talloc/talloc_testsuite.h @@ -1,6 +1,25 @@ #ifndef __LIB_TALLOC_TALLOC_TESTSUITE_H__ #define __LIB_TALLOC_TALLOC_TESTSUITE_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + struct torture_context; bool torture_local_talloc(struct torture_context *tctx); diff --git a/lib/util/data_blob.h b/lib/util/data_blob.h index 83e6cd5..c3da975 100644 --- a/lib/util/data_blob.h +++ b/lib/util/data_blob.h @@ -2,6 +2,8 @@ Unix SMB/CIFS implementation. DATA BLOB + (C) 2011 Samba Team. + 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 diff --git a/lib/util/time.h b/lib/util/time.h index 3a40634..d354896 100644 --- a/lib/util/time.h +++ b/lib/util/time.h @@ -2,6 +2,8 @@ Unix SMB/CIFS implementation. time utility functions + (C) 2011 Samba Team. + 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 diff --git a/lib/util/util_ldb.h b/lib/util/util_ldb.h index d2bc3b0..5257b65 100644 --- a/lib/util/util_ldb.h +++ b/lib/util/util_ldb.h @@ -1,6 +1,24 @@ #ifndef __LIB_UTIL_UTIL_LDB_H__ #define __LIB_UTIL_UTIL_LDB_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . +*/ struct ldb_dn; /* The following definitions come from lib/util/util_ldb.c */ diff --git a/lib/util/util_tdb.h b/lib/util/util_tdb.h index c11a347..24d8f48 100644 --- a/lib/util/util_tdb.h +++ b/lib/util/util_tdb.h @@ -1,6 +1,25 @@ #ifndef _____LIB_UTIL_UTIL_TDB_H__ #define _____LIB_UTIL_UTIL_TDB_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + /*************************************************************** Make a TDB_DATA and keep the const warning in one place ****************************************************************/ diff --git a/lib/util/wrap_xattr.h b/lib/util/wrap_xattr.h index 64b28d2..5dc5d28 100644 --- a/lib/util/wrap_xattr.h +++ b/lib/util/wrap_xattr.h @@ -1,6 +1,25 @@ #ifndef __LIB_UTIL_WRAP_XATTR_H__ #define __LIB_UTIL_WRAP_XATTR_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + ssize_t wrap_fgetxattr(int fd, const char *name, void *value, size_t size); ssize_t wrap_getxattr(const char *path, const char *name, void *value, size_t size); int wrap_fsetxattr(int fd, const char *name, void *value, size_t size, int flags); diff --git a/libcli/auth/libcli_auth.h b/libcli/auth/libcli_auth.h index c5c7a7b..6ee7e9d 100644 --- a/libcli/auth/libcli_auth.h +++ b/libcli/auth/libcli_auth.h @@ -1,6 +1,8 @@ /* samba -- Unix SMB/CIFS implementation. + (C) 2011 Samba Team. + 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 diff --git a/libcli/auth/msrpc_parse.h b/libcli/auth/msrpc_parse.h index d976a95..be49252 100644 --- a/libcli/auth/msrpc_parse.h +++ b/libcli/auth/msrpc_parse.h @@ -1,6 +1,25 @@ #ifndef _LIBCLI_AUTH_MSRPC_PARSE_H__ #define _LIBCLI_AUTH_MSRPC_PARSE_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + #undef _PRINTF_ATTRIBUTE #define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2) diff --git a/libcli/auth/proto.h b/libcli/auth/proto.h index 34a0052..b561dc1 100644 --- a/libcli/auth/proto.h +++ b/libcli/auth/proto.h @@ -1,6 +1,25 @@ #ifndef _LIBCLI_AUTH_PROTO_H__ #define _LIBCLI_AUTH_PROTO_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + #undef _PRINTF_ATTRIBUTE #define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2) diff --git a/libcli/ldap/ldap_ndr.h b/libcli/ldap/ldap_ndr.h index df5ee47..2e95458 100644 --- a/libcli/ldap/ldap_ndr.h +++ b/libcli/ldap/ldap_ndr.h @@ -1,6 +1,25 @@ #ifndef __LIBCLI_LDAP_LDAP_NDR_H__ #define __LIBCLI_LDAP_LDAP_NDR_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + #include "librpc/gen_ndr/ndr_misc.h" char *ldap_encode_ndr_uint32(TALLOC_CTX *mem_ctx, uint32_t value); diff --git a/libcli/nbt/nbt_proto.h b/libcli/nbt/nbt_proto.h index b2e8d85..dee29ea 100644 --- a/libcli/nbt/nbt_proto.h +++ b/libcli/nbt/nbt_proto.h @@ -1,6 +1,25 @@ #ifndef _____LIBCLI_NBT_NBT_PROTO_H__ #define _____LIBCLI_NBT_NBT_PROTO_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + #undef _PRINTF_ATTRIBUTE #define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2) /* This file was automatically generated by mkproto.pl. DO NOT EDIT */ diff --git a/libcli/netlogon/ndr_netlogon_proto.h b/libcli/netlogon/ndr_netlogon_proto.h index ca61c16..666b918 100644 --- a/libcli/netlogon/ndr_netlogon_proto.h +++ b/libcli/netlogon/ndr_netlogon_proto.h @@ -1,6 +1,25 @@ #ifndef _____LIBCLI_NDR_NETLOGON_PROTO_H__ #define _____LIBCLI_NDR_NETLOGON_PROTO_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + #undef _PRINTF_ATTRIBUTE #define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2) /* This file was automatically generated by mkproto.pl. DO NOT EDIT */ diff --git a/libcli/netlogon/netlogon_proto.h b/libcli/netlogon/netlogon_proto.h index 53c7d00..88073e5 100644 --- a/libcli/netlogon/netlogon_proto.h +++ b/libcli/netlogon/netlogon_proto.h @@ -1,6 +1,25 @@ #ifndef _____LIBCLI_NETLOGON_PROTO_H__ #define _____LIBCLI_NETLOGON_PROTO_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + #undef _PRINTF_ATTRIBUTE #define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2) /* This file was automatically generated by mkproto.pl. DO NOT EDIT */ diff --git a/libcli/smbreadline/smbreadline.h b/libcli/smbreadline/smbreadline.h index 102106f..6554e2b 100644 --- a/libcli/smbreadline/smbreadline.h +++ b/libcli/smbreadline/smbreadline.h @@ -1,6 +1,25 @@ #ifndef __SMBREADLINE_H__ #define __SMBREADLINE_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + char *smb_readline(const char *prompt, void (*callback)(void), char **(completion_fn)(const char *text, int start, int end)); const char *smb_readline_get_line_buffer(void); diff --git a/libcli/util/error.h b/libcli/util/error.h index 7b7de6c..fac9489 100644 --- a/libcli/util/error.h +++ b/libcli/util/error.h @@ -2,6 +2,8 @@ Unix SMB/CIFS implementation. Error handling code + (C) 2011 Samba Team. + 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 diff --git a/libds/common/flag_mapping.h b/libds/common/flag_mapping.h index 4b1cc3b..ef8a867 100644 --- a/libds/common/flag_mapping.h +++ b/libds/common/flag_mapping.h @@ -1,6 +1,25 @@ #ifndef __LIBDS_COMMON_FLAG_MAPPING_H__ #define __LIBDS_COMMON_FLAG_MAPPING_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + /* The following definitions come from flag_mapping.c */ uint32_t ds_acb2uf(uint32_t acb); diff --git a/librpc/idl/idl_types.h b/librpc/idl/idl_types.h index 023c040..0b6c6fc 100644 --- a/librpc/idl/idl_types.h +++ b/librpc/idl/idl_types.h @@ -1,3 +1,25 @@ +#ifndef __LIBRPC_IDL_IDL_TYPES_H__ +#define __LIBRPC_IDL_IDL_TYPES_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + #define STR_ASCII LIBNDR_FLAG_STR_ASCII #define STR_LEN4 LIBNDR_FLAG_STR_LEN4 #define STR_SIZE4 LIBNDR_FLAG_STR_SIZE4 @@ -47,3 +69,4 @@ #define NDR_RELATIVE_REVERSE LIBNDR_FLAG_RELATIVE_REVERSE #define NDR_NO_RELATIVE_REVERSE LIBNDR_FLAG_NO_RELATIVE_REVERSE +#endif diff --git a/librpc/ndr/ndr_backupkey.h b/librpc/ndr/ndr_backupkey.h index c5c7c39..39f48db 100644 --- a/librpc/ndr/ndr_backupkey.h +++ b/librpc/ndr/ndr_backupkey.h @@ -1,2 +1,24 @@ +#ifndef __LIBRPC_NDR_NDR_BACKUPKEY_H__ +#define __LIBRPC_NDR_NDR_BACKUPKEY_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + _PUBLIC_ enum ndr_err_code ndr_push_bkrp_access_check_v2(struct ndr_push *ndr, int ndr_flags, const struct bkrp_access_check_v2 *r); _PUBLIC_ enum ndr_err_code ndr_pull_bkrp_access_check_v2(struct ndr_pull *ndr, int ndr_flags, struct bkrp_access_check_v2 *r); +#endif diff --git a/librpc/ndr/ndr_compression.h b/librpc/ndr/ndr_compression.h index b939f6a..4fa595c 100644 --- a/librpc/ndr/ndr_compression.h +++ b/librpc/ndr/ndr_compression.h @@ -1,6 +1,25 @@ #ifndef __LIBRPC_NDR_NDR_COMPRESSION_H__ #define __LIBRPC_NDR_NDR_COMPRESSION_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + #undef _PRINTF_ATTRIBUTE #define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2) /* This file was automatically generated by mkproto.pl. DO NOT EDIT */ diff --git a/librpc/ndr/ndr_dns.h b/librpc/ndr/ndr_dns.h index d97d57f..b6a88e6 100644 --- a/librpc/ndr/ndr_dns.h +++ b/librpc/ndr/ndr_dns.h @@ -1,3 +1,25 @@ +#ifndef __LIBRPC_NDR_NDR_DNS_H__ +#define __LIBRPC_NDR_NDR_DNS_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + void ndr_print_dns_string(struct ndr_print *ndr, const char *name, const char *s); @@ -13,3 +35,4 @@ enum ndr_err_code ndr_push_dns_res_rec(struct ndr_push *ndr, enum ndr_err_code ndr_pull_dns_res_rec(struct ndr_pull *ndr, int ndr_flags, struct dns_res_rec *r); +#endif diff --git a/librpc/ndr/ndr_spoolss_buf.h b/librpc/ndr/ndr_spoolss_buf.h index c5938c0..dcc4486 100644 --- a/librpc/ndr/ndr_spoolss_buf.h +++ b/librpc/ndr/ndr_spoolss_buf.h @@ -1,6 +1,25 @@ #ifndef ___SPACE_SRC_SAMBA_SOURCES_SAMBA_GIT_SOURCE3____SOURCE4_LIBRPC_NDR_NDR_SPOOLSS_BUF_H__ #define ___SPACE_SRC_SAMBA_SOURCES_SAMBA_GIT_SOURCE3____SOURCE4_LIBRPC_NDR_NDR_SPOOLSS_BUF_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + #undef _PRINTF_ATTRIBUTE #define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2) /* This file was automatically generated by mkproto.pl. DO NOT EDIT */ diff --git a/librpc/ndr/ndr_table.h b/librpc/ndr/ndr_table.h index 9e8fea1..99df752 100644 --- a/librpc/ndr/ndr_table.h +++ b/librpc/ndr/ndr_table.h @@ -1,6 +1,25 @@ #ifndef _NDR_TABLE_PROTO_H_ #define _NDR_TABLE_PROTO_H_ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + NTSTATUS ndr_table_register(const struct ndr_interface_table *table); const char *ndr_interface_name(const struct GUID *uuid, uint32_t if_version); int ndr_interface_num_calls(const struct GUID *uuid, uint32_t if_version); diff --git a/nsswitch/pam_winbind.h b/nsswitch/pam_winbind.h index ed92479..01e68d5 100644 --- a/nsswitch/pam_winbind.h +++ b/nsswitch/pam_winbind.h @@ -1,7 +1,26 @@ +#ifndef __NSSWITCH_PAM_WINBIND_H__ +#define __NSSWITCH_PAM_WINBIND_H__ /* pam_winbind header file (Solaris needs some macros from Linux for common PAM code) - Shirish Kalele 2000 + (C) Shirish Kalele 2000 +*/ + +/* + Unix SMB/CIFS implementation. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . */ #include "../lib/replace/replace.h" @@ -175,3 +194,4 @@ struct pwb_context { #endif #define TALLOC_ZERO_P(ctx, type) (type *)_talloc_zero(ctx, sizeof(type), #type) #define TALLOC_P(ctx, type) (type *)talloc_named_const(ctx, sizeof(type), #type) +#endif diff --git a/nsswitch/winbind_client.h b/nsswitch/winbind_client.h index ed1c81d..d63b59c 100644 --- a/nsswitch/winbind_client.h +++ b/nsswitch/winbind_client.h @@ -1,3 +1,24 @@ +#ifndef __NSSWITCH_WINBIND_CLIENT_H__ +#define __NSSWITCH_WINBIND_CLIENT_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . +*/ + #include "winbind_nss_config.h" #include "winbind_struct_protocol.h" @@ -19,3 +40,4 @@ NSS_STATUS winbindd_priv_request_response(int req_type, #define winbind_on() \ (setenv(WINBINDD_DONT_ENV, "0", 1) == 0) +#endif diff --git a/source3/auth/proto.h b/source3/auth/proto.h index 88cc707..92b16ca 100644 --- a/source3/auth/proto.h +++ b/source3/auth/proto.h @@ -1,3 +1,37 @@ +#ifndef __AUTH_PROTO_H__ +#define __AUTH_PROTO_H__ + +/* + * Unix SMB/CIFS implementation. + * Password and authentication handling + * + * Copyright (C) Andrew Tridgell 1992-2001 + * Copyright (C) Luke Kenneth Casson Leighton 1996-2000 + * Copyright (C) Jeremy Allison 1997-2001 + * Copyright (C) John H Terpsta 1999-2001 + * Copyright (C) Tim Potter 2000 + * Copyright (C) Andrew Bartlett 2001-2003 + * Copyright (C) Jelmer Vernooij 2002 + * Copyright (C) Rafal Szczesniak 2002 + * Copyright (C) Gerald Carter 2003 + * Copyright (C) Volker Lendecke 2006,2010 + * Copyright (C) Michael Adam 2007 + * Copyright (C) Dan Sledz 2009 + * Copyright (C) Simo Sorce 2010 + * + * 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 . + */ /* The following definitions come from auth/auth.c */ @@ -266,3 +300,4 @@ NTSTATUS make_server_info_krb5(TALLOC_CTX *mem_ctx, struct PAC_LOGON_INFO *logon_info, bool mapped_to_guest, struct auth_serversupplied_info **server_info); +#endif diff --git a/source3/groupdb/proto.h b/source3/groupdb/proto.h index 11162e6..3cfaaa3 100644 --- a/source3/groupdb/proto.h +++ b/source3/groupdb/proto.h @@ -1,3 +1,28 @@ +#ifndef __GROUPDB_PROTO_H__ +#define __GROUPDB_PROTO_H__ + +/* + * Unix SMB/CIFS implementation. + * Group Mapping Database + * + * Copyright (C) Andrew Tridgell 1992-2006 + * Copyright (C) Jean François Micouleau 1998-2001 + * Copyright (C) Gerald Carter 2006 + * Copyright (C) Volker Lendecke 2006 + * + * 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 . + */ /* The following definitions come from groupdb/mapping.c */ @@ -73,3 +98,4 @@ NTSTATUS pdb_create_builtin_alias(uint32 rid); /* The following definitions come from groupdb/mapping_tdb.c */ const struct mapping_backend *groupdb_tdb_init(void); +#endif diff --git a/source3/include/ads.h b/source3/include/ads.h index 8a8ce28..f114111 100644 --- a/source3/include/ads.h +++ b/source3/include/ads.h @@ -1,5 +1,25 @@ #ifndef _INCLUDE_ADS_H_ #define _INCLUDE_ADS_H_ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + /* header for ads (active directory) library routines diff --git a/source3/include/krb5_env.h b/source3/include/krb5_env.h index aa96795..c799ace 100644 --- a/source3/include/krb5_env.h +++ b/source3/include/krb5_env.h @@ -1,2 +1,25 @@ +#ifndef __INCLUDE_KRB5_ENV_H__ +#define __INCLUDE_KRB5_ENV_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + /* Kerberos environment variable names */ #define KRB5_ENV_CCNAME "KRB5CCNAME" + +#endif diff --git a/source3/include/krb5_protos.h b/source3/include/krb5_protos.h index e9f282b..52ec7b9 100644 --- a/source3/include/krb5_protos.h +++ b/source3/include/krb5_protos.h @@ -1,3 +1,25 @@ +#ifndef __INCLUDE_KRB5_PROTOS_H__ +#define __INCLUDE_KRB5_PROTOS_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + struct PAC_DATA; struct PAC_SIGNATURE_DATA; @@ -152,3 +174,4 @@ bool unwrap_edata_ntstatus(TALLOC_CTX *mem_ctx, DATA_BLOB *edata, DATA_BLOB *edata_out); bool unwrap_pac(TALLOC_CTX *mem_ctx, DATA_BLOB *auth_data, DATA_BLOB *unwrapped_pac_data); +#endif diff --git a/source3/include/mangle.h b/source3/include/mangle.h index c07b852..57afafc 100644 --- a/source3/include/mangle.h +++ b/source3/include/mangle.h @@ -1,5 +1,25 @@ #ifndef _MANGLE_H_ #define _MANGLE_H_ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + /* header for 8.3 name mangling interface */ diff --git a/source3/include/smb_krb5.h b/source3/include/smb_krb5.h index adbb0de..34ccaf7 100644 --- a/source3/include/smb_krb5.h +++ b/source3/include/smb_krb5.h @@ -1,6 +1,25 @@ #ifndef _HEADER_smb_krb5_h #define _HEADER_smb_krb5_h +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + #define KRB5_PRIVATE 1 /* this file uses PRIVATE interfaces! */ /* this file uses DEPRECATED interfaces! */ diff --git a/source3/include/smb_ldap.h b/source3/include/smb_ldap.h index 45e5868..4fe0dcd 100644 --- a/source3/include/smb_ldap.h +++ b/source3/include/smb_ldap.h @@ -1,6 +1,25 @@ #ifndef _SMB_LDAP_H #define _SMB_LDAP_H +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + #if HAVE_LBER_H #include #if defined(HPUX) && !defined(_LBER_TYPES_H) diff --git a/source3/intl/lang_tdb.h b/source3/intl/lang_tdb.h index da24684..096a583 100644 --- a/source3/intl/lang_tdb.h +++ b/source3/intl/lang_tdb.h @@ -1,3 +1,24 @@ +#ifndef __INTL_LANG_TDB_H__ +#define __INTL_LANG_TDB_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ /* The following definitions come from intl/lang_tdb.c */ @@ -5,3 +26,4 @@ bool lang_tdb_init(const char *lang); const char *lang_msg(const char *msgid); void lang_msg_free(const char *msgstr); char *lang_tdb_current(void); +#endif diff --git a/source3/lib/eventlog/proto.h b/source3/lib/eventlog/proto.h index 21790d0..363338d 100644 --- a/source3/lib/eventlog/proto.h +++ b/source3/lib/eventlog/proto.h @@ -1,3 +1,28 @@ +#ifndef __LIB_EVENTLOG_PROTO_H__ +#define __LIB_EVENTLOG_PROTO_H__ + +/* + * Unix SMB/CIFS implementation. + * Eventlog utility routines + * + * Copyright (C) Marcin Krzysztof Porwit 2005 + * Copyright (C) Brian Moran 2005 + * Copyright (C) Gerald (Jerry) Carter 2005 + * Copyright (C) Guenther Deschner 2009 + * + * 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 . + */ /* The following definitions come from lib/eventlog/eventlog.c */ @@ -33,3 +58,4 @@ NTSTATUS evlog_convert_tdb_to_evt(TALLOC_CTX *mem_ctx, ELOG_TDB *etdb, DATA_BLOB *blob_p, uint32_t *num_records_p); +#endif diff --git a/source3/lib/idmap_cache.h b/source3/lib/idmap_cache.h index af2ba82..21f778b 100644 --- a/source3/lib/idmap_cache.h +++ b/source3/lib/idmap_cache.h @@ -1,3 +1,26 @@ +#ifndef __LIB_ADMAP_CACHE_H__ +#define __LIB_ADMAP_CACHE_H__ + +/* + * Unix SMB/CIFS implementation. + * ID Mapping Cache + * + * Copyright (C) Volker Lendecke 2008 + * + * 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 . + */ + /* The following definitions come from lib/idmap_cache.c */ bool idmap_cache_find_sid2uid(const struct dom_sid *sid, uid_t *puid, @@ -12,3 +35,4 @@ void idmap_cache_set_sid2gid(const struct dom_sid *sid, gid_t gid); bool idmap_cache_del_uid(uid_t uid); bool idmap_cache_del_gid(gid_t gid); bool idmap_cache_del_sid(const struct dom_sid *sid); +#endif diff --git a/source3/lib/netapi/examples/common.h b/source3/lib/netapi/examples/common.h index 85df51d..043b3cd 100644 --- a/source3/lib/netapi/examples/common.h +++ b/source3/lib/netapi/examples/common.h @@ -1,3 +1,24 @@ +#ifndef __LIB_NETAPI_EXAMPLES_COMMON_H__ +#define __LIB_NETAPI_EXAMPLES_COMMON_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + #include void popt_common_callback(poptContext con, @@ -8,4 +29,4 @@ void popt_common_callback(poptContext con, extern struct poptOption popt_common_netapi_examples[]; #define POPT_COMMON_LIBNETAPI_EXAMPLES { NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_netapi_examples, 0, "Common samba netapi example options:", NULL }, - +#endif diff --git a/source3/lib/netapi/libnetapi.h b/source3/lib/netapi/libnetapi.h index 2711558..ae8709d 100644 --- a/source3/lib/netapi/libnetapi.h +++ b/source3/lib/netapi/libnetapi.h @@ -1,5 +1,24 @@ #ifndef __LIBNETAPI_LIBNETAPI__ #define __LIBNETAPI_LIBNETAPI__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + NET_API_STATUS NetJoinDomain(const char * server /* [in] [unique] */, const char * domain /* [in] [ref] */, const char * account_ou /* [in] [unique] */, diff --git a/source3/lib/privileges.h b/source3/lib/privileges.h index 13bc3eb..acfd38b 100644 --- a/source3/lib/privileges.h +++ b/source3/lib/privileges.h @@ -1,3 +1,25 @@ +#ifndef __LIB_PRIVILEGES_H__ +#define __LIB_PRIVILEGES_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + #include "../libcli/security/privileges.h" /* The following definitions come from lib/privileges.c */ @@ -16,3 +38,4 @@ NTSTATUS privilege_create_account(const struct dom_sid *sid ); NTSTATUS privilege_delete_account(const struct dom_sid *sid); bool is_privileged_sid( const struct dom_sid *sid ); bool grant_all_privileges( const struct dom_sid *sid ); +#endif diff --git a/source3/libads/ads_ldap_protos.h b/source3/libads/ads_ldap_protos.h index 03869fe..98fe902 100644 --- a/source3/libads/ads_ldap_protos.h +++ b/source3/libads/ads_ldap_protos.h @@ -1,3 +1,25 @@ +#ifndef __LIBADS_ADS_LDAP_PROTOS_H__ +#define __LIBADS_ADS_LDAP_PROTOS_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + /* * Prototypes for ads */ @@ -112,3 +134,4 @@ ADS_STATUS ads_get_joinable_ous(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, char ***ous, size_t *num_ous); +#endif diff --git a/source3/libads/ads_proto.h b/source3/libads/ads_proto.h index ed702de..562b446 100644 --- a/source3/libads/ads_proto.h +++ b/source3/libads/ads_proto.h @@ -1,3 +1,37 @@ +#ifndef __LIBADS_ADS_PROTO_H__ +#define __LIBADS_ADS_PROTO_H__ + +/* + * Unix SMB/CIFS implementation. + * ads (active directory) utility library + * + * Copyright (C) Andrew Bartlett 2001 + * Copyright (C) Andrew Tridgell 2001 + * Copyright (C) Remus Koos (remuskoos@yahoo.com) 2001 + * Copyright (C) Alexey Kotovich 2002 + * Copyright (C) Jim McDonough 2002-2003 + * Copyright (C) Luke Howard 2003 + * Copyright (C) Guenther Deschner 2003-2008 + * Copyright (C) Rakesh Patel 2004 + * Copyright (C) Dan Perry 2004 + * Copyright (C) Jeremy Allison 2004 + * Copyright (C) Gerald Carter 2006 + * Copyright (C) Stefan Metzmacher 2007 + * + * 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 . + */ + /* The following definitions come from libads/ads_struct.c */ char *ads_build_path(const char *realm, const char *sep, const char *field, int reverse); @@ -152,3 +186,4 @@ ADS_STATUS ads_setup_sasl_wrapping(ADS_STRUCT *ads, /* The following definitions come from libads/util.c */ ADS_STATUS ads_change_trust_account_password(ADS_STRUCT *ads, char *host_principal); +#endif diff --git a/source3/libads/ads_status.h b/source3/libads/ads_status.h index cc8d9a5..1cea4cb 100644 --- a/source3/libads/ads_status.h +++ b/source3/libads/ads_status.h @@ -1,6 +1,25 @@ #ifndef _LIBADS_ADS_STATUS_H_ #define _LIBADS_ADS_STATUS_H_ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + /* there are 5 possible types of errors the ads subsystem can produce */ enum ads_error_type {ENUM_ADS_ERROR_KRB5, ENUM_ADS_ERROR_GSS, ENUM_ADS_ERROR_LDAP, ENUM_ADS_ERROR_SYSTEM, ENUM_ADS_ERROR_NT}; diff --git a/source3/libads/cldap.h b/source3/libads/cldap.h index e2d05ce..1727ea2 100644 --- a/source3/libads/cldap.h +++ b/source3/libads/cldap.h @@ -1,3 +1,25 @@ +#ifndef __LIBADS_CLDAP_H__ +#define __LIBADS_CLDAP_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + #include "../libcli/netlogon/netlogon.h" /* The following definitions come from libads/cldap.c */ @@ -10,3 +32,4 @@ bool ads_cldap_netlogon_5(TALLOC_CTX *mem_ctx, const char *server, const char *realm, struct NETLOGON_SAM_LOGON_RESPONSE_EX *reply5); +#endif diff --git a/source3/libads/kerberos_proto.h b/source3/libads/kerberos_proto.h index f23346f..81a7c05 100644 --- a/source3/libads/kerberos_proto.h +++ b/source3/libads/kerberos_proto.h @@ -1,3 +1,35 @@ +#ifndef __LIBADS_KERBEROS_PROTOCOL_H__ +#define __LIBADS_KERBEROS_PROTOCOL_H__ + +/* + * Unix SMB/CIFS implementation. + * kerberos utility library + * + * Copyright (C) Andrew Tridgell 2001 + * Copyright (C) Remus Koos (remuskoos@yahoo.com) 2001 + * Copyright (C) Luke Howard 2002-2003 + * Copyright (C) Jim McDonough 2003 + * Copyright (C) Guenther Deschner 2003-2008 + * Copyright (C) Andrew Bartlett 2004-2005 + * Copyright (C) Jeremy Allison 2004,2007 + * Copyright (C) Stefan Metzmacher 2004-2005 + * Copyright (C) Nalin Dahyabhai 2004 + * Copyright (C) Gerald Carter 2006 + * + * 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 . + */ + struct PAC_LOGON_INFO; #include "libads/ads_status.h" @@ -69,3 +101,4 @@ ADS_STATUS kerberos_set_password(const char *kpasswd_server, const char *auth_principal, const char *auth_password, const char *target_principal, const char *new_password, int time_offset); +#endif diff --git a/source3/libads/ldap_schema.h b/source3/libads/ldap_schema.h index 44964dd..8b67d38 100644 --- a/source3/libads/ldap_schema.h +++ b/source3/libads/ldap_schema.h @@ -1,3 +1,25 @@ +#ifndef __LIBADS_LDAP_SCHEMA_H__ +#define __LIBADS_LDAP_SCHEMA_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + /* used to remember the names of the posix attributes in AD */ /* see the rfc2307 & sfu nss backends */ @@ -55,3 +77,4 @@ ADS_STATUS ads_check_posix_schema_mapping(TALLOC_CTX *mem_ctx, ADS_STRUCT *ads, enum wb_posix_mapping map_type, struct posix_schema **s ) ; +#endif diff --git a/source3/libgpo/gpo_proto.h b/source3/libgpo/gpo_proto.h index 8bc5874..2b13d3c 100644 --- a/source3/libgpo/gpo_proto.h +++ b/source3/libgpo/gpo_proto.h @@ -1,3 +1,25 @@ +#ifndef __LIBGPO_PROTO_H__ +#define __LIBGPO_PROTO_H__ + +/* + Unix SMB/CIFS implementation. + Group Policy Object Support + + Copyright (C) Guenther Deschner 2006-2008 + + 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 . +*/ /* The following definitions come from libgpo/gpo_filesync.c */ @@ -75,3 +97,4 @@ WERROR reg_apply_registry_entry(TALLOC_CTX *mem_ctx, struct gp_registry_entry *entry, const struct security_token *token, uint32_t flags); +#endif diff --git a/source3/libnet/libnet_join.h b/source3/libnet/libnet_join.h index 5659828..8036db3 100644 --- a/source3/libnet/libnet_join.h +++ b/source3/libnet/libnet_join.h @@ -1,3 +1,25 @@ +#ifndef __LIBNET_LIBNET_JOIN_H__ +#define __LIBNET_LIBNET_JOIN_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + /* The following definitions come from libnet/libnet_join.c */ NTSTATUS libnet_join_ok(const char *netbios_domain_name, @@ -11,3 +33,4 @@ WERROR libnet_Join(TALLOC_CTX *mem_ctx, struct libnet_JoinCtx *r); WERROR libnet_Unjoin(TALLOC_CTX *mem_ctx, struct libnet_UnjoinCtx *r); +#endif diff --git a/source3/librpc/ndr/util.h b/source3/librpc/ndr/util.h index 3bf9c0e..fb7f585 100644 --- a/source3/librpc/ndr/util.h +++ b/source3/librpc/ndr/util.h @@ -1,4 +1,25 @@ +#ifndef __LIBRPC_NDR_UTIL_H__ +#define __LIBRPC_NDR_UTIL_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ /* The following definitions come from librpc/ndr/util.c */ _PUBLIC_ void ndr_print_sockaddr_storage(struct ndr_print *ndr, const char *name, const struct sockaddr_storage *ss); +#endif diff --git a/source3/libsmb/clidgram.h b/source3/libsmb/clidgram.h index 01a8a6a..cc33e87 100644 --- a/source3/libsmb/clidgram.h +++ b/source3/libsmb/clidgram.h @@ -1,3 +1,25 @@ +#ifndef __LIBSMB_CLIDGRAM_H__ +#define __LIBSMB_CLIDGRAM_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + #include "../libcli/netlogon/netlogon.h" /* The following definitions come from libsmb/clidgram.c */ @@ -21,3 +43,4 @@ NTSTATUS nbt_getdc(struct messaging_context *msg_ctx, uint32_t *pnt_version, const char **dc_name, struct netlogon_samlogon_response **samlogon_response); +#endif diff --git a/source3/libsmb/errormap_wbc.h b/source3/libsmb/errormap_wbc.h index 2042da4..ea21d27 100644 --- a/source3/libsmb/errormap_wbc.h +++ b/source3/libsmb/errormap_wbc.h @@ -1,3 +1,26 @@ +#ifndef __LIBSMB_ERRORMAP_WBC_H__ +#define __LIBSMB_ERRORMAP_WBC_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + /* The following definitions come from libsmb/errormap_wbc.c */ NTSTATUS map_nt_error_from_wbcErr(wbcErr wbc_err); +#endif diff --git a/source3/libsmb/libsmb.h b/source3/libsmb/libsmb.h index 48d6ae5..4dfd077 100644 --- a/source3/libsmb/libsmb.h +++ b/source3/libsmb/libsmb.h @@ -1,6 +1,8 @@ /* Unix SMB/CIFS implementation. + (C) 2011 Samba Team. + 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 diff --git a/source3/libsmb/nmblib.h b/source3/libsmb/nmblib.h index a6666a8..4bbc123 100644 --- a/source3/libsmb/nmblib.h +++ b/source3/libsmb/nmblib.h @@ -1,3 +1,25 @@ +#ifndef __LIBSMB_NMBLIB_H__ +#define __LIBSMB_NMBLIB_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + /* The following definitions come from libsmb/unexpected.c */ #include "nameserv.h" @@ -47,3 +69,4 @@ void sort_query_replies(char *data, int n, struct in_addr ip); char *name_mangle(TALLOC_CTX *mem_ctx, const char *In, char name_type); int name_extract(unsigned char *buf,size_t buf_len, unsigned int ofs, fstring name); int name_len(unsigned char *s1, size_t buf_len); +#endif diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h index 3703c95..2436a5e 100644 --- a/source3/libsmb/proto.h +++ b/source3/libsmb/proto.h @@ -1,6 +1,8 @@ /* Unix SMB/CIFS implementation. + (C) 2011 Samba Team. + 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 diff --git a/source3/locking/proto.h b/source3/locking/proto.h index 6f13096..4e99c63 100644 --- a/source3/locking/proto.h +++ b/source3/locking/proto.h @@ -1,3 +1,27 @@ +#ifndef __LOCKING_PROTO_H__ +#define __LOCKING_PROTO_H__ + +/* + * Unix SMB/CIFS implementation. + * Locking functions + * + * Copyright (C) Andrew Tridgell 1992-2000 + * Copyright (C) Jeremy Allison 1992-2006 + * Copyright (C) Volker Lendecke 2005 + * + * 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 . + */ /* The following definitions come from locking/brlock.c */ @@ -199,3 +223,4 @@ bool release_posix_lock_posix_flavour(files_struct *fsp, const struct lock_context *lock_ctx, const struct lock_struct *plocks, int num_locks); +#endif diff --git a/source3/nmbd/nmbd.h b/source3/nmbd/nmbd.h index e100e7d..569ff64 100644 --- a/source3/nmbd/nmbd.h +++ b/source3/nmbd/nmbd.h @@ -1,6 +1,28 @@ +#ifndef __NMBD_NMBD_H__ +#define __NMBD_NMBD_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + #ifndef HAVE_PIPE #define SYNC_DNS 1 #endif #include "libsmb/nmblib.h" #include "nmbd/nmbd_proto.h" +#endif diff --git a/source3/nmbd/nmbd_proto.h b/source3/nmbd/nmbd_proto.h index 1c6ec0c..442c6af 100644 --- a/source3/nmbd/nmbd_proto.h +++ b/source3/nmbd/nmbd_proto.h @@ -1,3 +1,31 @@ +#ifndef __NMBD_NMBD_PROTO_H__ +#define __NMBD_NMBD_PROTO_H__ + +/* + * Unix SMB/CIFS implementation. + * NBT netbios routines and daemon - version 2 + * + * Copyright (C) Andrew Tridgell 1994-1998 + * Copyright (C) Jeremy Allison 1994-2005 + * Copyright (C) Luke Kenneth Casson Leighton 1994-1998 + * Copyright (C) John H Terpstra 1995-1998 + * Copyright (C) Christopher R. Hertel 1998 + * Copyright (C) Jim McDonough 2002 + * Copyright (C) Jelmer Vernooij 2002,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 . + */ /* The following definitions come from nmbd/asyncdns.c */ @@ -357,3 +385,4 @@ void update_workgroup_ttl(struct work_record *work, int ttl); void initiate_myworkgroup_startup(struct subnet_record *subrec, struct work_record *work); void dump_workgroups(bool force_write); void expire_workgroups_and_servers(time_t t); +#endif diff --git a/source3/pam_smbpass/general.h b/source3/pam_smbpass/general.h index 6e13f8d..cba45c5 100644 --- a/source3/pam_smbpass/general.h +++ b/source3/pam_smbpass/general.h @@ -1,3 +1,25 @@ +#ifndef __PAM_SMBPASS_GENERAL_H__ +#define __PAM_SMBPASS_GENERAL_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . +*/ + #include "../librpc/gen_ndr/samr.h" #include "../libcli/auth/pam_errors.h" #include "passdb.h" @@ -135,3 +157,4 @@ struct _pam_failed_auth { /* from support.c */ int make_remark(pam_handle_t *, unsigned int, int, const char *); +#endif diff --git a/source3/pam_smbpass/support.h b/source3/pam_smbpass/support.h index 7ee7704..d222bc5 100644 --- a/source3/pam_smbpass/support.h +++ b/source3/pam_smbpass/support.h @@ -1,3 +1,25 @@ +#ifndef __PAM_SMBPASS_SUPPORT_H__ +#define __PAM_SMBPASS_SUPPORT_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . +*/ + /* syslogging function for errors and other information */ extern void _log_err(pam_handle_t *, int, const char *, ...); @@ -55,3 +77,4 @@ int _pam_get_item(const pam_handle_t *pamh, int _pam_get_data(const pam_handle_t *pamh, const char *module_data_name, const void *_data); +#endif diff --git a/source3/passdb/machine_sid.h b/source3/passdb/machine_sid.h index 2da281a..9e6cba4 100644 --- a/source3/passdb/machine_sid.h +++ b/source3/passdb/machine_sid.h @@ -1,3 +1,27 @@ +#ifndef __PASSDB_MACHINE_SID_H__ +#define __PASSDB_MACHINE_SID_H__ + +/* + * Unix SMB/CIFS implementation. + * Password and authentication handling + * Copyright (C) Jeremy Allison 1996-2002 + * Copyright (C) Andrew Tridgell 2002 + * Copyright (C) Gerald (Jerry) Carter 2000 + * Copyright (C) Stefan (metze) Metzmacher 2002 + * + * 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 . + */ /* The following definitions come from passdb/machine_sid.c */ @@ -5,3 +29,4 @@ struct dom_sid *get_global_sam_sid(void); void reset_global_sam_sid(void) ; bool sid_check_is_domain(const struct dom_sid *sid); bool sid_check_is_in_our_domain(const struct dom_sid *sid); +#endif diff --git a/source3/passdb/proto.h b/source3/passdb/proto.h index a64985c..b53b605 100644 --- a/source3/passdb/proto.h +++ b/source3/passdb/proto.h @@ -1,3 +1,41 @@ +#ifndef __PASSDB_PROTO_H__ +#define __PASSDB_PROTO_H__ + +/* + * Unix SMB/CIFS implementation. + * passdb - password and authentication handling + * + * Copyright (C) Andrew Tridgell 1992-1998 + * Copyright (C) Jeremy Allison 1995-2009 + * Copyright (C) Luke Kenneth Casson Leighton 1996-1998 + * Copyright (C) Jean François Micouleau 1998-2001 + * Copyright (C) Gerald (Jerry) Carter 2000-2006 + * Copyright (C) Simo Sorce 2000-2003,2006 + * Copyright (C) Andrew Bartlett 2001-2002 + * Copyright (C) Shahms King 2001 + * Copyright (C) Jelmer Vernooij 2002 + * Copyright (C) Rafal Szczesniak 2002 + * Copyright (C) Stefan (metze) Metzmacher 2002-2003 + * Copyright (C) Guenther Deschner 2004-2005 + * Copyright (C) Jim McDonough (jmcd@us.ibm.com) 2004-2005 + * Copyright (C) Vince Brimhall 2004-2005 + * Copyright (C) Volker Lendecke 2006 + * Copyright (C) Michael Adam 2007 + * Copyright (C) Dan Sledz 2009 + * + * 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 . + */ /* The following definitions come from passdb/account_pol.c */ @@ -300,3 +338,4 @@ NTSTATUS pdb_tdbsam_init(void); NTSTATUS create_builtin_users(const struct dom_sid *sid); NTSTATUS create_builtin_administrators(const struct dom_sid *sid); +#endif diff --git a/source3/printing/load.h b/source3/printing/load.h index df401a4..0dcd8b7 100644 --- a/source3/printing/load.h +++ b/source3/printing/load.h @@ -1,4 +1,27 @@ +#ifndef __PRINTING_LOAD_H__ +#define __PRINTING_LOAD_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + /* The following definitions come from printing/load.c */ void load_printers(struct tevent_context *ev, struct messaging_context *msg_ctx); +#endif diff --git a/source3/printing/pcap.h b/source3/printing/pcap.h index 63497fd..497a6a7 100644 --- a/source3/printing/pcap.h +++ b/source3/printing/pcap.h @@ -1,7 +1,11 @@ +#ifndef __PRINTING_PCAP_H__ +#define __PRINTING_PCAP_H__ /* Unix SMB/CIFS implementation. printcap headers + (C) 2011 Samba Team. + 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 @@ -55,3 +59,4 @@ bool sysv_cache_reload(void); /* The following definitions come from printing/print_standard.c */ bool std_pcap_cache_reload(const char *pcap_name); +#endif diff --git a/source3/registry/reg_parse_internal.h b/source3/registry/reg_parse_internal.h index ef59161..4599414 100644 --- a/source3/registry/reg_parse_internal.h +++ b/source3/registry/reg_parse_internal.h @@ -1,5 +1,7 @@ /* Samba Unix/Linux SMB client library * + * (C) Gregor Beck + * * 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 diff --git a/source3/rpc_client/cli_netlogon.h b/source3/rpc_client/cli_netlogon.h index 808a428..f84bdc9 100644 --- a/source3/rpc_client/cli_netlogon.h +++ b/source3/rpc_client/cli_netlogon.h @@ -1,3 +1,25 @@ +#ifndef __RPC_CLIENT_CLI_NETLOGON_H__ +#define __RPC_CLIENT_CLI_NETLOGON_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + /* The following definitions come from rpc_client/cli_netlogon.c */ NTSTATUS rpccli_netlogon_setup_creds(struct rpc_pipe_client *cli, @@ -48,4 +70,4 @@ NTSTATUS rpccli_netlogon_set_trust_password(struct rpc_pipe_client *cli, const char *new_trust_pwd_cleartext, const unsigned char new_trust_passwd_hash[16], enum netr_SchannelType sec_channel_type); - +#endif diff --git a/source3/rpc_client/cli_spoolss.h b/source3/rpc_client/cli_spoolss.h index 285a34f..926f753 100644 --- a/source3/rpc_client/cli_spoolss.h +++ b/source3/rpc_client/cli_spoolss.h @@ -1,3 +1,25 @@ +#ifndef __RPC_CLIENT_CLI_SPOOLSS_H__ +#define __RPC_CLIENT_CLI_SPOOLSS_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + /* The following definitions come from rpc_client/cli_spoolss.c */ WERROR rpccli_spoolss_openprinter_ex(struct rpc_pipe_client *cli, @@ -122,3 +144,4 @@ WERROR rpccli_spoolss_enumprinterdataex(struct rpc_pipe_client *cli, uint32_t offered, uint32_t *count, struct spoolss_PrinterEnumValues **info); +#endif diff --git a/source3/rpc_client/init_lsa.h b/source3/rpc_client/init_lsa.h index 670caed..652bcbd 100644 --- a/source3/rpc_client/init_lsa.h +++ b/source3/rpc_client/init_lsa.h @@ -1,3 +1,25 @@ +#ifndef __RPC_CLIENT_INIT_LSA_H__ +#define __RPC_CLIENT_INIT_LSA_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + struct lsa_String; struct lsa_StringLarge; struct lsa_AsciiString; @@ -9,3 +31,4 @@ void init_lsa_String(struct lsa_String *name, const char *s); void init_lsa_StringLarge(struct lsa_StringLarge *name, const char *s); void init_lsa_AsciiString(struct lsa_AsciiString *name, const char *s); void init_lsa_AsciiStringLarge(struct lsa_AsciiStringLarge *name, const char *s); +#endif diff --git a/source3/rpc_client/init_netlogon.h b/source3/rpc_client/init_netlogon.h index d87a9ea..91ad3eb 100644 --- a/source3/rpc_client/init_netlogon.h +++ b/source3/rpc_client/init_netlogon.h @@ -1,5 +1,28 @@ +#ifndef __RPC_CLIENT_INIT_NETLOGON_H__ +#define __RPC_CLIENT_INIT_NETLOGON_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + /* The following definitions come from rpc_client/init_netlogon.c */ void init_netr_CryptPassword(const char *pwd, unsigned char session_key[16], struct netr_CryptPassword *pwd_buf); +#endif diff --git a/source3/rpc_client/init_samr.h b/source3/rpc_client/init_samr.h index 1ddaef6..b5b8b6b 100644 --- a/source3/rpc_client/init_samr.h +++ b/source3/rpc_client/init_samr.h @@ -1,3 +1,25 @@ +#ifndef __RPC_CLIENT_INIT_SAMR_H__ +#define __RPC_CLIENT_INIT_SAMR_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + /* The following definitions come from rpc_client/init_samr.c */ void init_samr_CryptPasswordEx(const char *pwd, @@ -7,3 +29,4 @@ void init_samr_CryptPassword(const char *pwd, DATA_BLOB *session_key, struct samr_CryptPassword *pwd_buf); +#endif diff --git a/source3/rpc_client/init_spoolss.h b/source3/rpc_client/init_spoolss.h index 60ee041..cb19a8d 100644 --- a/source3/rpc_client/init_spoolss.h +++ b/source3/rpc_client/init_spoolss.h @@ -1,3 +1,24 @@ +#ifndef _RPC_CLIENT_INIT_SPOOLSS_H__ +#define _RPC_CLIENT_INIT_SPOOLSS_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ /* The following definitions come from rpc_client/init_spoolss.c */ @@ -13,4 +34,4 @@ WERROR push_spoolss_PrinterData(TALLOC_CTX *mem_ctx, DATA_BLOB *blob, union spoolss_PrinterData *data); void spoolss_printerinfo2_to_setprinterinfo2(const struct spoolss_PrinterInfo2 *i, struct spoolss_SetPrinterInfo2 *s); - +#endif diff --git a/source3/rpc_client/util_netlogon.h b/source3/rpc_client/util_netlogon.h index 42e4326..4431248 100644 --- a/source3/rpc_client/util_netlogon.h +++ b/source3/rpc_client/util_netlogon.h @@ -1,5 +1,28 @@ +#ifndef __RPC_CLIENT_UTIL_NETLOGON_H__ +#define __RPC_CLIENT_UTIL_NETLOGON_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + /* The following definitions come from rpc_client/util_netlogon.c */ NTSTATUS copy_netr_SamBaseInfo(TALLOC_CTX *mem_ctx, const struct netr_SamBaseInfo *in, struct netr_SamBaseInfo *out); +#endif diff --git a/source3/rpc_server/srv_access_check.h b/source3/rpc_server/srv_access_check.h index 27a09bd..56ee94c 100644 --- a/source3/rpc_server/srv_access_check.h +++ b/source3/rpc_server/srv_access_check.h @@ -1,3 +1,25 @@ +#ifndef __RPC_SERVER_SRV_ACCESS_CHECK_H__ +#define __RPC_SERVER_SRV_ACCESS_CHECK_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + /* The following definitions come from rpc_server/srv_access_check.c */ NTSTATUS access_check_object( struct security_descriptor *psd, struct security_token *token, @@ -8,3 +30,4 @@ NTSTATUS access_check_object( struct security_descriptor *psd, struct security_t void map_max_allowed_access(const struct security_token *nt_token, const struct security_unix_token *unix_token, uint32_t *pacc_requested); +#endif diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index cff417b..c96e075 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -1,3 +1,50 @@ +#ifndef __SMBD_PROTO_H__ +#define __SMBD_PROTO_H__ + +/* + * Unix SMB/CIFS implementation. + * Main SMB server routines + * + * Copyright (C) Andrew Tridgell 1992-2002,2006 + * Copyright (C) Jeremy Allison 1992-2010 + * Copyright (C) Volker Lendecke 1993-2009 + * Copyright (C) John H Terpstra 1995-1998 + * Copyright (C) Luke Kenneth Casson Leighton 1996-1998 + * Copyright (C) Paul Ashton 1997-1998 + * Copyright (C) Tim Potter 1999-2000 + * Copyright (C) T.D.Lee@durham.ac.uk 1999 + * Copyright (C) Ying Chen 2000 + * Copyright (C) Shirish Kalele 2000 + * Copyright (C) Andrew Bartlett 2001-2003 + * Copyright (C) Alexander Bokovoy 2002,2005 + * Copyright (C) Simo Sorce 2001-2002,2009 + * Copyright (C) Andreas Gruenbacher 2002 + * Copyright (C) Jim McDonough 2002 + * Copyright (C) Martin Pool 2002 + * Copyright (C) Luke Howard 2003 + * Copyright (C) Stefan (metze) Metzmacher 2003,2009 + * Copyright (C) Steve French 2005 + * Copyright (C) Gerald (Jerry) Carter 2006 + * Copyright (C) James Peach 2006-2007 + * Copyright (C) Jelmer Vernooij 2002-2003 + * Copyright (C) Michael Adam 2007 + * Copyright (C) Rishi Srivatsavai 2007 + * Copyright (C) Tim Prouty 2009 + * Copyright (C) Gregor Beck 2011 + * + * 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 . + */ /* The following definitions come from smbd/signing.c */ @@ -1136,3 +1183,4 @@ void *avahi_start_register(TALLOC_CTX *mem_ctx, struct tevent_context *ev, /* The following definitions come from smbd/msg_idmap.c */ void msg_idmap_register_msgs(struct messaging_context *ctx); +#endif diff --git a/source3/smbd/smbd.h b/source3/smbd/smbd.h index f0eb601..a3631c1 100644 --- a/source3/smbd/smbd.h +++ b/source3/smbd/smbd.h @@ -2,6 +2,8 @@ Unix SMB/CIFS implementation. Main SMB server routines + (C) 2011 Samba Team. + 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 diff --git a/source3/winbindd/idmap_proto.h b/source3/winbindd/idmap_proto.h index fa7f712..b58b2ab 100644 --- a/source3/winbindd/idmap_proto.h +++ b/source3/winbindd/idmap_proto.h @@ -1,3 +1,30 @@ +#ifndef __WINBINDD_IDMAP_PROTO_H__ +#define __WINBINDD_IDMAP_PROTO_H__ + +/* + * Unix SMB/CIFS implementation. + * ID Mapping + * + * Copyright (C) Tim Potter 2000 + * Copyright (C) Jim McDonough 2003 + * Copyright (C) Simo Sorce 2003-2007 + * Copyright (C) Jeremy Allison 2006 + * Copyright (C) Michael Adam 2009-2010 + * + * 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 . + */ + /* The following definitions come from winbindd/idmap.c */ bool idmap_is_offline(void); @@ -31,3 +58,5 @@ NTSTATUS idmap_gid_to_sid(const char *domname, struct dom_sid *sid, gid_t gid); NTSTATUS idmap_sid_to_uid(const char *dom_name, struct dom_sid *sid, uid_t *uid); NTSTATUS idmap_sid_to_gid(const char *domname, struct dom_sid *sid, gid_t *gid); bool idmap_unix_id_is_in_range(uint32_t id, struct idmap_domain *dom); + +#endif diff --git a/source4/dsdb/common/dsdb_dn.h b/source4/dsdb/common/dsdb_dn.h index b713bdd..db03797 100644 --- a/source4/dsdb/common/dsdb_dn.h +++ b/source4/dsdb/common/dsdb_dn.h @@ -1,3 +1,24 @@ +#ifndef __DSDB_COMMON_DSDB_DN_H__ +#define __DSDB_COMMON_DSDB_DN_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + enum dsdb_dn_format { DSDB_NORMAL_DN, DSDB_BINARY_DN, @@ -20,3 +41,4 @@ struct dsdb_dn { /* RMD_FLAGS component in a DN */ #define DSDB_RMD_FLAG_DELETED 1 #define DSDB_RMD_FLAG_INVISIBLE 2 +#endif diff --git a/source4/dsdb/samdb/ldb_modules/password_modules.h b/source4/dsdb/samdb/ldb_modules/password_modules.h index 40d0144..ea2e044 100644 --- a/source4/dsdb/samdb/ldb_modules/password_modules.h +++ b/source4/dsdb/samdb/ldb_modules/password_modules.h @@ -1,3 +1,25 @@ +#ifndef __DSDB_SAMDB_LDB_LDB_MODULES_PASSWORD_MODULES_H__ +#define __DSDB_SAMDB_LDB_LDB_MODULES_PASSWORD_MODULES_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + /* We store these passwords under this base DN: */ #define LOCAL_BASE "cn=Passwords" +#endif diff --git a/source4/lib/events/events.h b/source4/lib/events/events.h index f666988..d4c8689 100644 --- a/source4/lib/events/events.h +++ b/source4/lib/events/events.h @@ -1,5 +1,24 @@ #ifndef __LIB_EVENTS_H__ #define __LIB_EVENTS_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + #define TEVENT_COMPAT_DEFINES 1 #include struct tevent_context *s4_event_context_init(TALLOC_CTX *mem_ctx); diff --git a/source4/lib/ldb-samba/ldif_handlers.h b/source4/lib/ldb-samba/ldif_handlers.h index 62903c4..028eade 100644 --- a/source4/lib/ldb-samba/ldif_handlers.h +++ b/source4/lib/ldb-samba/ldif_handlers.h @@ -1,6 +1,25 @@ #ifndef __LIB_LDB_SAMBA_LDIF_HANDLERS_H__ #define __LIB_LDB_SAMBA_LDIF_HANDLERS_H__ +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + #define LDB_SYNTAX_SAMBA_SID "LDB_SYNTAX_SAMBA_SID" #define LDB_SYNTAX_SAMBA_SECURITY_DESCRIPTOR "1.2.840.113556.1.4.907" #define LDB_SYNTAX_SAMBA_GUID "LDB_SYNTAX_SAMBA_GUID" diff --git a/source4/lib/ldb/ldb_map/ldb_map_private.h b/source4/lib/ldb/ldb_map/ldb_map_private.h index 7faaa99..3444668 100644 --- a/source4/lib/ldb/ldb_map/ldb_map_private.h +++ b/source4/lib/ldb/ldb_map/ldb_map_private.h @@ -1,3 +1,25 @@ +#ifndef __LIB_LDB_LDB_LDB_MAP_LDB_MAP_PRIVATE_H__ +#define __LIB_LDB_LDB_LDB_MAP_LDB_MAP_PRIVATE_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + #include "replace.h" #include "system/filesys.h" #include "system/time.h" @@ -94,3 +116,4 @@ int map_return_normal_error(struct ldb_request *req, int error); int map_return_entry(struct map_context *ac, struct ldb_reply *ares); +#endif diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.h b/source4/lib/ldb/ldb_tdb/ldb_tdb.h index 33313b0..7d9986b 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_tdb.h +++ b/source4/lib/ldb/ldb_tdb/ldb_tdb.h @@ -1,3 +1,25 @@ +#ifndef __LIB_LDB_LDB_LDB_TDB_LDB_TDB_H__ +#define __LIB_LDB_LDB_LDB_TDB_LDB_TDB_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + #include "replace.h" #include "system/filesys.h" #include "system/time.h" @@ -142,3 +164,4 @@ struct tdb_context *ltdb_wrap_open(TALLOC_CTX *mem_ctx, const char *path, int hash_size, int tdb_flags, int open_flags, mode_t mode, struct ldb_context *ldb); +#endif diff --git a/source4/libcli/raw/signing.h b/source4/libcli/raw/signing.h index 56e977e..ea05a97 100644 --- a/source4/libcli/raw/signing.h +++ b/source4/libcli/raw/signing.h @@ -4,7 +4,7 @@ Unix SMB/CIFS implementation. SMB Signing - Andrew Bartlett 2003-2004 + (C) Andrew Bartlett 2003-2004 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 diff --git a/source4/ntvfs/cifs_posix_cli/cifsposix.h b/source4/ntvfs/cifs_posix_cli/cifsposix.h index bf9e588..873313a 100644 --- a/source4/ntvfs/cifs_posix_cli/cifsposix.h +++ b/source4/ntvfs/cifs_posix_cli/cifsposix.h @@ -1,3 +1,24 @@ +#ifndef __NTVFS_CIFS_POSIX_CLI_CIFSPOSIX_H__ +#define __NTVFS_CIFS_POSIX_CLI_CIFSPOSIX_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ struct cifspsx_private { struct ntvfs_module_context *ntvfs; @@ -36,3 +57,4 @@ struct search_state { unsigned int current_index; struct cifspsx_dir *dir; }; +#endif diff --git a/source4/ntvfs/simple/svfs.h b/source4/ntvfs/simple/svfs.h index e5ad3b9..7135733 100644 --- a/source4/ntvfs/simple/svfs.h +++ b/source4/ntvfs/simple/svfs.h @@ -1,3 +1,24 @@ +#ifndef __NTFVFS_SIMPLE_SVFS_H__ +#define __NTFVFS_SIMPLE_SVFS_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ struct svfs_private { struct ntvfs_module_context *ntvfs; @@ -36,3 +57,4 @@ struct search_state { unsigned int current_index; struct svfs_dir *dir; }; +#endif diff --git a/source4/torture/basic/cxd_known.h b/source4/torture/basic/cxd_known.h index 2fc0928..e41cc56 100644 --- a/source4/torture/basic/cxd_known.h +++ b/source4/torture/basic/cxd_known.h @@ -1,3 +1,25 @@ +#ifndef __TORTURE_BASIC_CXD_KNOWN_H__ +#define __TORTURE_BASIC_CXD_KNOWN_H__ + +/* + Unix SMB/CIFS implementation. + + (C) 2011 Samba Team. + + 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 . +*/ + /** * Results file used for BASE-CREATEX_* TESTS. */ @@ -8668,3 +8690,4 @@ static const struct createx_data cxd_known[] = { { .cxd_test = 2, .cxd_flags = 0x1, .cxd_access1 = 0x1201bf, .cxd_sharemode1=7, .cxd_access2= 0x1201b6, .cxd_sharemode2=7, .cxd_result = { NT_STATUS_OK, NT_STATUS_OK, NT_STATUS_OK, NT_STATUS_OK, }, .cxd_result2 = { NT_STATUS_OK, NT_STATUS_OK, NT_STATUS_OK, NT_STATUS_OK, }}, { .cxd_test = 2, .cxd_flags = 0x1, .cxd_access1 = 0x1201bf, .cxd_sharemode1=7, .cxd_access2= 0x1201bf, .cxd_sharemode2=7, .cxd_result = { NT_STATUS_OK, NT_STATUS_OK, NT_STATUS_OK, NT_STATUS_OK, }, .cxd_result2 = { NT_STATUS_OK, NT_STATUS_OK, NT_STATUS_OK, NT_STATUS_OK, }}, }; +#endif -- 1.7.3.1