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.

ssh_worker.rb 403B

1234567891011121314151617181920212223242526
  1. class SSHWorker < CheckWorker
  2. sidekiq_options retry: false
  3. protected
  4. def analyze(host, port=22)
  5. CryptCheck::Ssh.analyze host, port
  6. end
  7. def type
  8. :ssh
  9. end
  10. def to_json(server)
  11. {
  12. kex: server.kex,
  13. encryption: server.encryption,
  14. hmac: server.hmac,
  15. compression: server.compression,
  16. key_: server.key
  17. }
  18. end
  19. def grade_to_json(grade)
  20. nil
  21. end
  22. end