forked from rpms/openssl
e21e1846a7
Thu Sep 21 2000 Nalin Dahyabhai <nalin@redhat.com> - tweak the makefile some more - disable MD2 support - disable MDC2 support - tweak the makefile - rework certificate makefile to have the right parts for Apache - strip binaries and libraries - enable actual RSA support - use /usr/bin/perl instead of /usr/bin/perl - move the passwd.1 man page out of the passwd package's way - update to 0.9.5a, modified for U.S. - add perl as a build-time requirement - disable RC5, IDEA support - break out python extensions - byte-compile python extensions without the build-root - adjust the makefile to not remove temporary files (like .key files when building .csr files) - fix the building of python modules without openssl-devel already installed Wed Mar 01 2000 Florian La Roche <Florian.LaRoche@redhat.de> - Bero told me to move the Makefile into this package Wed Mar 01 2000 Florian La Roche <Florian.LaRoche@redhat.de> - add lib*.so symlinks to link dynamically against shared libs Tue Feb 29 2000 Florian La Roche <Florian.LaRoche@redhat.de> - update to 0.9.5 - run ldconfig directly in post/postun - add FAQ Sat Dec 18 1999 Bernhard Rosenkränzer <bero@redhat.de> - Fix build on non-x86 platforms Fri Nov 12 1999 Bernhard Rosenkränzer <bero@redhat.de> - move /usr/share/ssl/* from -devel to main package Tue Oct 26 1999 Bernhard Rosenkränzer <bero@redhat.de> - inital packaging - changes from base: - Move /usr/local/ssl to /usr/share/ssl for FHS compliance - handle RPM_OPT_FLAGS
53 lines
1.5 KiB
Bash
Executable File
53 lines
1.5 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
# Clean out patent-protected code.
|
|
# RSA: 4,405,829 20/09/2000
|
|
# MDC-2: 4,908,861 13/03/2007
|
|
# IDEA: 5,214,703 25/05/2010
|
|
# RC5: 5,724,428 03/03/2015
|
|
|
|
# RSA's patented parts.
|
|
function nullify_rsa() {
|
|
echo Removing patented parts from crypto/rsa/rsa_eay.c
|
|
cat crypto/rsa/rsa_eay.c | \
|
|
awk 'BEGIN {ech=1;} \
|
|
/#if/ {if(ech < 1) ech--;} \
|
|
/#ifndef.*RSA_NULL/ {ech--;} \
|
|
{if(ech>0) {;print $0};} \
|
|
/#endif/ {if(ech < 1) ech++;}' > crypto/rsa/nullrsa_eay.c && \
|
|
mv crypto/rsa/nullrsa_eay.c crypto/rsa/rsa_eay.c
|
|
rm -fr crypto/rsa/asm
|
|
}
|
|
|
|
if [ `date +%Y%m%d` -lt 20000921 ] ; then
|
|
nullify_rsa
|
|
fi
|
|
|
|
# Bah. Assembler is hard to port.
|
|
(find crypto/{idea,mdc2,rc5,md2}/asm -type f | xargs -r rm -fv)
|
|
|
|
# IDEA, MDC2 and RC5.
|
|
for c in `find crypto/{idea,mdc2,rc5,md2} -name "*.c" -a \! -name "*test*" -type f` ; do
|
|
echo Destroying $c
|
|
cat /dev/null > $c
|
|
done
|
|
for c in `find crypto/evp -name "*_r5.c" -o -name "*_i.c" -o -name "*_mdc2.c" -o -name "*_md2.c"`; do
|
|
echo Destroying $c
|
|
cat /dev/null > $c
|
|
done
|
|
for h in `find include crypto ssl apps test -name "*.h"` ; do
|
|
echo Removing IDEA, MDC2, MD2 and RC5 references from $h
|
|
cat $h | \
|
|
awk 'BEGIN {ech=1;} \
|
|
/#[ \t]*if/ {if(ech < 1) ech--;} \
|
|
/#[ \t]*ifndef.*NO_IDEA/ {ech--;} \
|
|
/#[ \t]*ifndef.*NO_MDC2/ {ech--;} \
|
|
/#[ \t]*ifndef.*NO_MD2/ {ech--;} \
|
|
/#[ \t]*ifndef.*NO_RC5/ {ech--;} \
|
|
{if(ech>0) {;print $0};} \
|
|
/#endif/ {if(ech < 1) ech++;}' > $h.hobbled && \
|
|
mv $h.hobbled $h
|
|
done
|
|
# Make the makefiles happy.
|
|
touch crypto/rc5/asm/rc5-586.pl
|