GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Netty SSLHandler.isEncrypted mistakes SNMP as encrypted · Issue #14238 · netty/netty Closed Milestone DescriptionI am trying to determine if a SNMP packet is TLS or plain text TCP and have a trap packet that starts with these bytes: 30 82 0c 48 02 01 01 04 Expected behaviorSSLHandler.isEncrypted should return false as trap is not encrypted Actual behaviorIt returns true. This is because the getEncryptedPacketLength() method returns what it calculated as the packetLength. And because the packetLength <= headerLength, the packetLength is returned rather then NOT_ENCRYPTED. A possible solution would be to add an optional parameter to specify if checking for SSLv2 is disabled. If you assume that the incoming TCP stream cannot be SSLv2 and omit this check then the method returns NOT_ENCRYPTED as desired. Steps to reproduceCreate a ByteBuf with the above bytes and call SSLHanlder.isEncypted() Minimal yet complete reproducer code (or URL to code)import io.netty.buffer.ByteBuf; public class ShortTest { }### Netty version JVM version (e.g.
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |