#!/bin/bash
# # Copyright (C) 2004 Networks Associates Technology Inc. All rights reserved.
#
# Extract the transparency configuration for a proxy
#
if [ -f $NETAWSS/.profile.vars ]; then 
 . $NETAWSS/.profile.vars 
else 
 . /var/NAIENV/.profile.vars 
fi 

find_config()
{
for f in pop3 http smtp ftp
do
    xsltproc --stringparam proxy ${f} --stringparam speculative off --stringparam multicast off --stringparam reset off ${WSMGMT}/set_transparent_ports.xsl ${XMLCONFDIR}/${f}.xml
done
}

TX_CONFIG=`find_config | md5sum | cut -f1 -d" "`
echo ${TX_CONFIG} transparency

exit 0
