diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-03-03 04:33:15 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-05-17 20:04:33 +0200 |
commit | 9ac855c8b8680aedc299497fc48004e1523cb49a (patch) | |
tree | 3275386a53f5f4a4012b84d8aa339111f8837d3a /auth | |
parent | dce6fdf195f3485be4b4e6b1dcf44b57a4cf7782 (diff) | |
download | samba-9ac855c8b8680aedc299497fc48004e1523cb49a.tar.gz |
auth/gensec: implement gensec_spnego_expire_time()
metze
Diffstat (limited to 'auth')
-rw-r--r-- | auth/gensec/spnego.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/auth/gensec/spnego.c b/auth/gensec/spnego.c index 15fd8dae1d..6ce97d99fa 100644 --- a/auth/gensec/spnego.c +++ b/auth/gensec/spnego.c @@ -1355,6 +1355,17 @@ static bool gensec_spnego_have_feature(struct gensec_security *gensec_security, feature); } +static NTTIME gensec_spnego_expire_time(struct gensec_security *gensec_security) +{ + struct spnego_state *spnego_state = (struct spnego_state *)gensec_security->private_data; + + if (!spnego_state->sub_sec_security) { + return GENSEC_EXPIRE_TIME_INFINITY; + } + + return gensec_expire_time(spnego_state->sub_sec_security); +} + static const char *gensec_spnego_oids[] = { GENSEC_OID_SPNEGO, NULL @@ -1384,6 +1395,7 @@ static const struct gensec_security_ops gensec_spnego_security_ops = { .session_info = gensec_spnego_session_info, .want_feature = gensec_spnego_want_feature, .have_feature = gensec_spnego_have_feature, + .expire_time = gensec_spnego_expire_time, .enabled = true, .priority = GENSEC_SPNEGO }; |