Skip to content

Commit e9beb62

Browse files
committed
libtls-bearssl: Update to latest git
1 parent 954a3df commit e9beb62

5 files changed

Lines changed: 11 additions & 54 deletions

File tree

pkg/libtls-bearssl/gen.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
cflags{
22
'-std=c11', '-Wall', '-Wpedantic',
33
'-D _DEFAULT_SOURCE',
4+
'-D LIBRESSL_INTERNAL',
45
'-I $srcdir',
56
'-isystem $builddir/pkg/bearssl/include',
67
}

pkg/libtls-bearssl/patch/0002-Use-patched-bearssl-flag-to-force-CertificateRequest.patch renamed to pkg/libtls-bearssl/patch/0001-Use-patched-bearssl-flag-to-force-CertificateRequest.patch

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
1-
From ce2e99a74f9216fa5783a6bc943c228788fd469c Mon Sep 17 00:00:00 2001
1+
From 430580cf1df1fe85f7401ebf3e0005b9f72bfac7 Mon Sep 17 00:00:00 2001
22
From: Michael Forney <mforney@mforney.org>
33
Date: Thu, 13 May 2021 22:17:56 -0700
44
Subject: [PATCH] Use patched bearssl flag to force CertificateRequest
55

66
---
7-
tls_server.c | 6 +-----
8-
1 file changed, 1 insertion(+), 5 deletions(-)
7+
tls_server.c | 7 +------
8+
1 file changed, 1 insertion(+), 6 deletions(-)
99

1010
diff --git a/tls_server.c b/tls_server.c
11-
index 2436036..7f578b8 100644
11+
index 87bf4f4..f03d326 100644
1212
--- a/tls_server.c
1313
+++ b/tls_server.c
14-
@@ -339,11 +339,7 @@ tls_accept_common(struct tls *ctx)
14+
@@ -332,12 +332,7 @@ tls_accept_common(struct tls *ctx)
1515
if (tls_configure_x509(conn_ctx) != 0)
1616
goto err;
1717

1818
- if (ctx->config->ca_len == 0) {
19-
- tls_set_errorx(ctx, "cannot verify client without trust anchors");
19+
- tls_set_errorx(ctx, TLS_ERROR_UNKNOWN,
20+
- "cannot verify client without trust anchors");
2021
- goto err;
2122
- }
2223
-
@@ -25,5 +26,5 @@ index 2436036..7f578b8 100644
2526
ctx->config->ca, ctx->config->ca_len);
2627

2728
--
28-
2.31.1
29+
2.49.0
2930

pkg/libtls-bearssl/patch/0001-Use-patched-bearssl-method-to-retrieve-validity-peri.patch

Lines changed: 0 additions & 45 deletions
This file was deleted.

pkg/libtls-bearssl/src

Submodule src updated from 28db202 to 0d2b6e2

pkg/libtls-bearssl/ver

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5 r3
1+
0.5-147-g0d2b6e2aa5

0 commit comments

Comments
 (0)