lib/tls_map/extractor.rb in tls-map-1.3.0 vs lib/tls_map/extractor.rb in tls-map-1.3.1
- old
+ new
@@ -95,11 +95,11 @@
# Extract the ciphers from the sslyze output file
# @param file [String] Path of the sslyze output file, beware of the format expected.
# See {TLSmap::App::Extractor}
# @return [Array<String>] Cipher array (IANA names)
def parse(file)
- data = JSON.load_file(file)
+ data = Utils.json_load_file(file)
extract_cipher(data)
end
# Extract the ciphers from the sslyze output file
# @param json_data [Hash] Ruby hash of the parsed JSON
@@ -162,11 +162,11 @@
# Extract the ciphers from the testssl output file
# @param file [String] Path of the testssl output file, beware of the format expected.
# See {TLSmap::App::Extractor}
# @return [Array<String>] Cipher array (IANA names)
def parse(file)
- data = JSON.load_file(file)
+ data = Utils.json_load_file(file)
extract_cipher(data)
end
# Extract the ciphers from the testssl output file
# @param json_data [Hash] Ruby hash of the parsed JSON
@@ -212,10 +212,10 @@
# Extract the ciphers from the ssllabs-scan output file
# @param file [String] Path of the ssllabs-scan output file, beware of the format expected.
# See {TLSmap::App::Extractor}
# @return [Array<String>] Cipher array (IANA names)
def parse(file)
- data = JSON.load_file(file)
+ data = Utils.json_load_file(file)
extract_cipher(data)
end
# Extract the ciphers from the ssllabs-scan output file
# @param json_data [Hash] Ruby hash of the parsed JSON