File 1195-Fix-pubkey_cert-verify_data-1-specs.patch of Package erlang

From 386ce2acee9b788c83275b8affcf49c1ffcd176c Mon Sep 17 00:00:00 2001
From: Bruce Yinhe <bruce.yinhe@gmail.com>
Date: Fri, 11 Dec 2020 19:42:49 +0100
Subject: [PATCH] Fix pubkey_cert:verify_data/1 specs

---
 lib/public_key/src/pubkey_cert.erl | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/lib/public_key/src/pubkey_cert.erl b/lib/public_key/src/pubkey_cert.erl
index 5966a15535..5f8a5bd530 100644
--- a/lib/public_key/src/pubkey_cert.erl
+++ b/lib/public_key/src/pubkey_cert.erl
@@ -68,11 +68,15 @@
 -type test_root_cert() ::
         #{cert := binary(), key := public_key:private_key()}.
 %%====================================================================
-%% Internal application APIu
+%% Internal application APIs
 %%====================================================================
 
 %%--------------------------------------------------------------------
--spec verify_data(DER::binary()) -> {md5 | sha,  binary(), binary()}.
+-spec verify_data(DER::binary()) ->
+           {DigestType, PlainText, Signature}
+               when DigestType :: md5 | crypto:sha1() | crypto:sha2(),
+                    PlainText  :: binary(),
+                    Signature  :: binary().
 %%
 %% Description: Extracts data from DerCert needed to call public_key:verify/4.
 %%--------------------------------------------------------------------	 
-- 
2.26.2

openSUSE Build Service is sponsored by