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:
parent
8379b0a319
commit
0090c51978
@ -57,8 +57,16 @@ namespace openvpn {
|
|||||||
// clients that connect to us have their certificate
|
// clients that connect to us have their certificate
|
||||||
// purpose set to server.
|
// purpose set to server.
|
||||||
SERVER_TO_SERVER=(1<<4),
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user