Skip to content

Commit

Permalink
config: added GetTlsPskByFullyQualifiedResourceName to ConfigurationP…
Browse files Browse the repository at this point in the history
…arser
  • Loading branch information
franku committed Sep 20, 2018
1 parent b6003f4 commit 4995076
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/src/lib/parse_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ class DLL_IMP_EXP ConfigurationParser {
const char *res_to_str(int rcode) const;
bool StoreResource(int type, LEX *lc, ResourceItem *item, int index, int pass);
void InitializeQualifiedResourceNameTypeConverter(std::map<std::string, int> &);
bool GetTlsPskByFullyQualifiedResourceName(const char *fully_qualified_name, std::string &psk);

private:
ConfigurationParser(const ConfigurationParser &) = delete;
Expand Down
11 changes: 11 additions & 0 deletions core/src/lib/res.cc
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,17 @@ const char *ConfigurationParser::res_to_str(int rcode) const
}
}

bool ConfigurationParser::GetTlsPskByFullyQualifiedResourceName(const char *fq_name_in,
std::string &psk)
{
char *fq_name_buffer = bstrdup(fq_name_in);
UnbashSpaces(fq_name_buffer);
std::string fq_name(fq_name_buffer);
free(fq_name_buffer);

return false;
}

/*
* Scan for message types and add them to the message
* destination. The basic job here is to connect message types
Expand Down

0 comments on commit 4995076

Please sign in to comment.