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.

check_xmpp 414B

12345678910111213141516
  1. #!/usr/bin/env ruby
  2. $:.unshift 'lib'
  3. require 'logging'
  4. require 'cryptcheck'
  5. name = ARGV[0]
  6. if name
  7. ::Logging.logger.root.appenders = ::Logging.appenders.stdout
  8. ::Logging.logger.root.level = :warn
  9. server = ::CryptCheck::Tls::Xmpp::Server.new(name, ARGV[1] || :s2s)
  10. p grade = ::CryptCheck::Tls::Xmpp::Grade.new(server)
  11. else
  12. ::CryptCheck::Tls::Xmpp.analyze_from_file 'output/xmpp.yml', 'output/xmpp.html'
  13. end