mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-16 06:52:27 +00:00
b077aed33b
Migrate to OpenSSL 3.0 in advance of FreeBSD 14.0. OpenSSL 1.1.1 (the version we were previously using) will be EOL as of 2023-09-11. Most of the base system has already been updated for a seamless switch to OpenSSL 3.0. For many components we've added `-DOPENSSL_API_COMPAT=0x10100000L` to CFLAGS to specify the API version, which avoids deprecation warnings from OpenSSL 3.0. Changes have also been made to avoid OpenSSL APIs that were already deprecated in OpenSSL 1.1.1. The process of updating to contemporary APIs can continue after this merge. Additional changes are still required for libarchive and Kerberos- related libraries or tools; workarounds will immediately follow this commit. Fixes are in progress in the upstream projects and will be incorporated when those are next updated. There are some performance regressions in benchmarks (certain tests in `openssl speed`) and in some OpenSSL consumers in ports (e.g. haproxy). Investigation will continue for these. Netflix's testing showed no functional regression and a rather small, albeit statistically significant, increase in CPU consumption with OpenSSL 3.0. Thanks to ngie@ and des@ for updating base system components, to antoine@ and bofh@ for ports exp-runs and port fixes/workarounds, and to Netflix and everyone who tested prior to commit or contributed to this update in other ways. PR: 271615 PR: 271656 [exp-run] Relnotes: Yes Sponsored by: The FreeBSD Foundation
47 lines
2.1 KiB
Markdown
47 lines
2.1 KiB
Markdown
Notes for 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 the PERL module `Text::Template` also be
|
|
installed (see [NOTES-PERL.md](NOTES-PERL.md)).
|
|
|
|
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.watt-32.net/>.
|
|
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.
|
|
|
|
RUN-TIME CAVEAT LECTOR
|
|
--------------
|
|
|
|
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>.
|