|
@@ -31,26 +31,24 @@ namespace test {
|
|
|
//
|
|
|
// Commonly used NSEC3 suffix. It's incorrect to use it for all NSEC3s, but
|
|
|
// doesn't matter for the purpose of our tests.
|
|
|
-const char* const nsec3_common = " 300 IN NSEC3 1 1 12 aabbccdd "
|
|
|
- "2T7B4G4VSA5SMI47K61MV5BV1A22BOJR A RRSIG";
|
|
|
+extern const char* const nsec3_common;
|
|
|
// Likewise, common RRSIG suffix for NSEC3s.
|
|
|
-const char* const nsec3_rrsig_common = " 300 IN RRSIG NSEC3 5 3 3600 "
|
|
|
- "20000101000000 20000201000000 12345 example.org. FAKEFAKEFAKE";
|
|
|
+extern const char* const nsec3_rrsig_common;
|
|
|
|
|
|
// Some faked NSEC3 hash values commonly used in tests and the faked NSEC3Hash
|
|
|
// object.
|
|
|
//
|
|
|
// For apex (example.org)
|
|
|
-const char* const apex_hash = "0P9MHAVEQVM6T7VBL5LOP2U3T2RP3TOM";
|
|
|
-const char* const apex_hash_lower = "0p9mhaveqvm6t7vbl5lop2u3t2rp3tom";
|
|
|
+extern const char* const apex_hash;
|
|
|
+extern const char* const apex_hash_lower;
|
|
|
// For ns1.example.org
|
|
|
-const char* const ns1_hash = "2T7B4G4VSA5SMI47K61MV5BV1A22BOJR";
|
|
|
+extern const char* const ns1_hash;
|
|
|
// For w.example.org
|
|
|
-const char* const w_hash = "01UDEMVP1J2F7EG6JEBPS17VP3N8I58H";
|
|
|
+extern const char* const w_hash;
|
|
|
// For x.y.w.example.org (lower-cased)
|
|
|
-const char* const xyw_hash = "2vptu5timamqttgl4luu9kg21e0aor3s";
|
|
|
+extern const char* const xyw_hash;
|
|
|
// For zzz.example.org.
|
|
|
-const char* const zzz_hash = "R53BQ7CC2UVMUBFU5OCMM6PERS9TK9EN";
|
|
|
+extern const char* const zzz_hash;
|
|
|
|
|
|
// A simple faked NSEC3 hash calculator with a dedicated creator for it.
|
|
|
//
|
|
@@ -83,4 +81,8 @@ performNSEC3Test(ZoneFinder &finder);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-#endif
|
|
|
+#endif // FAKED_NSEC3_H
|
|
|
+
|
|
|
+// Local Variables:
|
|
|
+// mode: c++
|
|
|
+// End:
|