()
| 76 | } |
| 77 | |
| 78 | func (s *Platform) check() (bool, error) { |
| 79 | s.init() |
| 80 | |
| 81 | if s.trustCommand == nil { |
| 82 | return false, ErrUnsupportedDistro |
| 83 | } |
| 84 | |
| 85 | return true, nil |
| 86 | } |
| 87 | |
| 88 | func (s *Platform) checkCA(ca *CA) (bool, error) { |
| 89 | if ok, err := s.check(); !ok { |