Skip to content

Commit 4e7f5af

Browse files
Update to latest BearSSL (#6337)
Fix a buffer overflow error in private key decoding. https://bearssl.org/gitweb/?p=BearSSL;a=commit;h=b715b43e411dc5d5949df6f75ef7bb65952db11c
1 parent 705dd39 commit 4e7f5af

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// Do not edit -- Automatically generated by tools/sdk/ssl/bearssl/Makefile
2-
#define BEARSSL_GIT 9247320
2+
#define BEARSSL_GIT 89454af

tools/sdk/include/bearssl/bearssl_ssl.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1251,8 +1251,8 @@ static inline void
12511251
br_ssl_engine_set_versions(br_ssl_engine_context *cc,
12521252
unsigned version_min, unsigned version_max)
12531253
{
1254-
cc->version_min = version_min;
1255-
cc->version_max = version_max;
1254+
cc->version_min = (uint16_t)version_min;
1255+
cc->version_max = (uint16_t)version_max;
12561256
}
12571257

12581258
/**
@@ -1325,7 +1325,7 @@ br_ssl_engine_set_protocol_names(br_ssl_engine_context *ctx,
13251325
const char **names, size_t num)
13261326
{
13271327
ctx->protocol_names = names;
1328-
ctx->protocol_names_num = num;
1328+
ctx->protocol_names_num = (uint16_t)num;
13291329
}
13301330

13311331
/**

tools/sdk/lib/libbearssl.a

3.02 KB
Binary file not shown.

0 commit comments

Comments
 (0)