Sha256: ce660fb075229ea54af4357ba32f8b0e271b2248c73226eacaee749f66a8c4a1
Contents?: true
Size: 601 Bytes
Versions: 1
Compression:
Stored size: 601 Bytes
Contents
# frozen_string_literal: true # Ruby internal # TLS map module module TLSmap # 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_]+) \{ +(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 end end end private :parse_gnutls end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tls-map-3.0.0 | lib/tls_map/app/gnutls.rb |