Changeset 552


Ignore:
Timestamp:
08/01/11 01:32:15 (10 months ago)
Author:
shiretu
Message:

-- removed the SSL flash hack
-- added bandwidth hint on stream stats

Location:
trunk/sources/thelib/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/thelib/src/protocols/ssl/inboundsslprotocol.cpp

    r272 r552  
    8484                SSL_CTX_set_verify(_pGlobalSSLContext, SSL_VERIFY_NONE, NULL); 
    8585 
    86                 //7. Lock on the RC4-SHA. Apparently, the latest and the greatest flash plugin 
    87                 //only works with this little fucker 
    88                 WARN("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); 
    89                 WARN("!!! This is an ugly hack which deactivates !!!"); 
    90                 WARN("!!! all the ciphers inside OpenSSL and     !!!"); 
    91                 WARN("!!! only keeps RC4-SHA. If you don't use   !!!"); 
    92                 WARN("!!! InboundSSLProtocol inside other stuff, !!!"); 
    93                 WARN("!!! you can safely ignore this             !!!"); 
    94                 WARN("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); 
    95                 if (SSL_CTX_set_cipher_list(_pGlobalSSLContext, "!DEFAULT:RC4-SHA") == 0) { 
    96                         FATAL("Unable to select the RC4-SHA cipher. Error was: %s", 
    97                                         STR(GetSSLErrors())); 
    98                         SSL_CTX_free(_pGlobalSSLContext); 
    99                         _pGlobalSSLContext = NULL; 
    100                         return false; 
    101                 } 
    102  
    10386                //7. Store the global context for later usage 
    10487                _pGlobalContexts[hash] = _pGlobalSSLContext; 
  • trunk/sources/thelib/src/streaming/baseinstream.cpp

    r410 r552  
    5959                pTemp = pTemp->pPrev; 
    6060        } 
     61        StreamCapabilities *pCapabilities = GetCapabilities(); 
     62        if (pCapabilities != NULL) 
     63                info["bandwidth"] = (uint32_t) pCapabilities->bandwidthHint; 
     64        else 
     65                info["bandwidth"] = (uint32_t) 0; 
    6166} 
    6267 
  • trunk/sources/thelib/src/streaming/baseoutstream.cpp

    r410 r552  
    113113                info["inStreamUniqueId"] = Variant(); 
    114114        } 
     115        StreamCapabilities *pCapabilities = GetCapabilities(); 
     116        if (pCapabilities != NULL) 
     117                info["bandwidth"] = (uint32_t) pCapabilities->bandwidthHint; 
     118        else 
     119                info["bandwidth"] = (uint32_t) 0; 
    115120} 
    116121 
Note: See TracChangeset for help on using the changeset viewer.