lib/tls_map/nss.rb in tls-map-1.0.0 vs lib/tls_map/nss.rb in tls-map-1.1.0
- old
+ new
@@ -11,10 +11,10 @@
NSS_URL = 'https://raw.githubusercontent.com/nss-dev/nss/master/lib/ssl/sslproto.h'
def parse_nss
File.read(@nss_file.path).scan(/(TLS_[a-zA-Z0-9_]+)\s+0x([[:xdigit:]]{4})/) do |alg|
@tls_map.each do |h|
- h[:nss] ||= h[:codepoint] == alg[1] ? alg[0] : nil
+ h[:nss] ||= h[:codepoint] == alg[1].upcase ? alg[0] : nil
end
end
end
private :parse_nss