Skip to content

Commit

Permalink
Updated libtor dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorropo-berty-bot committed Jan 9, 2021
1 parent 517c8ec commit d0d54d1
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
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 darwin/openssl/ssl/d1_lib.c
Original file line number Diff line number Diff line change
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 darwin/openssl/ssl/record/rec_layer_d1.c
Original file line number Diff line number Diff line change
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 darwin/openssl/ssl/statem/extensions.c
Original file line number Diff line number Diff line change
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
9 changes: 5 additions & 4 deletions linux/openssl/ssl/d1_lib.c
Original file line number Diff line number Diff line change
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 linux/openssl/ssl/record/rec_layer_d1.c
Original file line number Diff line number Diff line change
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 linux/openssl/ssl/statem/extensions.c
Original file line number Diff line number Diff line change
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 lock.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"zlib":"cacf7f1d4e3d44d871b605da3b647f07d718623f","libevent":"c5e4391b86ab0198c9878620d566a66043bd1f43","openssl":"a953f26dba5dadf8ac69c6fcbf71ebe3efba9407","tor":"6cd23b29d262da3ecd07208804804d66550a6c9a"}
{"zlib":"cacf7f1d4e3d44d871b605da3b647f07d718623f","libevent":"c5e4391b86ab0198c9878620d566a66043bd1f43","openssl":"212d7118a788e332dae4123d40f65ea6e24044d2","tor":"6cd23b29d262da3ecd07208804804d66550a6c9a"}
2 changes: 1 addition & 1 deletion openssl_config/buildinf.macos64.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

#define PLATFORM "platform: darwin64-x86_64-cc"
#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.x64.h
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 d0d54d1

Please sign in to comment.