Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static BOOL ssl_v2_supported()
- {
- return (options & SSL_OP_NO_SSLv2) == 0);
- }
- static BOOL is_ssl2_compatible()
- {
- BOOL compatible = TRUE;
- // Not compatible if ...
- if ( ! ssl_v2_supported() ) {
- // SSLv2 not supported
- compatible = FALSE;
- } else if ( !ssl_security(s, SSL_SECOP_SSL2_COMPAT, 0, 0, NULL) ) {
- // SSL_SECOP_SSL2_COMPAT is not set
- compatible = FALSE;
- } else if ( ssl23_no_ssl2_ciphers(s) ) {
- // There are no SSL2 ciphers
- compatible = FALSE;
- }
- return compatible;
- }
Advertisement
Add Comment
Please, Sign In to add comment