Branch: Tag:

2014-04-05

2014-04-05 11:07:34 by Henrik Grubbström (Grubba) <grubba@grubba.org>

SSL: Protocol version handling cleanup.

The protocol version is now represented the same way everywhere;
a 16-bit integer with the major (ie 3) in the high 8 bits, and
the minor in the low 8 bits.

Previously there was a mix between having a two element array,
and just keeping track of the minor.

Also strengthens the types of version variables in a few places.

172:    "Protocols.JSON": "predef::Val":2,    "Protocols.LDAP.search": "predef::Protocols.LDAP.make_filter":1,    "Protocols.SMTP.Protocol": "7.4::Protocols.SMTP.protocol":1, +  "Protocolversion": "predef::SSL.alert.create":1,    "ResultEntry": "predef::Protocols.LDAP.client.result.fetch":1, "predef::Protocols.LDAP.client.result.fetch_all":1,    "Rule.Language": "predef::Calendar.TimeRanges.TimeRange.set_language":1,    "Ruleset.Timezone": "predef::Calendar.Timezone":1,
1196:   "predef::SSL.Cipher.MACAlgorithm.hash_packet": "Packet"   "predef::SSL.Cipher.P_hash": "Crypto.SHA"   "predef::SSL.Constants": "EXTENSION_max_fragment_length" "NamedCurve" + "predef::SSL.alert.create": "Protocolversion"   "predef::SSL.context": "SSL.Constants.AUTHLEVEL_ask" "SSL.Constants.AUTHLEVEL_none" "SSL.Constants.AUTHLEVEL_require" "SSL.Constants.PACKET_MAX_SIZE"   "predef::SSL.context.dhe_dss_mode": "ecdsa_mode()"   "predef::SSL.context.rsa_mode": "ecdsa_mode()"