Skip to content

Commit 129242c

Browse files
committed
rustfmt
1 parent d4b3f8f commit 129242c

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

build.rs

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ fn main() {
4545

4646
let au = match v["info.tls.parameters.authentication"].as_str() {
4747
"" => String::from("Null"),
48-
_ => titlecase_word(&v["info.tls.parameters.authentication"].replace("TLS 1.3", "TLS13")),
48+
_ => {
49+
titlecase_word(&v["info.tls.parameters.authentication"].replace("TLS 1.3", "TLS13"))
50+
}
4951
};
5052

5153
let enc = match v["info.tls.parameters.encryption.algorithm"].as_str() {
@@ -71,8 +73,8 @@ fn main() {
7173
_ => continue,
7274
},
7375
);
74-
let mac_size = v["info.tls.parameters.integrity.message_authentication_code_size"].clone();
75-
76+
let mac_size = v["info.tls.parameters.integrity.message_authentication_code_size"].clone();
77+
7678
let mode = match v["info.tls.parameters.encryption.mode"].as_str() {
7779
"" => String::from("Null"),
7880
"L" => String::from("Null"),
@@ -90,8 +92,8 @@ fn main() {
9092
&v["info.tls.parameters.integrity.pseudorandom_function"]
9193
.replace(" ", "")
9294
.replace(".", "")
93-
.replace("-", "")
94-
)
95+
.replace("-", ""),
96+
),
9597
};
9698
let prf_size = v["info.tls.parameters.integrity.pseudorandom_function_size"].clone();
9799

@@ -116,9 +118,17 @@ fn main() {
116118
au,
117119
enc,
118120
mode,
119-
if prf_size.is_empty() {String::from("0")} else {prf_size},
121+
if prf_size.is_empty() {
122+
String::from("0")
123+
} else {
124+
prf_size
125+
},
120126
mac,
121-
if mac_size.is_empty() {String::from("0")} else {mac_size},
127+
if mac_size.is_empty() {
128+
String::from("0")
129+
} else {
130+
mac_size
131+
},
122132
prf, // prf
123133
)
124134
.clone();

src/tls_ciphers.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ pub enum TlsCipherAu {
4141
Null,
4242
Psk,
4343
Krb5,
44-
Sha, // SRP
45-
Sha_dss, // SRP
46-
Sha_rsa, // SRP
44+
Sha, // SRP
45+
Sha_dss, // SRP
46+
Sha_rsa, // SRP
4747
Dss,
4848
Rsa,
4949
Dhe,

0 commit comments

Comments
 (0)