git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/2] avoid functions deprecated in OpenSSL 3+

From
EWEric Wong <e@80x24.org>
Date
Aug 1, 2023, 02:54 UTC
Message-ID
<20230801025454.1137802-1-e@80x24.org>

OpenSSL appears to be getting rid of the SHA1* and SHA256* functions in favor of the more generic EVP_* APIs. The EVP_* APIs unfortunately require more attention to be paid to memory management and require specialized copy functions (like gcrypt), so I'm only using them with OpenSSL 3.x (I've tested 1.1.1n, too).

I'm in favor of keeping OpenSSL support since its development headers/libraries are more likely to be already-installed on developers' systems than nettle or gcrypt.

On Debian systems participating in popularity-contest: libssl-dev is in 21.95% of systems, while nettle-dev and libgcrypt20-dev is are only in 4.08% and 2.94%, respectively:

  https://qa.debian.org/popcon.php?package=openssl
  https://qa.debian.org/popcon.php?package=nettle
  https://qa.debian.org/popcon.php?package=libgcrypt20
Eric Wong (2):
  sha256: avoid functions deprecated in OpenSSL 3+
  avoid SHA-1 functions deprecated in OpenSSL 3+
 Makefile         |  6 ++++++
 hash-ll.h        | 18 ++++++++++++++++--
 sha1/openssl.h   | 49 ++++++++++++++++++++++++++++++++++++++++++++++++
 sha256/openssl.h | 49 ++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 120 insertions(+), 2 deletions(-)
 create mode 100644 sha1/openssl.h
 create mode 100644 sha256/openssl.h
Next: Eric Wong
Message 1 of 6 in “avoid functions deprecated in OpenSSL 3+”
  1. 0/2 avoid functions deprecated in OpenSSL 3+Eric Wong, Aug 1, 2023
  2. 1/2 sha256: avoid functions deprecated in OpenSSL 3+Eric Wong, Aug 1, 2023
  3. 2/2 avoid SHA-1 functions deprecated in OpenSSL 3+Eric Wong, Aug 1, 2023
  4. Junio C HamanoAug 1, 2023
  5. Eric WongAug 1, 2023
  6. Junio C HamanoAug 1, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.