Skip to content

Commit

Permalink
Updated libtor dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
karalabe authored and Travis CI User committed Jan 9, 2021
1 parent 12f0a2b commit 5803c73
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -8,7 +8,7 @@ The `go-libtor` project is a self-contained, fully statically linked Tor library
|:--------:|:-------:|:------:|
| zlib | 1.2.11 | [`cacf7f1d4e3d44d871b605da3b647f07d718623f`](https://github.com/madler/zlib/commit/cacf7f1d4e3d44d871b605da3b647f07d718623f) |
| libevent | 2.2.0-alpha-dev | [`c5e4391b86ab0198c9878620d566a66043bd1f43`](https://github.com/libevent/libevent/commit/c5e4391b86ab0198c9878620d566a66043bd1f43) |
| openssl | 1.1.1-stable | [`a953f26dba5dadf8ac69c6fcbf71ebe3efba9407`](https://github.com/openssl/openssl/commit/a953f26dba5dadf8ac69c6fcbf71ebe3efba9407) |
| openssl | 1.1.1-stable | [`212d7118a788e332dae4123d40f65ea6e24044d2`](https://github.com/openssl/openssl/commit/212d7118a788e332dae4123d40f65ea6e24044d2) |
| tor | 0.3.5.12-dev | [`6cd23b29d262da3ecd07208804804d66550a6c9a`](https://gitweb.torproject.org/tor.git/commit/?id=6cd23b29d262da3ecd07208804804d66550a6c9a) |

The library is currently supported on:
Expand Down
9 changes: 5 additions & 4 deletions openssl/ssl/d1_lib.c
Expand Up @@ -142,10 +142,11 @@ void dtls1_free(SSL *s)

ssl3_free(s);

dtls1_clear_queues(s);

pqueue_free(s->d1->buffered_messages);
pqueue_free(s->d1->sent_messages);
if (s->d1 != NULL) {
dtls1_clear_queues(s);
pqueue_free(s->d1->buffered_messages);
pqueue_free(s->d1->sent_messages);
}

OPENSSL_free(s->d1);
s->d1 = NULL;
Expand Down
3 changes: 3 additions & 0 deletions openssl/ssl/record/rec_layer_d1.c
Expand Up @@ -46,6 +46,9 @@ int DTLS_RECORD_LAYER_new(RECORD_LAYER *rl)

void DTLS_RECORD_LAYER_free(RECORD_LAYER *rl)
{
if (rl->d == NULL)
return;

DTLS_RECORD_LAYER_clear(rl);
pqueue_free(rl->d->unprocessed_rcds.q);
pqueue_free(rl->d->processed_rcds.q);
Expand Down
3 changes: 2 additions & 1 deletion openssl/ssl/statem/extensions.c
Expand Up @@ -966,7 +966,8 @@ static int final_server_name(SSL *s, unsigned int context, int sent)
* context, to avoid the confusing situation of having sess_accept_good
* exceed sess_accept (zero) for the new context.
*/
if (SSL_IS_FIRST_HANDSHAKE(s) && s->ctx != s->session_ctx) {
if (SSL_IS_FIRST_HANDSHAKE(s) && s->ctx != s->session_ctx
&& s->hello_retry_request == SSL_HRR_NONE) {
tsan_counter(&s->ctx->stats.sess_accept);
tsan_decr(&s->session_ctx->stats.sess_accept);
}
Expand Down
2 changes: 1 addition & 1 deletion openssl_config/buildinf.x64.h
Expand Up @@ -11,7 +11,7 @@
*/

#define PLATFORM "platform: linux-x86_64"
#define DATE "built on: Thu Jan 7 09:58:25 2021 +0100"
#define DATE "built on: Sat Jan 9 01:05:24 2021 +0200"

/*
* Generate compiler_flags as an array of individual characters. This is a
Expand Down
2 changes: 1 addition & 1 deletion openssl_config/buildinf.x86.h
Expand Up @@ -11,7 +11,7 @@
*/

#define PLATFORM "platform: linux-x86"
#define DATE "built on: Thu Jan 7 09:58:25 2021 +0100"
#define DATE "built on: Sat Jan 9 01:05:24 2021 +0200"

/*
* Generate compiler_flags as an array of individual characters. This is a
Expand Down

0 comments on commit 5803c73

Please sign in to comment.