feat: update dependencies
This commit is contained in:
@@ -38,10 +38,7 @@ pub fn get_pki_algorithm(algorithm_identifier: &AlgorithmIdentifier) -> XResult<
|
||||
}
|
||||
|
||||
pub fn bytes_to_pem<T>(tag: &str, contents: T) -> String where T: Into<Vec<u8>> {
|
||||
let cert_public_key_pem_obj = Pem {
|
||||
tag: tag.to_string(),
|
||||
contents: contents.into(),
|
||||
};
|
||||
let cert_public_key_pem_obj = Pem::new(tag, contents);
|
||||
pem::encode(&cert_public_key_pem_obj).trim().to_string()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user