mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
SSH: Use the compression_algorithms const in another place.
This commit is contained in:
parent
d9b4693240
commit
3ad6b3004b
1 changed files with 2 additions and 1 deletions
|
@ -140,7 +140,7 @@ event ssh_auth_failed(c: connection)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
# We can't accurately tell for compressed streams
|
# We can't accurately tell for compressed streams
|
||||||
if ( c$ssh?$compression_alg && ( c$ssh$compression_alg == "zlib@openssh.com" || c$ssh$compression_alg == "zlib" ) )
|
if ( c$ssh?$compression_alg && ( c$ssh$compression_alg in compression_algorithms ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
c$ssh$auth_success = F;
|
c$ssh$auth_success = F;
|
||||||
|
@ -154,6 +154,7 @@ function find_alg(client_algorithms: vector of string, server_algorithms: vector
|
||||||
for ( j in server_algorithms )
|
for ( j in server_algorithms )
|
||||||
if ( client_algorithms[i] == server_algorithms[j] )
|
if ( client_algorithms[i] == server_algorithms[j] )
|
||||||
return client_algorithms[i];
|
return client_algorithms[i];
|
||||||
|
return "Algorithm negotiation failed";
|
||||||
}
|
}
|
||||||
|
|
||||||
# This is a simple wrapper around find_alg for cases where client to server and server to client
|
# This is a simple wrapper around find_alg for cases where client to server and server to client
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue