From 9c34066a3d7b4a864a56e124268136ddac24f35a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Mon, 21 Dec 2020 21:17:52 +0100 Subject: [PATCH] Rename the get_data function in get_jws_data --- acmed/src/jws.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/acmed/src/jws.rs b/acmed/src/jws.rs index 0bd2ab6..b4e42c0 100644 --- a/acmed/src/jws.rs +++ b/acmed/src/jws.rs @@ -23,7 +23,7 @@ struct JwsProtectedHeader { url: String, } -fn get_data( +fn get_jws_data( key_pair: &KeyPair, sign_alg: &JwsSignatureAlgorithm, protected: &str, @@ -58,7 +58,7 @@ pub fn encode_jwk( url: url.into(), }; let protected = serde_json::to_string(&protected)?; - get_data(key_pair, sign_alg, &protected, payload) + get_jws_data(key_pair, sign_alg, &protected, payload) } pub fn encode_kid( @@ -77,7 +77,7 @@ pub fn encode_kid( url: url.into(), }; let protected = serde_json::to_string(&protected)?; - get_data(key_pair, sign_alg, &protected, payload) + get_jws_data(key_pair, sign_alg, &protected, payload) } pub fn encode_kid_mac(