diff options
Diffstat (limited to 'patches')
-rw-r--r-- | patches/keypairtest.c.patch | 13 | ||||
-rw-r--r-- | patches/tls_config.c.patch | 25 | ||||
-rw-r--r-- | patches/tls_util.c.patch | 25 |
3 files changed, 0 insertions, 63 deletions
diff --git a/patches/keypairtest.c.patch b/patches/keypairtest.c.patch deleted file mode 100644 index b1f03da..0000000 --- a/patches/keypairtest.c.patch +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | --- tests/keypairtest.c.orig Sun Mar 18 00:31:20 2018 | ||
2 | +++ tests/keypairtest.c Sun Mar 18 00:31:33 2018 | ||
3 | @@ -15,6 +15,10 @@ | ||
4 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
5 | */ | ||
6 | |||
7 | +#ifdef _MSC_VER | ||
8 | +#define NO_REDEF_POSIX_FUNCTIONS | ||
9 | +#endif | ||
10 | + | ||
11 | #include <sys/stat.h> | ||
12 | |||
13 | #include <err.h> | ||
diff --git a/patches/tls_config.c.patch b/patches/tls_config.c.patch deleted file mode 100644 index cd9817c..0000000 --- a/patches/tls_config.c.patch +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | --- tls/tls_config.c.orig Fri Jul 26 22:16:53 2019 | ||
2 | +++ tls/tls_config.c Fri Jul 26 22:21:25 2019 | ||
3 | @@ -15,6 +15,10 @@ | ||
4 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
5 | */ | ||
6 | |||
7 | +#ifdef _MSC_VER | ||
8 | +#define NO_REDEF_POSIX_FUNCTIONS | ||
9 | +#endif | ||
10 | + | ||
11 | #include <sys/stat.h> | ||
12 | |||
13 | #include <ctype.h> | ||
14 | @@ -48,7 +52,11 @@ tls_config_load_file(struct tls_error *error, const ch | ||
15 | *buf = NULL; | ||
16 | *len = 0; | ||
17 | |||
18 | +#ifndef _WIN32 | ||
19 | if ((fd = open(filename, O_RDONLY)) == -1) { | ||
20 | +#else | ||
21 | + if ((fd = open(filename, O_RDONLY | O_BINARY)) == -1) { | ||
22 | +#endif | ||
23 | tls_error_set(error, "failed to open %s file '%s'", | ||
24 | filetype, filename); | ||
25 | goto err; | ||
diff --git a/patches/tls_util.c.patch b/patches/tls_util.c.patch deleted file mode 100644 index 9f57d83..0000000 --- a/patches/tls_util.c.patch +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | --- tls/tls_util.c.orig Fri Jul 26 22:17:04 2019 | ||
2 | +++ tls/tls_util.c Fri Jul 26 22:21:22 2019 | ||
3 | @@ -17,6 +17,10 @@ | ||
4 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
5 | */ | ||
6 | |||
7 | +#ifdef _MSC_VER | ||
8 | +#define NO_REDEF_POSIX_FUNCTIONS | ||
9 | +#endif | ||
10 | + | ||
11 | #include <sys/stat.h> | ||
12 | |||
13 | #include <stdlib.h> | ||
14 | @@ -161,7 +165,11 @@ tls_load_file(const char *name, size_t *len, char *pas | ||
15 | |||
16 | *len = 0; | ||
17 | |||
18 | +#ifndef _WIN32 | ||
19 | if ((fd = open(name, O_RDONLY)) == -1) | ||
20 | +#else | ||
21 | + if ((fd = open(name, O_RDONLY | O_BINARY)) == -1) | ||
22 | +#endif | ||
23 | return (NULL); | ||
24 | |||
25 | /* Just load the file into memory without decryption */ | ||