nacho 02/05/24 08:17:27 Modified: jk/native2/server/isapi jk_isapi_plugin.c Log: * EOL Problems * Bug: If not compiled with iis5 support in, then doesnt need to check the iis version at all Revision Changes Path 1.19 +28 -31 jakarta-tomcat-connectors/jk/native2/server/isapi/jk_isapi_plugin.c Index: jk_isapi_plugin.c =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/server/isapi/jk_isapi_plugin.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- jk_isapi_plugin.c 22 May 2002 23:48:17 -0000 1.18 +++ jk_isapi_plugin.c 24 May 2002 15:17:27 -0000 1.19 @@ -60,7 +60,7 @@ * Author: Gal Shachor <[EMAIL PROTECTED]> * * Author: Larry Isaacs <[EMAIL PROTECTED]> * * Author: Ignacio J. Ortega <[EMAIL PROTECTED]> * - * Version: $Revision: 1.18 $ * + * Version: $Revision: 1.19 $ * ***************************************************************************/ // This define is needed to include wincrypt,h, needed to get client certificates @@ -161,20 +161,20 @@ if (pVer->dwFilterVersion > http_filter_revision) { pVer->dwFilterVersion = http_filter_revision; } - -#ifdef SF_NOTIFY_AUTH_COMPLETE + +#ifdef SF_NOTIFY_AUTH_COMPLETE pVer->dwFlags = SF_NOTIFY_ORDER_HIGH | SF_NOTIFY_SECURE_PORT | SF_NOTIFY_NONSECURE_PORT | SF_NOTIFY_PREPROC_HEADERS | SF_NOTIFY_AUTH_COMPLETE; -#else - pVer->dwFlags = SF_NOTIFY_ORDER_HIGH | - SF_NOTIFY_SECURE_PORT | - SF_NOTIFY_NONSECURE_PORT | - SF_NOTIFY_PREPROC_HEADERS; -#endif +#else + pVer->dwFlags = SF_NOTIFY_ORDER_HIGH | + SF_NOTIFY_SECURE_PORT | + SF_NOTIFY_NONSECURE_PORT | + SF_NOTIFY_PREPROC_HEADERS; +#endif strcpy(pVer->lpszFilterDesc, VERSION_STRING); @@ -220,18 +220,15 @@ } } } -#ifdef SF_NOTIFY_AUTH_COMPLETE +#ifdef SF_NOTIFY_AUTH_COMPLETE if (is_inited && (((SF_NOTIFY_PREPROC_HEADERS == dwNotificationType) && !iis5) || ((SF_NOTIFY_AUTH_COMPLETE == dwNotificationType) && iis5) ) ) -#else - if (is_inited && - (((SF_NOTIFY_PREPROC_HEADERS == dwNotificationType) && !iis5) - ) - ) -#endif +#else + if (is_inited && (SF_NOTIFY_PREPROC_HEADERS == dwNotificationType)) +#endif { char uri[INTERNET_MAX_URL_LENGTH]; char snuri[INTERNET_MAX_URL_LENGTH]="/"; @@ -248,21 +245,21 @@ DWORD szHost = sizeof(Host); DWORD szTranslate = sizeof(Translate); -#ifdef SF_NOTIFY_AUTH_COMPLETE - if (iis5) { - GetHeader=((PHTTP_FILTER_AUTH_COMPLETE_INFO)pvNotification)->GetHeader; - SetHeader=((PHTTP_FILTER_AUTH_COMPLETE_INFO)pvNotification)->SetHeader; - AddHeader=((PHTTP_FILTER_AUTH_COMPLETE_INFO)pvNotification)->AddHeader; - } else { - GetHeader=((PHTTP_FILTER_PREPROC_HEADERS)pvNotification)->GetHeader; - SetHeader=((PHTTP_FILTER_PREPROC_HEADERS)pvNotification)->SetHeader; - AddHeader=((PHTTP_FILTER_PREPROC_HEADERS)pvNotification)->AddHeader; - } -#else - GetHeader=((PHTTP_FILTER_PREPROC_HEADERS)pvNotification)->GetHeader; - SetHeader=((PHTTP_FILTER_PREPROC_HEADERS)pvNotification)->SetHeader; - AddHeader=((PHTTP_FILTER_PREPROC_HEADERS)pvNotification)->AddHeader; -#endif +#ifdef SF_NOTIFY_AUTH_COMPLETE + if (iis5) { + GetHeader=((PHTTP_FILTER_AUTH_COMPLETE_INFO)pvNotification)->GetHeader; + SetHeader=((PHTTP_FILTER_AUTH_COMPLETE_INFO)pvNotification)->SetHeader; + AddHeader=((PHTTP_FILTER_AUTH_COMPLETE_INFO)pvNotification)->AddHeader; + } else { + GetHeader=((PHTTP_FILTER_PREPROC_HEADERS)pvNotification)->GetHeader; + SetHeader=((PHTTP_FILTER_PREPROC_HEADERS)pvNotification)->SetHeader; + AddHeader=((PHTTP_FILTER_PREPROC_HEADERS)pvNotification)->AddHeader; + } +#else + GetHeader=((PHTTP_FILTER_PREPROC_HEADERS)pvNotification)->GetHeader; + SetHeader=((PHTTP_FILTER_PREPROC_HEADERS)pvNotification)->SetHeader; + AddHeader=((PHTTP_FILTER_PREPROC_HEADERS)pvNotification)->AddHeader; +#endif
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>