summaryrefslogtreecommitdiff
path: root/source3/include/popt_common.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2012-01-30 10:53:18 +0100
committerAndreas Schneider <asn@cryptomilk.org>2012-02-01 21:54:21 +0100
commit8080dbad78edbc26c8ece8ae7f1abc27f0d7afd4 (patch)
tree2761fe7d45b1864f21f3d4d8dadca0337b99b05d /source3/include/popt_common.h
parent8c66c8c756bde8654a3c1d07082b0ca5d357dc29 (diff)
downloadsamba-8080dbad78edbc26c8ece8ae7f1abc27f0d7afd4.tar.gz
samba-8080dbad78edbc26c8ece8ae7f1abc27f0d7afd4.tar.bz2
samba-8080dbad78edbc26c8ece8ae7f1abc27f0d7afd4.zip
s3-lib: Fix util_cmdline which doesn't use popt.
This creates its own header file for util_cmdline so it doesn't need to link against popt. This should fix linking on FreeBSD.
Diffstat (limited to 'source3/include/popt_common.h')
-rw-r--r--source3/include/popt_common.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/source3/include/popt_common.h b/source3/include/popt_common.h
index 10dd2f4ebe..2125ed6f83 100644
--- a/source3/include/popt_common.h
+++ b/source3/include/popt_common.h
@@ -21,6 +21,7 @@
#define _POPT_COMMON_H
#include <popt.h>
+#include "auth_info.h"
/* Common popt structures */
extern struct poptOption popt_common_samba[];
@@ -47,19 +48,6 @@ extern const struct poptOption popt_common_dynconfig[];
#define POPT_COMMON_DEBUGLEVEL { NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_debuglevel, 0, "Common samba debugging:", NULL },
#define POPT_COMMON_OPTION { NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_option, 0, "Common samba commandline config:", NULL },
-struct user_auth_info {
- char *username;
- char *domain;
- char *password;
- bool got_pass;
- bool use_kerberos;
- int signing_state;
- bool smb_encrypt;
- bool use_machine_account;
- bool fallback_after_kerberos;
- bool use_ccache;
-};
-
void popt_common_set_auth_info(struct user_auth_info *auth_info);
#endif /* _POPT_COMMON_H */