File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : snmp
2
- version : 0.9.5
2
+ version : 0.9.6
3
3
4
4
dependencies :
5
5
bindata :
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class SNMP::V3::Message < SNMP::Message
35
35
else
36
36
ScopedPDU .new(snmp[3 ])
37
37
end
38
- verify(security, snmp[3 ]) if @flags .authentication?
38
+ verify(security, snmp[3 ]) if security.verify_messages && @flags .authentication?
39
39
elsif snmp[3 ].tag == UniversalTags ::Sequence
40
40
# This will read authenticated requests even if we don't have security details
41
41
@scoped_pdu = ScopedPDU .new(snmp[3 ])
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ class SNMP::V3::Security
24
24
getter security_level : MessageFlags
25
25
getter auth_protocol : AuthProtocol
26
26
getter priv_protocol : PrivacyProtocol
27
+ getter verify_messages : Bool
27
28
@auth_pass_key : Bytes = Bytes .new(0 )
28
29
@priv_pass_key : Bytes = Bytes .new(0 )
29
30
@digest : OpenSSL ::Digest
@@ -34,7 +35,8 @@ class SNMP::V3::Security
34
35
@auth_protocol = AuthProtocol ::MD5 ,
35
36
@auth_password = " " ,
36
37
@priv_protocol = PrivacyProtocol ::DES ,
37
- @priv_password = " "
38
+ @priv_password = " " ,
39
+ @verify_messages = true
38
40
)
39
41
@security_level = if ! @priv_password .empty?
40
42
MessageFlags ::Authentication | MessageFlags ::Privacy
You can’t perform that action at this time.
0 commit comments