Guest User

Untitled

a guest
Apr 11th, 2014
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.50 KB | None | 0 0
  1. static BOOL ssl_v2_supported()
  2. {
  3.     return (options & SSL_OP_NO_SSLv2) == 0);
  4. }
  5.  
  6. static BOOL is_ssl2_compatible()
  7. {
  8.     BOOL compatible = TRUE;
  9.    
  10.     // Not compatible if ...
  11.     if ( ! ssl_v2_supported() ) {
  12.         // SSLv2 not supported
  13.         compatible = FALSE;
  14.     } else if ( !ssl_security(s, SSL_SECOP_SSL2_COMPAT, 0, 0, NULL) ) {
  15.         // SSL_SECOP_SSL2_COMPAT is not set
  16.         compatible = FALSE;
  17.     } else if ( ssl23_no_ssl2_ciphers(s) ) {
  18.         // There are no SSL2 ciphers
  19.         compatible = FALSE;
  20.     }
  21.    
  22.     return compatible;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment