sshfp_44.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // Copyright (C) 2012-2013 Internet Systems Consortium, Inc. ("ISC")
  2. //
  3. // Permission to use, copy, modify, and/or distribute this software for any
  4. // purpose with or without fee is hereby granted, provided that the above
  5. // copyright notice and this permission notice appear in all copies.
  6. //
  7. // THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
  8. // REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  9. // AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
  10. // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  11. // LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  12. // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  13. // PERFORMANCE OF THIS SOFTWARE.
  14. // BEGIN_HEADER_GUARD
  15. #include <stdint.h>
  16. #include <string>
  17. #include <dns/name.h>
  18. #include <dns/rdata.h>
  19. // BEGIN_ISC_NAMESPACE
  20. // BEGIN_COMMON_DECLARATIONS
  21. // END_COMMON_DECLARATIONS
  22. // BEGIN_RDATA_NAMESPACE
  23. struct SSHFPImpl;
  24. class SSHFP : public Rdata {
  25. public:
  26. // BEGIN_COMMON_MEMBERS
  27. // END_COMMON_MEMBERS
  28. SSHFP(uint8_t algorithm, uint8_t fingerprint_type,
  29. const std::string& fingerprint);
  30. SSHFP& operator=(const SSHFP& source);
  31. ~SSHFP();
  32. ///
  33. /// Specialized methods
  34. ///
  35. uint8_t getAlgorithmNumber() const;
  36. uint8_t getFingerprintType() const;
  37. size_t getFingerprintLength() const;
  38. private:
  39. SSHFPImpl* constructFromLexer(MasterLexer& lexer);
  40. SSHFPImpl* impl_;
  41. };
  42. // END_RDATA_NAMESPACE
  43. // END_ISC_NAMESPACE
  44. // END_HEADER_GUARD
  45. // Local Variables:
  46. // mode: c++
  47. // End: