Browse Source

Rename the get_data function in get_jws_data

pull/42/head
Rodolphe Bréard 4 years ago
parent
commit
9c34066a3d
  1. 6
      acmed/src/jws.rs

6
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(

Loading…
Cancel
Save