@@ -45,7 +45,9 @@ fn main() {
45
45
46
46
let au = match v[ "info.tls.parameters.authentication" ] . as_str ( ) {
47
47
"" => 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
+ }
49
51
} ;
50
52
51
53
let enc = match v[ "info.tls.parameters.encryption.algorithm" ] . as_str ( ) {
@@ -71,8 +73,8 @@ fn main() {
71
73
_ => continue ,
72
74
} ,
73
75
) ;
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
+
76
78
let mode = match v[ "info.tls.parameters.encryption.mode" ] . as_str ( ) {
77
79
"" => String :: from ( "Null" ) ,
78
80
"L" => String :: from ( "Null" ) ,
@@ -90,8 +92,8 @@ fn main() {
90
92
& v[ "info.tls.parameters.integrity.pseudorandom_function" ]
91
93
. replace ( " " , "" )
92
94
. replace ( "." , "" )
93
- . replace ( "-" , "" )
94
- )
95
+ . replace ( "-" , "" ) ,
96
+ ) ,
95
97
} ;
96
98
let prf_size = v[ "info.tls.parameters.integrity.pseudorandom_function_size" ] . clone ( ) ;
97
99
@@ -116,9 +118,17 @@ fn main() {
116
118
au,
117
119
enc,
118
120
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
+ } ,
120
126
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
+ } ,
122
132
prf, // prf
123
133
)
124
134
. clone ( ) ;
0 commit comments