Browse Source

Fix on cipher and curve handling

new-scoring
aeris 1 year ago
parent
commit
0d123c7380
2 changed files with 2 additions and 0 deletions
  1. 1
    0
      lib/cryptcheck/tls/cipher.rb
  2. 1
    0
      lib/cryptcheck/tls/curve.rb

+ 1
- 0
lib/cryptcheck/tls/cipher.rb View File

@@ -41,6 +41,7 @@ module CryptCheck
41 41
 			attr_reader :method, :name
42 42
 
43 43
 			def initialize(method, name)
44
+				name = name.first if name.is_a? Array
44 45
 				@method, @name = method, name
45 46
 			end
46 47
 

+ 1
- 0
lib/cryptcheck/tls/curve.rb View File

@@ -4,6 +4,7 @@ module CryptCheck
4 4
 			attr_reader :name
5 5
 
6 6
 			def initialize(name)
7
+				name = name.to_sym if name.is_a? String
7 8
 				@name = name
8 9
 			end
9 10
 

Loading…
Cancel
Save