rrsig_46.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // Copyright (C) 2010-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. #include <stdint.h>
  15. #include <string>
  16. #include <dns/name.h>
  17. #include <dns/rrtype.h>
  18. #include <dns/rdata.h>
  19. // BEGIN_HEADER_GUARD
  20. // BEGIN_ISC_NAMESPACE
  21. // BEGIN_COMMON_DECLARATIONS
  22. // END_COMMON_DECLARATIONS
  23. // BEGIN_RDATA_NAMESPACE
  24. struct RRSIGImpl;
  25. /// \brief \c rdata::RRSIG class represents the RRSIG RDATA as defined %in
  26. /// RFC4034.
  27. ///
  28. /// This class implements the basic interfaces inherited from the abstract
  29. /// \c rdata::Rdata class, and provides trivial accessors specific to the
  30. /// RRSIG RDATA.
  31. class RRSIG : public Rdata {
  32. public:
  33. // BEGIN_COMMON_MEMBERS
  34. // END_COMMON_MEMBERS
  35. RRSIG& operator=(const RRSIG& source);
  36. ~RRSIG();
  37. // specialized methods
  38. const RRType& typeCovered() const;
  39. private:
  40. // helper function for string and lexer constructors
  41. void createFromLexer(MasterLexer& lexer, const Name* origin);
  42. RRSIGImpl* impl_;
  43. };
  44. // END_RDATA_NAMESPACE
  45. // END_ISC_NAMESPACE
  46. // END_HEADER_GUARD
  47. // Local Variables:
  48. // mode: c++
  49. // End: