mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-04-28 10:44:38 +00:00
For all config targets (except VMS, because it has a completely different set of scripts), '/usr/local/ssl' is the default prefix for installation of programs and libraries, as well as the path for OpenSSL run-time configuration. For programs built to run in a Windows environment, this default is unsafe, and the user should set a different prefix. This has been hinted at in some documentation but not all, and the danger of leaving the default as is hasn't been documented at all. This change documents the issue as a caveat lector, and all configuration examples now include an example --prefix. CVE-2019-1552 Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9456)
58 lines
2.4 KiB
Plaintext
58 lines
2.4 KiB
Plaintext
|
|
|
|
INSTALLATION ON THE DOS PLATFORM WITH DJGPP
|
|
-------------------------------------------
|
|
|
|
OpenSSL has been ported to DJGPP, a Unix look-alike 32-bit run-time
|
|
environment for 16-bit DOS, but only with long filename support.
|
|
If you wish to compile on native DOS with 8+3 filenames, you will
|
|
have to tweak the installation yourself, including renaming files
|
|
with illegal or duplicate names.
|
|
|
|
You should have a full DJGPP environment installed, including the
|
|
latest versions of DJGPP, GCC, BINUTILS, BASH, etc. This package
|
|
requires that PERL and BC also be installed.
|
|
|
|
All of these can be obtained from the usual DJGPP mirror sites or
|
|
directly at "http://www.delorie.com/pub/djgpp". For help on which
|
|
files to download, see the DJGPP "ZIP PICKER" page at
|
|
"http://www.delorie.com/djgpp/zip-picker.html". You also need to have
|
|
the WATT-32 networking package installed before you try to compile
|
|
OpenSSL. This can be obtained from "http://www.bgnett.no/~giva/".
|
|
The Makefile assumes that the WATT-32 code is in the directory
|
|
specified by the environment variable WATT_ROOT. If you have watt-32
|
|
in directory "watt32" under your main DJGPP directory, specify
|
|
WATT_ROOT="/dev/env/DJDIR/watt32".
|
|
|
|
To compile OpenSSL, start your BASH shell, then configure for DJGPP by
|
|
running "./Configure" with appropriate arguments:
|
|
|
|
./Configure no-threads --prefix=/dev/env/DJDIR DJGPP
|
|
|
|
And finally fire up "make". You may run out of DPMI selectors when
|
|
running in a DOS box under Windows. If so, just close the BASH
|
|
shell, go back to Windows, and restart BASH. Then run "make" again.
|
|
|
|
CAVEAT LECTOR
|
|
-------------
|
|
|
|
### Default install and config paths
|
|
|
|
./Configure defaults to '/usr/local/ssl' as installation top. This is
|
|
suitable for Unix, but not for Windows, where this usually is a world
|
|
writable directory and therefore accessible for change by untrusted users.
|
|
It is therefore recommended to set your own --prefix or --openssldir to
|
|
some location that is not world writeable (see the example above)
|
|
|
|
### Entropy
|
|
|
|
Quoting FAQ:
|
|
|
|
"Cryptographic software needs a source of unpredictable data to work
|
|
correctly. Many open source operating systems provide a "randomness
|
|
device" (/dev/urandom or /dev/random) that serves this purpose."
|
|
|
|
As of version 0.9.7f DJGPP port checks upon /dev/urandom$ for a 3rd
|
|
party "randomness" DOS driver. One such driver, NOISE.SYS, can be
|
|
obtained from "http://www.rahul.net/dkaufman/index.html".
|