From nobody Thu May 11 23:03:54 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QHSBM1f3gz4B9M9; Thu, 11 May 2023 23:03:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QHSBM17Vkz3DgW; Thu, 11 May 2023 23:03:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683846235; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RAwibsxNKn21dFipHxuR69xjpH2dR5MMaH7wyzzgtkg=; b=it0fwaOkEipHmeRgKAOC7I9S/PmGv5XenZi+RL2yhUmiOTBcfeaNqjDCS7A9CEarq6VaN1 V9KLlEgxlq/9M9n3qMmAJzkrjcy4k5MY0chFjYIUigXjuEtnTEA2ckPpMWsXqXwLLhcA17 dygaJDM53nkPG4Uvnl7D5kniVhq5XJjeh1nYsO/P4dSS7SEj6XjmlK9mk/NCBM/KJqvYTL WPo6FMWtbLJRyKpOjrwfhyyeteFEsrQMMiTsaRqf5MrRuOuqN/0iO44+rFpZTTxyh/xS24 QzJEZBW/KOOHm+BLE84FLQCF7SNDawD3XrT/vM1Q96SEEpYlQMSm4eaTYIAJ2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683846235; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RAwibsxNKn21dFipHxuR69xjpH2dR5MMaH7wyzzgtkg=; b=kj3i1j7V4TFWL53DzoAk5AYzobeO9NiFzeg7vV+12eummAGR5iDjXXzvvpgxp8/KDMzhOE DHjMD9EL2vYLSP4HwBq2cFrw/WvnFGHbvIpbr4C6oKZVHeYbNHf2cQkY5hjhA7j2bEFCeu lXi/2/xIMvQY2IJLdJcv3iJQv+ZEIotW/+3uZfYGQygufhcIBH9qywOdNKN5RDQ7o9Agt/ keT7XSQqhUDFKVTKLrUUk0hXTMYX9j3GU8+737bOf/q6kSO4t4GdVRIZzMbuNg180LEuF7 p5885NfFd1fIMh7trfnJ71j4R4WkCBgkOM/VZNaSD3c5FLaAe1pqnkvq2ziQvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683846235; a=rsa-sha256; cv=none; b=WeXQ4m+A0sedWBN/oXeLOoXuhwtQyl5gSDa6Lbh0yfYiuFCkea4+Vzfwr8FE34ijZGduZC QtwWGcnoLUN/jv/XF0oGlONA5Jz9bsEvSDFw+Co+JbuHce7BDmgysCRAl93bL7H2+Gn4qf Ru/pd7GeoqXEywaTgbUY+Rw1/hIbKisemQZ4w2kQ71NM7B8w+ZUcr5ge4OGq2P1jML6vvN rzpm6SA5pI23PGaXlDTQCsh7fzepWMHdCeRu2BycdYBhzlgtHKiFNKbXUNC+IDI95mrsbT Kp8F8lIhgFd1gMd87+nC3hn9lXeMcujqY46W8Bp0PKPhUP10LlXq4aOEo2ymfg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QHSBM0BfTz1B2v; Thu, 11 May 2023 23:03:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 34BN3s95015537; Thu, 11 May 2023 23:03:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34BN3sMb015536; Thu, 11 May 2023 23:03:54 GMT (envelope-from git) Date: Thu, 11 May 2023 23:03:54 GMT Message-Id: <202305112303.34BN3sMb015536@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 692b19255c5d - main - dma: use OpenSSL 1.1 init API List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 692b19255c5d53a5f42ea49ad569284316315577 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=692b19255c5d53a5f42ea49ad569284316315577 commit 692b19255c5d53a5f42ea49ad569284316315577 Author: Ed Maste AuthorDate: 2023-05-11 14:44:05 +0000 Commit: Ed Maste CommitDate: 2023-05-11 23:03:34 +0000 dma: use OpenSSL 1.1 init API > The SSL_library_init() and OpenSSL_add_ssl_algorithms() functions were > deprecated in OpenSSL 1.1.0 by OPENSSL_init_ssl(). and > The ERR_load_crypto_strings(), SSL_load_error_strings(), and > ERR_free_strings() functions were deprecated in OpenSSL 1.1.0 by > OPENSSL_init_crypto() and OPENSSL_init_ssl() and should not be used. Reviewed by: ngie Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D40065 --- contrib/dma/crypto.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/dma/crypto.c b/contrib/dma/crypto.c index 368238b9d632..c87d23e66a7c 100644 --- a/contrib/dma/crypto.c +++ b/contrib/dma/crypto.c @@ -115,8 +115,7 @@ smtp_init_crypto(int fd, int feature, struct smtp_features* features) /* XXX clean up on error/close */ /* Init SSL library */ - SSL_library_init(); - SSL_load_error_strings(); + OPENSSL_init_ssl(0, NULL); // Allow any possible version #if (OPENSSL_VERSION_NUMBER >= 0x10100000L)