lib/tls_map/app/gnutls.rb in tls-map-2.2.0 vs lib/tls_map/app/gnutls.rb in tls-map-3.0.0

- old
+ new

@@ -7,10 +7,10 @@ # TLS mapping class App GNUTLS_URL = 'https://gitlab.com/gnutls/gnutls/raw/master/lib/algorithms/ciphersuites.c' def parse_gnutls - reg = /(GNUTLS_[a-zA-Z0-9_]+)\s+{\s?(0x[[:xdigit:]]{2},\s?0x[[:xdigit:]]{2})\s?}/ + reg = /(GNUTLS_[a-zA-Z0-9_]+) \{ +(0x[[:xdigit:]]{2}, 0x[[:xdigit:]]{2}) }/ File.read(@gnutls_file.path).scan(reg).each do |alg| codepoint = codepoint_iana(alg[1]) name = alg[0][7..] @tls_map.each do |h| h[:gnutls] ||= h[:codepoint] == codepoint.upcase ? name : nil