Skip to content

Commit 16a7ca8

Browse files
karalabeTravis CI User
authored and
Travis CI User
committed
Updated libtor dependencies
1 parent 20bfcee commit 16a7ca8

File tree

10 files changed

+22
-10
lines changed

10 files changed

+22
-10
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The `go-libtor` project is a self-contained, fully statically linked Tor library
88
|:--------:|:-------:|:------:|
99
| zlib | 1.2.11 | [`cacf7f1d4e3d44d871b605da3b647f07d718623f`](https://github.com/madler/zlib/commit/cacf7f1d4e3d44d871b605da3b647f07d718623f) |
1010
| libevent | 2.2.0-alpha-dev | [`883587a9bff465176df39302526d8ae54b9d3cee`](https://github.com/libevent/libevent/commit/883587a9bff465176df39302526d8ae54b9d3cee) |
11-
| openssl | 1.1.1-stable | [`a5b8c19cdab4e330af0377e2fa0fdd1de2f67d59`](https://github.com/openssl/openssl/commit/a5b8c19cdab4e330af0377e2fa0fdd1de2f67d59) |
11+
| openssl | 1.1.1-stable | [`e21519280b3c3e0b264632fd72ce503a9d9ced73`](https://github.com/openssl/openssl/commit/e21519280b3c3e0b264632fd72ce503a9d9ced73) |
1212
| tor | 0.3.5.11-dev | [`82fca027352a17ca8d7dbb49b61dd1d6a2762f42`](https://gitweb.torproject.org/tor.git/commit/?id=82fca027352a17ca8d7dbb49b61dd1d6a2762f42) |
1313

1414
The library is currently supported on:

openssl/crypto/bn/bn_lib.c

+12
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ const BIGNUM *BN_value_one(void)
8787
return &const_one;
8888
}
8989

90+
/*
91+
* Old Visual Studio ARM compiler miscompiles BN_num_bits_word()
92+
* https://mta.openssl.org/pipermail/openssl-users/2018-August/008465.html
93+
*/
94+
#if defined(_MSC_VER) && defined(_ARM_) && defined(_WIN32_WCE) \
95+
&& _MSC_VER>=1400 && _MSC_VER<1501
96+
# define MS_BROKEN_BN_num_bits_word
97+
# pragma optimize("", off)
98+
#endif
9099
int BN_num_bits_word(BN_ULONG l)
91100
{
92101
BN_ULONG x, mask;
@@ -131,6 +140,9 @@ int BN_num_bits_word(BN_ULONG l)
131140

132141
return bits;
133142
}
143+
#ifdef MS_BROKEN_BN_num_bits_word
144+
# pragma optimize("", on)
145+
#endif
134146

135147
/*
136148
* This function still leaks `a->dmax`: it's caller's responsibility to

openssl/crypto/dso/dso_win32.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,8 @@ static int win32_pathbyaddr(void *addr, char *path, int sz)
565565

566566
/* Enumerate the modules to find one which includes me. */
567567
do {
568-
if ((uintptr_t) addr >= (uintptr_t) me32.modBaseAddr &&
569-
(uintptr_t) addr < (uintptr_t) (me32.modBaseAddr + me32.modBaseSize)) {
568+
if ((size_t) addr >= (size_t) me32.modBaseAddr &&
569+
(size_t) addr < (size_t) (me32.modBaseAddr + me32.modBaseSize)) {
570570
(*close_snap) (hModuleSnap);
571571
FreeLibrary(dll);
572572
# ifdef _WIN32_WCE

openssl/crypto/o_str.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ char *OPENSSL_buf2hexstr(const unsigned char *buffer, long len)
220220

221221
int openssl_strerror_r(int errnum, char *buf, size_t buflen)
222222
{
223-
#if defined(_MSC_VER) && _MSC_VER>=1400
223+
#if defined(_MSC_VER) && _MSC_VER>=1400 && !defined(_WIN32_WCE)
224224
return !strerror_s(buf, buflen, errnum);
225225
#elif defined(_GNU_SOURCE)
226226
char *err;

openssl/crypto/o_time.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result)
4141
if (gmtime_r(timer, result) == NULL)
4242
return NULL;
4343
ts = result;
44-
#elif defined (OPENSSL_SYS_WINDOWS) && defined(_MSC_VER) && _MSC_VER >= 1400
44+
#elif defined (OPENSSL_SYS_WINDOWS) && defined(_MSC_VER) && _MSC_VER >= 1400 && !defined(_WIN32_WCE)
4545
if (gmtime_s(result, timer))
4646
return NULL;
4747
ts = result;

openssl/crypto/rand/randfile.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#ifndef OPENSSL_NO_POSIX_IO
2727
# include <sys/stat.h>
2828
# include <fcntl.h>
29-
# ifdef _WIN32
29+
# if defined(_WIN32) && !defined(_WIN32_WCE)
3030
# include <windows.h>
3131
# include <io.h>
3232
# define stat _stat

openssl/e_os.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ extern FILE *_imp___iob;
308308
# if defined(OPENSSL_SYS_WINDOWS)
309309
# define strcasecmp _stricmp
310310
# define strncasecmp _strnicmp
311-
# if (_MSC_VER >= 1310)
311+
# if (_MSC_VER >= 1310) && !defined(_WIN32_WCE)
312312
# define open _open
313313
# define fdopen _fdopen
314314
# define close _close

openssl/include/openssl/e_os2.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ typedef UINT64 uint64_t;
241241
defined(__osf__) || defined(__sgi) || defined(__hpux) || \
242242
defined(OPENSSL_SYS_VMS) || defined (__OpenBSD__)
243243
# include <inttypes.h>
244-
# elif defined(_MSC_VER) && _MSC_VER<=1500
244+
# elif defined(_MSC_VER) && _MSC_VER<1600
245245
/*
246246
* minimally required typdefs for systems not supporting inttypes.h or
247247
* stdint.h: currently just older VC++

openssl_config/buildinf.x64.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212

1313
#define PLATFORM "platform: linux-x86_64"
14-
#define DATE "built on: Mon Jul 13 19:22:18 2020 +0300"
14+
#define DATE "built on: Wed Jul 15 23:09:24 2020 +0200"
1515

1616
/*
1717
* Generate compiler_flags as an array of individual characters. This is a

openssl_config/buildinf.x86.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212

1313
#define PLATFORM "platform: linux-x86"
14-
#define DATE "built on: Mon Jul 13 19:22:18 2020 +0300"
14+
#define DATE "built on: Wed Jul 15 23:09:24 2020 +0200"
1515

1616
/*
1717
* Generate compiler_flags as an array of individual characters. This is a

0 commit comments

Comments
 (0)