mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 20:13:05 +02:00
Update httpcreds.hpp with SplitLines change where S_OK was renamed to S_OKAY due to Windows symbol conflict.
This commit is contained in:
parent
8ca935bcd4
commit
94419fd21c
@ -93,9 +93,9 @@ namespace openvpn {
|
||||
const std::string content = read_text_utf8(fn);
|
||||
SplitLines sl(content, 1024);
|
||||
std::string u, p;
|
||||
if (sl.next(u) != SplitLines::S_OK)
|
||||
if (sl.next(u) != SplitLines::S_OKAY)
|
||||
throw Exception(fn + " : username missing");
|
||||
if (sl.next(p) != SplitLines::S_OK)
|
||||
if (sl.next(p) != SplitLines::S_OKAY)
|
||||
throw Exception(fn + " : password missing");
|
||||
if (u.empty())
|
||||
throw Exception(fn + " : username empty");
|
||||
|
Loading…
Reference in New Issue
Block a user