File: pem-3.diff

package info (click to toggle)
rust-parsec-tool 0.7.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 424 kB
  • sloc: sh: 275; makefile: 4
file content (36 lines) | stat: -rw-r--r-- 1,096 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Index: parsec-tool/Cargo.toml
===================================================================
--- parsec-tool.orig/Cargo.toml
+++ parsec-tool/Cargo.toml
@@ -54,7 +54,7 @@ features = ["serde_support"]
 version = "0.16.0"
 
 [dependencies.pem]
-version = "1.1.0"
+version = "3"
 
 [dependencies.picky-asn1]
 version = "0.7.0"
Index: parsec-tool/src/subcommands/export_public_key.rs
===================================================================
--- parsec-tool.orig/src/subcommands/export_public_key.rs
+++ parsec-tool/src/subcommands/export_public_key.rs
@@ -87,13 +87,12 @@ impl ExportPublicKey {
         };
 
         let pem_encoded = pem::encode_config(
-            &pem::Pem {
+            &pem::Pem::new (
                 tag,
-                contents: psa_public_key,
-            },
-            pem::EncodeConfig {
-                line_ending: pem::LineEnding::LF,
-            },
+                psa_public_key,
+            ),
+            pem::EncodeConfig::new().
+                set_line_ending(pem::LineEnding::LF),
         );
 
         print!("{}", pem_encoded);