mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-04 21:49:38 +00:00
Various ssleay to openssl fixups
This commit is contained in:
parent
794b9c8f50
commit
724e095e76
@ -237,7 +237,7 @@ links:
|
|||||||
(cd $$i && echo "making links in $$i..." && \
|
(cd $$i && echo "making links in $$i..." && \
|
||||||
$(MAKE) SDIRS='${SDIRS}' links ) || exit 1; \
|
$(MAKE) SDIRS='${SDIRS}' links ) || exit 1; \
|
||||||
done;
|
done;
|
||||||
@(SSLEAY="`pwd`/apps/openssl"; export SSLEAY; sh tools/c_rehash certs)
|
@(OPENSSL="`pwd`/apps/openssl"; export OPENSSL; sh tools/c_rehash certs)
|
||||||
|
|
||||||
dclean:
|
dclean:
|
||||||
/bin/rm -f *.bak
|
/bin/rm -f *.bak
|
||||||
|
@ -4,6 +4,6 @@
|
|||||||
|
|
||||||
for i in $*
|
for i in $*
|
||||||
do
|
do
|
||||||
h=`ssleay x509 -hash -noout -in $i`
|
h=`openssl x509 -hash -noout -in $i`
|
||||||
echo "$h.0 => $i"
|
echo "$h.0 => $i"
|
||||||
done
|
done
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
for i in $*
|
for i in $*
|
||||||
do
|
do
|
||||||
n=`ssleay x509 -subject -issuer -enddate -noout -in $i`
|
n=`openssl x509 -subject -issuer -enddate -noout -in $i`
|
||||||
echo "$i"
|
echo "$i"
|
||||||
echo "$n"
|
echo "$n"
|
||||||
echo "--------"
|
echo "--------"
|
||||||
|
@ -5,6 +5,6 @@
|
|||||||
|
|
||||||
for i in $*
|
for i in $*
|
||||||
do
|
do
|
||||||
n=`ssleay x509 -issuer -noout -in $i`
|
n=`openssl x509 -issuer -noout -in $i`
|
||||||
echo "$i\t$n"
|
echo "$i\t$n"
|
||||||
done
|
done
|
||||||
|
@ -5,6 +5,6 @@
|
|||||||
|
|
||||||
for i in $*
|
for i in $*
|
||||||
do
|
do
|
||||||
n=`ssleay x509 -subject -noout -in $i`
|
n=`openssl x509 -subject -noout -in $i`
|
||||||
echo "$i $n"
|
echo "$i $n"
|
||||||
done
|
done
|
||||||
|
@ -4,23 +4,23 @@
|
|||||||
# on the command line.
|
# on the command line.
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ "$SSLEAY"x = "x" -o ! -x "$SSLEAY" ]; then
|
if [ "$OPENSSL"x = "x" -o ! -x "$OPENSSL" ]; then
|
||||||
SSLEAY='ssleay'
|
OPENSSL='openssl'
|
||||||
export SSLEAY
|
export OPENSSL
|
||||||
fi
|
fi
|
||||||
DIR=/usr/local/ssl
|
DIR=/usr/local/ssl
|
||||||
PATH=$DIR/bin:$PATH
|
PATH=$DIR/bin:$PATH
|
||||||
|
|
||||||
if [ ! -f "$SSLEAY" ]; then
|
if [ ! -f "$OPENSSL" ]; then
|
||||||
found=0
|
found=0
|
||||||
for dir in . `echo $PATH | sed -e 's/:/ /g'`; do
|
for dir in . `echo $PATH | sed -e 's/:/ /g'`; do
|
||||||
if [ -f "$dir/$SSLEAY" ]; then
|
if [ -f "$dir/$OPENSSL" ]; then
|
||||||
found=1
|
found=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ $found = 0 ]; then
|
if [ $found = 0 ]; then
|
||||||
echo "c_rehash: rehashing skipped ('ssleay' program still not available)" 1>&2
|
echo "c_rehash: rehashing skipped ('openssl' program still not available)" 1>&2
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -44,7 +44,7 @@ do
|
|||||||
for i in *.pem
|
for i in *.pem
|
||||||
do
|
do
|
||||||
if [ $i != '*.pem' ]; then
|
if [ $i != '*.pem' ]; then
|
||||||
h=`$SSLEAY x509 -hash -noout -in $i`
|
h=`$OPENSSL x509 -hash -noout -in $i`
|
||||||
if [ "x$h" = "x" ]; then
|
if [ "x$h" = "x" ]; then
|
||||||
echo $i does not contain a certificate
|
echo $i does not contain a certificate
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user