Delete CASGatewayCookie after successful authentication.

This allows people to reauthenticate after their mod_auth_cas session times out when using gateway mode.
I added a removeGatewayCookie test.  I also fixed a compile error in 
setCASCookie_test and removed an unreferenced variable from 
setCASCookieExpiryNow_test.

On Mon, 18 Aug 2014, pames <notifications@github.com> wrote:

>
>In src/mod_auth_cas.c:
>
>> @@ -2061,6 +2061,10 @@ int cas_authenticate(request_rec *r)
>>  				return HTTP_INTERNAL_SERVER_ERROR;
>>
>>  			setCASCookie(r, (ssl ? d->CASSecureCookie : d->CASCookie), cookieString, ssl, CAS_S
>ESSION_EXPIRE_SESSION_SCOPE_TIMEOUT);
>> +			/* remove gateway cookie so they can reauthenticate later */
>> +			if (getCASCookie(r, d->CASGatewayCookie)) {
>> +			    setCASCookie(r, d->CASGatewayCookie, "TRUE", ssl, CAS_SESSION_EXPIRE_COOKIE_NOW
>);
>
>Yes, those failures are meant to shame me into eventually writing them / refactoring
>to make them testable.
>
>—
>Reply to this email directly or view it onGitHub.[354268__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyNDAxNTkyNCwiZGF0Y
>SI6eyJpZCI6MzQ5MDAwODV9fQ==--6b0f1f3f69748e6779b89f2ad50abeb19c2af79a.gif]
>
>
>