#!/sbin/sh
########################################
#  Product: HPUXOpenSSL
#  Fileset: Latest
#  preremove
#  (c) Copyright Hewlett-Packard Company
####################################
UTILS="/usr/lbin/sw/control_utils"
    if [[ ! -f $UTILS ]]
    then
        echo "ERROR: Cannot find $UTILS"
        exit 1
    fi
    . $UTILS
exitval=$SUCCESS
####################################
# Remove The Links
####################################
# Remove Execulable File Links
####################################

#if [[ -d /opt/openssl/bin ]]
#then
#	for list in `ls /opt/openssl/bin`
#	do
#		rm -f /usr/bin/$list 1>/dev/null 2>/dev/null
#	done
#fi

# Following is for fips 0.98f openssl cmd
#rm -rf /opt/openssl/fips/0.9.8/bin/openssl
#mv /opt/openssl/fips/0.9.8/bin/openssl98 /opt/openssl/fips/0.9.8/bin/openssl

#rm -rf /opt/openssl/fips/0.9.7/bin/fipsld64
#mv /opt/openssl/fips/0.9.7/bin/fipsld32 /opt/openssl/fips/0.9.7/bin/fipsld

#rm -rf /opt/openssl/fips/0.9.8/bin/fipsld64
#mv /opt/openssl/fips/0.9.8/bin/fipsld32 /opt/openssl/fips/0.9.8/bin/fipsld

####################################
exit $exitval
####################################
