lib/tls_map.rb in tls-map-1.1.0 vs lib/tls_map.rb in tls-map-1.2.0
- old
+ new
@@ -9,10 +9,11 @@
require 'tls_map/openssl'
require 'tls_map/gnutls'
require 'tls_map/nss'
require 'tls_map/output'
require 'tls_map/ciphersuiteinfo'
+require 'tls_map/extractor'
# TLS map module
module TLSmap
# TLS mapping
class App
@@ -34,16 +35,16 @@
parse_gnutls
parse_nss
end
# Search for corresponding cipher algorithms in other libraries
- # @param critera [Symbol] The type of +term+.
- # Accepted values: +:codepoint+, +:iana+, +:openssl+, +:gnutls+, +:nss+.
+ # @param critera [Symbol] The type of `term`.
+ # Accepted values: `:codepoint`, `:iana`, `:openssl`, `:gnutls`, `:nss`.
# @param term [String] The cipher algorithm name.
# @param output [Symbol] The corresponding type to be included in the return value.
- # Accepted values: +:all+ (default), +:codepoint+, +:iana+, +:openssl+,
- # +:gnutls+, +:nss+.
- # @return [Hash] The corresponding type matching +term+.
+ # Accepted values: `:all` (default), `:codepoint`, `:iana`, `:openssl`,
+ # `:gnutls`, `:nss`.
+ # @return [Hash] The corresponding type matching `term`.
def search(critera, term, output = :all)
@tls_map.each do |alg|
term = term.upcase if critera == :codepoint
next unless alg[critera] == term
return alg if output == :all