Skip to content

Commit 753c252

Browse files
Merge pull request #11 from CopernicaMarketingSoftware/fix/lookup
Fix the lookup.cpp test file
2 parents 47cf470 + 8e6992e commit 753c252

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/lookup.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ class MyHandler : public DNS::Handler
147147
const DNS::TLSA tlsa(response, record);
148148

149149
// print out the enums
150-
std::cout << (int)tlsa.certificateUsage() << " " << (int)tlsa.selector() << " " << (int)tlsa.matchingType() << " ";
150+
std::cout << (int)tlsa.usage() << " " << (int)tlsa.selector() << " " << (int)tlsa.hashing() << " ";
151151

152152
// print the certificate association data as hex
153-
printhex(std::cout, tlsa.certificateAssociationData(), tlsa.certificateAssociationDataSize());
153+
printhex(std::cout, tlsa.data(), tlsa.size());
154154

155155
// done
156156
break;

0 commit comments

Comments
 (0)