mirror of
https://github.com/nmap/nmap.git
synced 2025-12-25 17:09:02 +00:00
Change the static functions getattrbyname and gettestbyname into public
methods of AVal and FingerTest, respectively.
This commit is contained in:
@@ -171,6 +171,7 @@ struct OS_Classification {
|
||||
struct FingerTest {
|
||||
const char *name;
|
||||
std::vector<struct AVal> results;
|
||||
const struct AVal *getattrbyname(const char *name) const;
|
||||
};
|
||||
|
||||
struct FingerPrint {
|
||||
@@ -178,6 +179,7 @@ struct FingerPrint {
|
||||
char *OS_name;
|
||||
std::vector<OS_Classification> OS_class;
|
||||
std::vector<FingerTest> tests;
|
||||
const FingerTest *gettestbyname(const char *name) const;
|
||||
};
|
||||
|
||||
/* This structure contains the important data from the fingerprint
|
||||
|
||||
Reference in New Issue
Block a user