summaryrefslogtreecommitdiff
path: root/source4/libcli/auth/gensec.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-07-11 10:29:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:56:56 -0500
commitb0d94c8e7d6ee223198600747c7e70028b2ff418 (patch)
tree0de1787808ca991fd5db4329d7182e0ae13aa60b /source4/libcli/auth/gensec.h
parent43e7d4109f144e20d661fe0559cb47708b511978 (diff)
downloadsamba-b0d94c8e7d6ee223198600747c7e70028b2ff418.tar.gz
samba-b0d94c8e7d6ee223198600747c7e70028b2ff418.tar.bz2
samba-b0d94c8e7d6ee223198600747c7e70028b2ff418.zip
r1440: GENSEC improvements:
- Infrustructure for kerberos - Don't segfault on un-implemented backend functions - Add comments. Andrew Bartlett (This used to be commit 1c31aa42710421917428d6ba86328ea5179751bd)
Diffstat (limited to 'source4/libcli/auth/gensec.h')
-rw-r--r--source4/libcli/auth/gensec.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/libcli/auth/gensec.h b/source4/libcli/auth/gensec.h
index e30369ba0b..7cd56936d2 100644
--- a/source4/libcli/auth/gensec.h
+++ b/source4/libcli/auth/gensec.h
@@ -25,10 +25,18 @@
struct gensec_security;
struct gensec_user {
const char *domain;
+ const char *realm;
const char *name;
const char *password;
char schan_session_key[16];
};
+struct gensec_target {
+ const char *principal;
+ const char *hostname;
+ const struct sock_addr *addr;
+};
+
+
/* GENSEC mode */
enum gensec_role
{
@@ -71,6 +79,7 @@ struct gensec_security {
const struct gensec_security_ops *ops;
void *private_data;
struct gensec_user user;
+ struct gensec_target target;
enum gensec_role gensec_role;
BOOL subcontext;
};