@@ -203,7 +203,8 @@ func TestJA3(t *testing.T) {
203203 for _ , etlsrecord := range tls .Handshake {
204204 if etlsrecord .ETLSHandshakeMsgType == 1 {
205205 // Populate Client Hello related fields
206- tlss .PopulateClientHello (etlsrecord .ETLSHandshakeClientHello , "" , "" , "" , "" , time .Now ())
206+ tlss .PopulateClientHello (etlsrecord .ETLSHandshakeClientHello )
207+ tlss .SetTimestamp (time .Now ())
207208 tlss .D4Fingerprinting ("ja3" )
208209 t .Logf ("%v" , tlss .Record .JA3 )
209210 t .Logf ("%v" , tlss .Record .JA3Digest )
@@ -279,7 +280,8 @@ func TestGreaseClientHelloExtensionExlusion(t *testing.T) {
279280 for _ , etlsrecord := range tls .Handshake {
280281 if etlsrecord .ETLSHandshakeMsgType == 1 {
281282 // Populate Client Hello related fields
282- tlss .PopulateClientHello (etlsrecord .ETLSHandshakeClientHello , "" , "" , "" , "" , time .Now ())
283+ tlss .PopulateClientHello (etlsrecord .ETLSHandshakeClientHello )
284+ tlss .SetTimestamp (time .Now ())
283285 tlss .D4Fingerprinting ("ja3" )
284286 t .Logf ("%v" , tlss .Record .JA3Digest )
285287 if strings .Index (tlss .Record .JA3 , "2570" ) != - 1 {
@@ -312,7 +314,8 @@ func TestGreaseClientHelloCipherExlusion(t *testing.T) {
312314 for _ , etlsrecord := range tls .Handshake {
313315 if etlsrecord .ETLSHandshakeMsgType == 1 {
314316 // Populate Client Hello related fields
315- tlss .PopulateClientHello (etlsrecord .ETLSHandshakeClientHello , "" , "" , "" , "" , time .Now ())
317+ tlss .PopulateClientHello (etlsrecord .ETLSHandshakeClientHello )
318+ tlss .SetTimestamp (time .Now ())
316319 tlss .D4Fingerprinting ("ja3" )
317320 if strings .Index (tlss .Record .JA3 , "2570" ) != - 1 {
318321 t .Logf ("GREASE values should not end up in JA3\n " )
0 commit comments