summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-11-01 22:48:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:05:11 -0500
commit284349482f5293a9a23d0f72d7c2aab46b55843b (patch)
tree6f96931afb18ea841983a2895b62c97fed9f77b7 /source4/auth
parent9f14afa12c11d02a49f4f310c3f8d834ce8a835d (diff)
downloadsamba-284349482f5293a9a23d0f72d7c2aab46b55843b.tar.gz
samba-284349482f5293a9a23d0f72d7c2aab46b55843b.tar.bz2
samba-284349482f5293a9a23d0f72d7c2aab46b55843b.zip
r3443: the next stage in the include files re-organisation.
I have created the include/system/ directory, which will contain the wrappers for the system includes for logical subsystems. So far I have created include/system/kerberos.h and include/system/network.h, which contain all the system includes for kerberos code and networking code. These are the included in subsystems that need kerberos or networking respectively. Note that this method avoids the mess of #ifdef HAVE_XXX_H in every C file, instead each C module includes the include/system/XXX.h file for the logical system support it needs, and the details are kept isolated in include/system/ This patch also creates a "struct ipv4_addr" which replaces "struct in_addr" in our code. That avoids every C file needing to import all the system networking headers. (This used to be commit 2e25c71853f8996f73755277e448e7d670810349)
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/auth_domain.c12
-rw-r--r--source4/auth/auth_server.c2
2 files changed, 7 insertions, 7 deletions
diff --git a/source4/auth/auth_domain.c b/source4/auth/auth_domain.c
index 028bfc550b..2452f8f65d 100644
--- a/source4/auth/auth_domain.c
+++ b/source4/auth/auth_domain.c
@@ -35,7 +35,7 @@ BOOL global_machine_password_needs_changing = False;
the 'ADS server' smb.conf parameter, which is what we really want anyway
*/
static NTSTATUS ads_resolve_dc(fstring remote_machine,
- struct in_addr *dest_ip)
+ struct ipv4_addr *dest_ip)
{
ADS_STRUCT *ads;
ads = ads_init_simple();
@@ -76,10 +76,10 @@ static NTSTATUS ads_resolve_dc(fstring remote_machine,
*/
static NTSTATUS rpc_resolve_dc(const char *server,
fstring remote_machine,
- struct in_addr *dest_ip)
+ struct ipv4_addr *dest_ip)
{
if (is_ipaddress(server)) {
- struct in_addr to_ip = interpret_addr2(server);
+ struct ipv4_addr to_ip = interpret_addr2(server);
/* we need to know the machines netbios name - this is a lousy
way to find it, but until we have a RPC call that does this
@@ -125,7 +125,7 @@ static NTSTATUS connect_to_domain_password_server(struct smbcli_state **cli,
const uint8_t *trust_passwd,
BOOL *retry)
{
- struct in_addr dest_ip;
+ struct ipv4_addr dest_ip;
fstring remote_machine;
NTSTATUS result;
uint32_t neg_flags = 0x000001ff;
@@ -230,7 +230,7 @@ machine %s. Error was : %s.\n", remote_machine, smbcli_errstr(*cli)));
static NTSTATUS attempt_connect_to_dc(struct smbcli_state **cli,
const char *domain,
- struct in_addr *ip,
+ struct ipv4_addr *ip,
const char *setup_creds_as,
uint16_t sec_chan,
const uint8_t *trust_passwd)
@@ -267,7 +267,7 @@ static NTSTATUS find_connect_dc(struct smbcli_state **cli,
uint8_t *trust_passwd,
time_t last_change_time)
{
- struct in_addr dc_ip;
+ struct ipv4_addr dc_ip;
fstring srv_name;
if ( !rpc_find_dc(lp_workgroup(), srv_name, &dc_ip) ) {
diff --git a/source4/auth/auth_server.c b/source4/auth/auth_server.c
index d0c4bfc902..8e1c712f5e 100644
--- a/source4/auth/auth_server.c
+++ b/source4/auth/auth_server.c
@@ -32,7 +32,7 @@ static struct smbcli_state *server_cryptkey(TALLOC_CTX *mem_ctx)
{
struct smbcli_state *cli = NULL;
fstring desthost;
- struct in_addr dest_ip;
+ struct ipv4_addr dest_ip;
const char *p;
char *pserver;
BOOL connected_ok = False;