From patchwork Thu Sep 7 11:59:58 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: 111897 Delivered-To: patch@linaro.org Received: by 10.37.128.210 with SMTP id c18csp91725ybm; Thu, 7 Sep 2017 05:14:03 -0700 (PDT) X-Google-Smtp-Source: ADKCNb4GMjwHAYPE+CnXtr+waGbRkT5bYzJTi/V8D5uN1xFzaPEYU7AZ6FF+IsqLnVcv21IItl9D X-Received: by 10.237.63.15 with SMTP id p15mr3423648qtf.117.1504786443638; Thu, 07 Sep 2017 05:14:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504786443; cv=none; d=google.com; s=arc-20160816; b=oFcTXX2DMkhpp1dNgda9NMUgfPGNwDKkzNGBkP/Fb5SFeAOyPur7Sm+reo1YAFWLBD 9nSot5eUHYFWXkWguC1jFLT6e34tGLe1YYuXfmrMhK1t4/iIHVNJo2nUgbd988WfxtGS wiUem0BX7Z6Zr1kdr7vtH6c/40gqsCzP657TTPs3+adXDr5yUOI9MZ6Xu+9ghgFzhUGR 8F3Gk1NyB7WKjfFweJACOGlqTNapEKTZwIo0bR0atlepEkDOne0mFXy0ax2qLk54t8qT aqlc2PDCj35o0Aa+q0UFcJMnPiYnLKu3NaG8tIgzQ538zSZeHBLORe22uQtGbaZlXYiH yIrA== 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=uwovueHWIcwyX6aQShxg2xLPjqmCrA7kEIIJODdz36E=; b=tzU/xkRNEbp3QfMSJ9p58mTo1AqhtnncKi/gZJznrPaTzsghVJS8oqOhJnAwXDOm/S zFMND7g2BMewMpvmgsr77q3B9rFfXGVyFePlBfWXnBH/kzZnLpBp8/QOxon+mWDC+xe7 Avwa98XGjNaP7B/Yyr3YP6c2+9CsfQAAJBF9jXB0WPbrL3BFSGYj3wHpnGDjQGneeabY WzcYSg39MBfABwhVVskrlnB8bL4JyfrWp57eoFbEbvZIPWFOA2U9vAAM7bL5wHBtXilx hvOSa9wghyV7uekm6tbfPAb6hQg0Tq0iGUmWfQR7lwQhhnrN6B636tOSfzt/yeOiCtei Avhg== 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 p123si2558690qke.233.2017.09.07.05.14.03; Thu, 07 Sep 2017 05:14:03 -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 51F1A64FD5; Thu, 7 Sep 2017 12:14:03 +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,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 D706B644DD; Thu, 7 Sep 2017 12:06:46 +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 DEEF76081A; Thu, 7 Sep 2017 12:06:14 +0000 (UTC) Received: from forward102o.mail.yandex.net (forward102o.mail.yandex.net [37.140.190.182]) by lists.linaro.org (Postfix) with ESMTPS id 562B9644E5 for ; Thu, 7 Sep 2017 12:00:29 +0000 (UTC) Received: from mxback4g.mail.yandex.net (mxback4g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:165]) by forward102o.mail.yandex.net (Yandex) with ESMTP id 85F4F5A0470B for ; Thu, 7 Sep 2017 15:00:27 +0300 (MSK) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [2a02:6b8:0:1a2d::25]) by mxback4g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id xj6ntAlQv4-0RLihKLI; Thu, 07 Sep 2017 15:00:27 +0300 Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id OSCKROY85q-0RdG4Ani; Thu, 07 Sep 2017 15:00:27 +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: Thu, 7 Sep 2017 14:59:58 +0300 Message-Id: <1504785609-27545-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1504785609-27545-1-git-send-email-odpbot@yandex.ru> References: <1504785609-27545-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 165 Subject: [lng-odp] [PATCH v4 3/14] 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 --- /** Email created from pull request 165 (lumag:improve-build-3) ** https://github.com/Linaro/odp/pull/165 ** Patch: https://github.com/Linaro/odp/pull/165.patch ** Base sha: 360c1d34b52a2356619b9290811862b9de41de00 ** Merge commit sha: b3c5b66f989f86f62c8d44471480599b93cac6c0 **/ 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*/;