0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 12:12:15 +02:00

SSLConst: added new ssl_flags() method which filters out

non-ssl flags from given argument.

Signed-off-by: James Yonan <james@openvpn.net>
This commit is contained in:
James Yonan 2017-09-23 16:22:26 -06:00 committed by Antonio Quartulli
parent 8379b0a319
commit 0090c51978

View File

@ -57,8 +57,16 @@ namespace openvpn {
// clients that connect to us have their certificate
// purpose set to server.
SERVER_TO_SERVER=(1<<4),
// last flag marker
LAST=(1<<5),
};
// filter all but SSL flags
inline unsigned int ssl_flags(const unsigned int flags)
{
return flags & (LAST-1);
}
}
}