Refactoring
Refactored Protocol.Name -> Protocol.Type; added Encapsulation field Refactored TLS parsing; added support for ALPN
This commit is contained in:
@@ -36,7 +36,7 @@ func TestDetectSSH(t *testing.T) {
|
||||
Direction: Client,
|
||||
Data: openSSHBanner,
|
||||
DstPort: 22,
|
||||
WantProto: ProtocolSSH,
|
||||
WantType: TypeSSH,
|
||||
WantConfidence: .95,
|
||||
},
|
||||
{
|
||||
@@ -44,7 +44,7 @@ func TestDetectSSH(t *testing.T) {
|
||||
Direction: Server,
|
||||
Data: openSSHBanner,
|
||||
SrcPort: 22,
|
||||
WantProto: ProtocolSSH,
|
||||
WantType: TypeSSH,
|
||||
WantConfidence: .95,
|
||||
},
|
||||
{
|
||||
@@ -52,7 +52,7 @@ func TestDetectSSH(t *testing.T) {
|
||||
Direction: Server,
|
||||
Data: preBannerSSH,
|
||||
SrcPort: 22,
|
||||
WantProto: ProtocolSSH,
|
||||
WantType: TypeSSH,
|
||||
WantConfidence: .95,
|
||||
},
|
||||
{
|
||||
@@ -60,7 +60,7 @@ func TestDetectSSH(t *testing.T) {
|
||||
Direction: Server,
|
||||
Data: dropbearBanner,
|
||||
SrcPort: 22,
|
||||
WantProto: ProtocolSSH,
|
||||
WantType: TypeSSH,
|
||||
WantConfidence: .95,
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user