Browse Source

Ciphers from suite in cryptcheck lib

Aeris 3 years ago
parent
commit
4510cd158a
1 changed files with 2 additions and 14 deletions
  1. 2
    14
      app/views/site/ciphers.html.erb

+ 2
- 14
app/views/site/ciphers.html.erb View File

@@ -9,25 +9,13 @@
9 9
 				</tr>
10 10
 			</thead>
11 11
 			<tbody>
12
-			<% %i(TLSv1_2).each do |protocol|
13
-				context = OpenSSL::SSL::SSLContext.new protocol rescue next
14
-			%>
15
-				<!--
16
-				<tr>
17
-					<th colspan="3"><h1><%= protocol %><h1></th>
18
-				</tr>
19
-				-->
20
-				<%
21
-				   context.ciphers = 'ALL:COMPLEMENTOFALL'
22
-				   ciphers = context.ciphers.collect { |c| CryptCheck::Tls::Cipher.new protocol, c }
23
-				   CryptCheck::Tls::Cipher.sort(ciphers).each do |cipher| %>
12
+				<% CryptCheck::Tls::Cipher.list.each do |cipher| %>
24 13
 				<tr>
25 14
 					<th><%= cipher_name_label cipher %></th>
26 15
 					<th><%= cipher_size_label cipher %></th>
27 16
 					<th><%= cipher_labels cipher %></th>
28 17
 				</tr>
29
-				   <% end %>
30
-			<% end %>
18
+				<% end %>
31 19
 			</tbody>
32 20
 		</table>
33 21
 	</div>

Loading…
Cancel
Save