0
0
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:
James Yonan 2015-09-24 08:04:41 -07:00 committed by Lev Stipakov
parent 8ca935bcd4
commit 94419fd21c
No known key found for this signature in database
GPG Key ID: 88670BE258B9C258

View File

@ -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");