"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib/tls/tortls_openssl.c" between
tor-0.4.6.3-rc.tar.gz and tor-0.4.6.4-rc.tar.gz

About: Tor is an anonymous Internet communication system - a network of virtual tunnels that allows people and groups to improve their privacy and security on the Internet. Release candidate.

tortls_openssl.c  (tor-0.4.6.3-rc):tortls_openssl.c  (tor-0.4.6.4-rc)
skipping to change at line 1193 skipping to change at line 1193
void void
tor_tls_block_renegotiation(tor_tls_t *tls) tor_tls_block_renegotiation(tor_tls_t *tls)
{ {
#ifdef SUPPORT_UNSAFE_RENEGOTIATION_FLAG #ifdef SUPPORT_UNSAFE_RENEGOTIATION_FLAG
tls->ssl->s3->flags &= ~SSL3_FLAGS_ALLOW_UNSAFE_LEGACY_RENEGOTIATION; tls->ssl->s3->flags &= ~SSL3_FLAGS_ALLOW_UNSAFE_LEGACY_RENEGOTIATION;
#else #else
(void) tls; (void) tls;
#endif #endif
} }
/** Assert that the flags that allow legacy renegotiation are still set */
void
tor_tls_assert_renegotiation_unblocked(tor_tls_t *tls)
{
#if defined(SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION) && \
SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION != 0
long options = SSL_get_options(tls->ssl);
tor_assert(0 != (options & SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION));
#else
(void) tls;
#endif /* defined(SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION) && ... */
}
/** /**
* Tell the TLS library that the underlying socket for <b>tls</b> has been * Tell the TLS library that the underlying socket for <b>tls</b> has been
* closed, and the library should not attempt to free that socket itself. * closed, and the library should not attempt to free that socket itself.
*/ */
void void
tor_tls_release_socket(tor_tls_t *tls) tor_tls_release_socket(tor_tls_t *tls)
{ {
if (! tls) if (! tls)
return; return;
 End of changes. 1 change blocks. 
13 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)