diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-01-11 11:39:17 +1100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-01-18 16:23:24 +0100 |
commit | ed88012dd22c330117ed81c9adcc9e5c6e545bf8 (patch) | |
tree | 08f4d9c47eacd6647d51455b05680b30b9edb32e /source3 | |
parent | c7590979567008708af6fa9f4eba71001c404f91 (diff) | |
download | samba-ed88012dd22c330117ed81c9adcc9e5c6e545bf8.tar.gz samba-ed88012dd22c330117ed81c9adcc9e5c6e545bf8.tar.bz2 samba-ed88012dd22c330117ed81c9adcc9e5c6e545bf8.zip |
s3-gse Remove authenticated flag from gse
The only user for this flag is called only directly after it was set.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/librpc/crypto/gse.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/source3/librpc/crypto/gse.c b/source3/librpc/crypto/gse.c index b2b08f0062..76f6109e93 100644 --- a/source3/librpc/crypto/gse.c +++ b/source3/librpc/crypto/gse.c @@ -85,8 +85,6 @@ struct gse_context { OM_uint32 gss_got_flags; gss_cred_id_t delegated_cred_handle; gss_name_t client_name; - - bool authenticated; }; #ifndef HAVE_GSS_OID_EQUAL @@ -486,7 +484,6 @@ static NTSTATUS gse_get_server_auth_token(TALLOC_CTX *mem_ctx, switch (gss_maj) { case GSS_S_COMPLETE: /* we are done with it */ - gse_ctx->authenticated = true; status = NT_STATUS_OK; break; case GSS_S_CONTINUE_NEEDED: @@ -524,10 +521,6 @@ done: static NTSTATUS gse_verify_server_auth_flags(struct gse_context *gse_ctx) { - if (!gse_ctx->authenticated) { - return NT_STATUS_INVALID_HANDLE; - } - if (memcmp(gse_ctx->ret_mech, gss_mech_krb5, sizeof(gss_OID_desc)) != 0) { return NT_STATUS_ACCESS_DENIED; |