From patchwork Mon Sep 11 18:59:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 112213 Delivered-To: patch@linaro.org Received: by 10.80.202.13 with SMTP id d13csp4963922edi; Mon, 11 Sep 2017 12:02:56 -0700 (PDT) X-Google-Smtp-Source: AOwi7QD/0+eAj1KhRNR768hAmoo/UpppCwswJYE1YxDeDvAoBxQxNDMDifk9DT+ObFHYqoTSmeVe X-Received: by 10.233.220.199 with SMTP id q190mr15768080qkf.222.1505156576061; Mon, 11 Sep 2017 12:02:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505156576; cv=none; d=google.com; s=arc-20160816; b=U1e6ePh5GTqv3lLIQMFstL21w6b7MUQWfrSAjPiGR3/cabAPGZ6cfSa2qYt6/FLo16 cBxWezoBO9aTVwQziEcYrWE9wjjXrT1BPL4ki5l4SfpFtiaKWNIQC4nV1/3Y2xula0aK 8FKnqn2JWR7tGWkYlsUiHT+iG/KMsJX5tV025CguaOMBgdUzDTcO7L+rJ7CtgSslvo0U r+EQMqVEgGmhcdLVU0GcFzgBBfHE4foocPkA61WKJfTlb6dtwaaK6yoG5fXhgr6aX0vk hBkcVB6z33RYQwKAJNnjenmxZ2KzHh3sLkhfrbQ9RKhXWEafMl+nUIvdd373vJ+f492t dFag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=4h7d1s9sBTglsjodTSaITOf007RW+dqgl+Qjj+OECII=; b=At5hhkWmfJrIgT6jOIgG/A9b6Fu52+hPq+726b0nZiqsgFwv9BcycngivWqW3cR6aT VuoWeSHbNM3e+8BRiYNxuT3BIfBTR8VyDn4YESFEgkn5Dic/xBmFJHZEfWzZFxm5h3xC /xH3gFtWpkzmrjdLooX7M1dDTStpnChy5Pc9x4xiEu87gv3+/E//mIzPyDdt9XiKcB55 f3rl0Kq1hpehdBgeH1mbli1oFS55RCYR/bY9F48AX3N19dS9AZzC3Sf0XCnQSMmr9k03 IkzD3H4V4VCjYDy8fhdCXSUnX8flJRDVzIRaZ506P9ojBTTs38ol6DUI7rfpmgbgHYgP LAHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id l66si10289142qkc.239.2017.09.11.12.02.55; Mon, 11 Sep 2017 12:02:56 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id B737A61E03; Mon, 11 Sep 2017 19:02:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 9BE5D60F42; Mon, 11 Sep 2017 19:00:40 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 1355060D9E; Mon, 11 Sep 2017 19:00:28 +0000 (UTC) Received: from forward100o.mail.yandex.net (forward100o.mail.yandex.net [37.140.190.180]) by lists.linaro.org (Postfix) with ESMTPS id 020F760D8F for ; Mon, 11 Sep 2017 19:00:25 +0000 (UTC) Received: from mxback9o.mail.yandex.net (mxback9o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::23]) by forward100o.mail.yandex.net (Yandex) with ESMTP id B251E2A2307F for ; Mon, 11 Sep 2017 22:00:23 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback9o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id H856luK7aW-0N8OhqdV; Mon, 11 Sep 2017 22:00:23 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Xiwxkqm3eV-0NlWGjqG; Mon, 11 Sep 2017 22:00:23 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Mon, 11 Sep 2017 21:59:53 +0300 Message-Id: <1505156408-13887-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505156408-13887-1-git-send-email-odpbot@yandex.ru> References: <1505156408-13887-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 173 Subject: [lng-odp] [PATCH API-NEXT v1 4/19] linux-gen: crypto: stop using RAND_pseudo_bytes() X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov RAND_pseudo_bytes() was deprecated in OpenSSL 1.1.0. It is recommended to use RAND_bytes() instead. Signed-off-by: Dmitry Eremin-Solenikov Reviewed-by: Bill Fischofer Signed-off-by: Maxim Uvarov --- /** Email created from pull request 173 (muvarov:api-next) ** https://github.com/Linaro/odp/pull/173 ** Patch: https://github.com/Linaro/odp/pull/173.patch ** Base sha: 7fa8e2c97ed18f8dd6e95cbc78b7e668ccb98869 ** Merge commit sha: 057be0905a62a157cc96a91743ea70e66e8554ca **/ platform/linux-generic/odp_crypto.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c index 563e919e..c7da548a 100644 --- a/platform/linux-generic/odp_crypto.c +++ b/platform/linux-generic/odp_crypto.c @@ -1048,9 +1048,6 @@ int32_t odp_random_data(uint8_t *buf, uint32_t len, odp_random_kind_t kind) switch (kind) { case ODP_RANDOM_BASIC: - RAND_pseudo_bytes(buf, len); - return len; - case ODP_RANDOM_CRYPTO: rc = RAND_bytes(buf, len); return (1 == rc) ? (int)len /*success*/: -1 /*failure*/;