|
@@ -20,9 +20,6 @@
|
|
|
#include <util/buffer.h>
|
|
|
|
|
|
#include <stdint.h>
|
|
|
-
|
|
|
-#include <sstream>
|
|
|
-#include <string>
|
|
|
#include <vector>
|
|
|
|
|
|
namespace isc {
|
|
@@ -61,7 +58,7 @@ struct ParseNSEC3ParamResult {
|
|
|
|
|
|
/// \brief Convert textual representation of NSEC3 parameters.
|
|
|
///
|
|
|
-/// This function takes an input string stream that consists of a complete
|
|
|
+/// This function takes an input MasterLexer that points at a complete
|
|
|
/// textual representation of an NSEC3 or NSEC3PARAM RDATA and parses it
|
|
|
/// extracting the hash algorithm, flags, iterations, and salt fields.
|
|
|
///
|
|
@@ -69,37 +66,11 @@ struct ParseNSEC3ParamResult {
|
|
|
/// The salt will be stored in the given vector. The vector is expected
|
|
|
/// to be empty, but if not, the existing content will be overridden.
|
|
|
///
|
|
|
-/// On successful return the given input stream will reach the end of the
|
|
|
+/// On successful return the given MasterLexer will reach the end of the
|
|
|
/// salt field.
|
|
|
///
|
|
|
/// \exception isc::BadValue The salt is not a valid hex string.
|
|
|
-/// \exception InvalidRdataText The given string is otherwise invalid for
|
|
|
-/// NSEC3 or NSEC3PARAM fields.
|
|
|
-///
|
|
|
-/// \param rrtype_name Either "NSEC3" or "NSEC3PARAM"; used as part of
|
|
|
-/// exception messages.
|
|
|
-/// \param rdata_str A complete textual string of the RDATA; used as part of
|
|
|
-/// exception messages.
|
|
|
-/// \param iss Input stream that consists of a complete textual string of
|
|
|
-/// the RDATA.
|
|
|
-/// \param salt A placeholder for the salt field value of the RDATA.
|
|
|
-/// Expected to be empty, but it's not checked (and will be overridden).
|
|
|
-///
|
|
|
-/// \return The hash algorithm, flags, iterations in the form of
|
|
|
-/// ParseNSEC3ParamResult.
|
|
|
-ParseNSEC3ParamResult parseNSEC3ParamText(const char* const rrtype_name,
|
|
|
- const std::string& rdata_str,
|
|
|
- std::istringstream& iss,
|
|
|
- std::vector<uint8_t>& salt);
|
|
|
-
|
|
|
-/// \brief Convert textual representation of NSEC3 parameters
|
|
|
-/// (MasterLexer variant).
|
|
|
-///
|
|
|
-/// This function is identical to \c parseNSEC3ParamText(), except that
|
|
|
-/// it reads the NSEC3 parameters from a MasterLexer.
|
|
|
-///
|
|
|
-/// \exception isc::BadValue The salt is not a valid hex string.
|
|
|
-/// \exception InvalidRdataText The given string is otherwise invalid for
|
|
|
+/// \exception InvalidRdataText The given RDATA is otherwise invalid for
|
|
|
/// NSEC3 or NSEC3PARAM fields.
|
|
|
/// \exception MasterLexer::LexerError There was a failure reading a
|
|
|
/// field from the MasterLexer.
|