ruby/ext
Kazuki Yamaguchi 2e601c284c digest: remove OpenSSL engine
The OpenSSL engine of Digest uses the low-level API of OpenSSL, whose
use has been discouraged for years for multiple reasons.

A long-standing issue on a FIPS-enabled system is that using ::Digest
results in crashing the Ruby process, because the low-level API lacks
the mechanism to report an error (the policy violation) and thus kills
the process as a last resort[1][2]. Also, the upcoming OpenSSL 3.0 will
deprecate it for future removal[3]. Compiling with
-Wdeprecated-declarations will start to emit warnings.

A proper fix for this is to make it use the EVP API instead. This is a
non-trivial work as it requires backwards-incompatible changes to the
framework interface of Digest::Base and rb_digest_metadata_t.

It is more than 15 years ago that the openssl library became part of the
standard library. It has implemented the exactly same functionality as
OpenSSL::Digest, in fact, as a subclass of Digest::Class. There is not
much point in having an identical code in the digest library. Let's
just get rid of OpenSSL within digest. This leaves the C implementations
and the CommonCrypto engine for Apple systems.

A patch is being prepared for the openssl library to provide ::Digest
constants for better performance[4].

[1] https://bugs.ruby-lang.org/issues/6946
[2] https://bugs.ruby-lang.org/issues/13681
[3] https://www.openssl.org/docs/OpenSSL300Design.html
[4] https://github.com/ruby/openssl/pull/377
2020-12-02 11:09:12 +09:00
..
-test- memory_view.c: Check availability in rb_memory_view_get 2020-12-02 09:44:03 +09:00
bigdecimal Fixed typo in comment 2020-10-10 02:32:21 -04:00
cgi/escape sed -i '/rmodule.h/d' 2020-08-27 16:42:06 +09:00
continuation sed -i '/rmodule.h/d' 2020-08-27 16:42:06 +09:00
coverage Document Different Coverage Modes 2020-11-20 09:24:46 +09:00
date [ruby/date] Numeric already includes Comparable 2020-11-12 21:35:17 +09:00
dbm sed -i '/rmodule.h/d' 2020-08-27 16:42:06 +09:00
digest digest: remove OpenSSL engine 2020-12-02 11:09:12 +09:00
etc sed -i '/rmodule.h/d' 2020-08-27 16:42:06 +09:00
fcntl sed -i '/rmodule.h/d' 2020-08-27 16:42:06 +09:00
fiber Update dependencies 2019-11-18 23:16:22 +09:00
fiddle Update Fiddle's dependencies 2020-11-18 09:05:13 +09:00
gdbm sed -i '/rmodule.h/d' 2020-08-27 16:42:06 +09:00
io Adjusted indents [ci skip] 2020-10-11 14:22:43 +09:00
json Complex and Rational is embedded classes now 2020-11-10 13:14:42 +09:00
monitor sed -i '/rmodule.h/d' 2020-08-27 16:42:06 +09:00
nkf sed -i '/rmodule.h/d' 2020-08-27 16:42:06 +09:00
objspace Prevent objects from moving while iterating the heap 2020-10-06 16:22:01 -07:00
openssl Use rb_intern_const instead of rb_intern in Init functions 2020-10-21 12:46:53 +09:00
pathname Promote pathname to default gems 2020-10-14 14:42:53 +09:00
psych Appended a newline to suppress newline-eof warning 2020-10-06 23:18:42 +09:00
pty sed -i '/rmodule.h/d' 2020-08-27 16:42:06 +09:00
racc/cparse Use rb_intern_const instead of rb_intern in Init functions 2020-10-21 12:46:53 +09:00
rbconfig/sizeof sed -i '/rmodule.h/d' 2020-08-27 16:42:06 +09:00
readline Fix code example in Readline::HISTORY documentation. 2020-12-02 10:59:53 +09:00
ripper Store all kinds of syntax errors [Bug #17345] 2020-11-26 20:14:34 +09:00
rubyvm Added depend files 2019-07-14 01:31:29 +09:00
socket ext/socket/rubysocket.h: avoid the conflict of T_DATA definition in AIX 2020-11-01 00:12:55 -05:00
stringio [ruby/stringio] Bump version to 0.1.4 2020-08-27 23:55:17 +09:00
strscan mark regex internal to string scanner 2020-10-02 12:01:57 -07:00
syslog Promote syslog to default gems 2020-09-10 20:42:53 +09:00
win32 Use Fiddle::Importer directly 2020-11-11 09:27:36 +09:00
win32ole Add string encoding IBM720 alias CP720 (#3803) 2020-11-22 22:23:40 +09:00
zlib zlib: patches for mswin64 2020-11-24 08:27:08 +09:00
.document Update ext/.document 2020-12-01 17:35:28 +09:00
Setup Removed sdbm entries from toolchanins 2020-06-19 08:26:47 +09:00
Setup.atheos Removed sdbm entries from toolchanins 2020-06-19 08:26:47 +09:00
Setup.nt Removed sdbm entries from toolchanins 2020-06-19 08:26:47 +09:00
extmk.rb Configure static extensions only if in charge 2019-11-19 15:11:41 +09:00