You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <div class="container">
  2. <div class="row">
  3. <div class="col-sm-12">
  4. <h1>Cipher suite : <%= @suite %></h1>
  5. </div>
  6. </div>
  7. <div class="row">
  8. <table class="table-bordered table-condensed table-striped col-sm-12">
  9. <thead>
  10. <tr>
  11. <th class="col-sm-4">Navigateur</th>
  12. <th class="col-sm-8" colspan="3">Cipher</th>
  13. </tr>
  14. </thead>
  15. <tbody>
  16. <%
  17. iana_ciphers = Hash[@ciphers.collect { |c| [Rails.application.config.openssl_ciphers[c.name], c] }]
  18. Rails.application.config.user_agents_ciphers.each do |ua, support|
  19. cipher = (support['ciphers'].collect(&:first) & iana_ciphers.keys).first
  20. cipher = iana_ciphers[cipher] if cipher
  21. %>
  22. <tr>
  23. <th><%= ua %></th>
  24. <% if cipher %>
  25. <td><%= cipher_name_label cipher %></td>
  26. <td><%= cipher_size_label cipher %></td>
  27. <td><%= cipher_labels cipher %></td>
  28. <% else %>
  29. <td colspan="3"><%= label('Non supporté', :error) %></td>
  30. <% end %>
  31. </tr>
  32. <% end %>
  33. </tbody>
  34. </table>
  35. </div>
  36. <br/>
  37. <div class="row">
  38. <table class="table-bordered table-condensed table-striped col-sm-12">
  39. <thead>
  40. <tr>
  41. <th class="col-sm-4">Algorithme</th>
  42. <th class="col-sm-1">Taille</th>
  43. <td class="col-sm-7"></td>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. <% @ciphers.each do |cipher| %>
  48. <tr>
  49. <th><%= cipher_name_label cipher %></th>
  50. <th><%= cipher_size_label cipher %></th>
  51. <th><%= cipher_labels cipher %></th>
  52. </tr>
  53. <% end %>
  54. </tbody>
  55. </table>
  56. </div>
  57. </div>