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.
 
 
 
 
 
 

23 lines
522 B

  1. #pragma once
  2. #include "dnsrecords.hh"
  3. #include "iputils.hh"
  4. class TSIGTCPVerifier
  5. {
  6. public:
  7. TSIGTCPVerifier(const TSIGTriplet& tt, const ComboAddress& remote, TSIGRecordContent& trc): d_tt(tt), d_remote(remote), d_trc(trc)
  8. {
  9. }
  10. bool check(const string& data, const MOADNSParser& mdp);
  11. private:
  12. const TSIGTriplet& d_tt;
  13. const ComboAddress& d_remote;
  14. TSIGRecordContent& d_trc;
  15. string d_prevMac; // RFC2845 4.4
  16. string d_signData;
  17. size_t d_tsigPos{0};
  18. uint8_t d_nonSignedMessages{0}; // RFC2845 4.4
  19. };