shrpx: Make is_secure() static
This commit is contained in:
parent
cbf8ccf7d1
commit
06220f7fdf
|
@ -129,6 +129,7 @@ int split_host_port(char *host, size_t hostlen, uint16_t *port_ptr,
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
namespace {
|
||||||
bool is_secure(const char *filename)
|
bool is_secure(const char *filename)
|
||||||
{
|
{
|
||||||
struct stat buf;
|
struct stat buf;
|
||||||
|
@ -143,6 +144,7 @@ bool is_secure(const char *filename)
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
} // namespace
|
||||||
|
|
||||||
std::string read_passwd_from_file(const char *filename)
|
std::string read_passwd_from_file(const char *filename)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue