diff options
author | Toomas Soome <tsoome@me.com> | 2017-08-08 16:39:41 +0300 |
---|---|---|
committer | Dan McDonald <danmcd@joyent.com> | 2017-11-10 13:51:41 -0500 |
commit | 62ba43a590f5c5aad74961c6c0d2c1703599b40c (patch) | |
tree | 1e3d35c39bfc5f0d4ad54e8f20e83676ce9b63fd | |
parent | 9992e6a682b1c35b4385c3b512db329ec8ab9ede (diff) | |
download | illumos-joyent-62ba43a590f5c5aad74961c6c0d2c1703599b40c.tar.gz |
8779 mech_spnego: variable set but not used
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: Yuri Pankov <yuripv@gmx.com>
Reviewed by: Gary Mills <gary_mills@fastmail.fm>
Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r-- | usr/src/lib/gss_mechs/mech_spnego/mech/spnego_mech.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/usr/src/lib/gss_mechs/mech_spnego/mech/spnego_mech.c b/usr/src/lib/gss_mechs/mech_spnego/mech/spnego_mech.c index 8faac2d3a1..8b6bf9fd84 100644 --- a/usr/src/lib/gss_mechs/mech_spnego/mech/spnego_mech.c +++ b/usr/src/lib/gss_mechs/mech_spnego/mech/spnego_mech.c @@ -1115,8 +1115,6 @@ cleanup: /* We don't want to import KRB5 headers here */ static const gss_OID_desc gss_mech_krb5_oid = { 9, "\052\206\110\206\367\022\001\002\002" }; -static const gss_OID_desc gss_mech_krb5_wrong_oid = - { 9, "\052\206\110\202\367\022\001\002\002" }; /* * verify that the input token length is not 0. If it is, just return. @@ -1167,7 +1165,6 @@ make_NegHints(OM_uint32 *minor_status, OM_uint32 minor; unsigned int tlen = 0; unsigned int hintNameSize = 0; - unsigned int negHintsSize = 0; unsigned char *ptr; unsigned char *t; @@ -1251,7 +1248,6 @@ make_NegHints(OM_uint32 *minor_status, /* Length of DER encoded hintName */ tlen += 1 + gssint_der_length_size(hintNameSize); - negHintsSize = tlen; t = (unsigned char *)malloc(tlen); if (t == NULL) { @@ -1855,7 +1851,6 @@ spnego_gss_accept_sec_context( gss_buffer_t mechtok_in, mic_in, mic_out; gss_buffer_desc mechtok_out = GSS_C_EMPTY_BUFFER; spnego_gss_ctx_id_t sc = NULL; - OM_uint32 mechstat = GSS_S_FAILURE; int sendTokenInit = 0, tmpret; mechtok_in = mic_in = mic_out = GSS_C_NO_BUFFER; @@ -1929,7 +1924,6 @@ spnego_gss_accept_sec_context( * round-trip. RET is set to a default value according to * whether it is the first round-trip. */ - mechstat = GSS_S_FAILURE; if (negState != REQUEST_MIC && mechtok_in != GSS_C_NO_BUFFER) { ret = acc_ctx_call_acc(minor_status, sc, verifier_cred_handle, mechtok_in, @@ -1937,8 +1931,6 @@ spnego_gss_accept_sec_context( ret_flags, time_rec, delegated_cred_handle, &negState, &return_token); - } else if (negState == REQUEST_MIC) { - mechstat = GSS_S_CONTINUE_NEEDED; } /* Solaris SPNEGO */ |