Skip to content

Commit 3ee8d53

Browse files
authored
Update BoringSSL to 059585c8dadc7c8170c788f8c89843ee1c5b8f11 (#495)
1 parent ea402d2 commit 3ee8d53

File tree

392 files changed

+9822
-7244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

392 files changed

+9822
-7244
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"mallocCountTotal" : 644865
2+
"mallocCountTotal" : 637000
33
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"mallocCountTotal" : 644868
2+
"mallocCountTotal" : 637000
33
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"mallocCountTotal" : 643873
2+
"mallocCountTotal" : 636000
33
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"mallocCountTotal" : 643873
2+
"mallocCountTotal" : 636000
33
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"mallocCountTotal" : 643873
2+
"mallocCountTotal" : 636000
33
}

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import class Foundation.ProcessInfo
2626
// Sources/CNIOBoringSSL directory. The source repository is at
2727
// https://boringssl.googlesource.com/boringssl.
2828
//
29-
// BoringSSL Commit: d0a175601b9e180ce58cb1e33649057f5c484146
29+
// BoringSSL Commit: 059585c8dadc7c8170c788f8c89843ee1c5b8f11
3030

3131
/// This function generates the dependencies we want to express.
3232
///

Sources/CNIOBoringSSL/crypto/asn1/a_bitstr.c renamed to Sources/CNIOBoringSSL/crypto/asn1/a_bitstr.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ ASN1_BIT_STRING *c2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a,
142142
const unsigned char *p;
143143
unsigned char *s;
144144
int padding;
145+
uint8_t padding_mask;
145146

146147
if (len < 1) {
147148
OPENSSL_PUT_ERROR(ASN1, ASN1_R_STRING_TOO_SHORT);
@@ -170,7 +171,7 @@ ASN1_BIT_STRING *c2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a,
170171
}
171172

172173
// Unused bits in a BIT STRING must be zero.
173-
uint8_t padding_mask = (1 << padding) - 1;
174+
padding_mask = (1 << padding) - 1;
174175
if (padding != 0 && (len < 1 || (p[len - 1] & padding_mask) != 0)) {
175176
OPENSSL_PUT_ERROR(ASN1, ASN1_R_INVALID_BIT_STRING_PADDING);
176177
goto err;
@@ -182,7 +183,7 @@ ASN1_BIT_STRING *c2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a,
182183
ret->flags |= (ASN1_STRING_FLAG_BITS_LEFT | padding); // set
183184

184185
if (len > 0) {
185-
s = OPENSSL_memdup(p, len);
186+
s = reinterpret_cast<uint8_t *>(OPENSSL_memdup(p, len));
186187
if (s == NULL) {
187188
goto err;
188189
}

Sources/CNIOBoringSSL/crypto/asn1/a_d2i_fp.c renamed to Sources/CNIOBoringSSL/crypto/asn1/a_d2i_fp.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void *ASN1_item_d2i_bio(const ASN1_ITEM *it, BIO *in, void *x) {
7272
return NULL;
7373
}
7474
const uint8_t *ptr = data;
75-
void *ret = ASN1_item_d2i(x, &ptr, len, it);
75+
void *ret = ASN1_item_d2i(reinterpret_cast<ASN1_VALUE **>(x), &ptr, len, it);
7676
OPENSSL_free(data);
7777
return ret;
7878
}

Sources/CNIOBoringSSL/crypto/asn1/a_dup.c renamed to Sources/CNIOBoringSSL/crypto/asn1/a_dup.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void *ASN1_item_dup(const ASN1_ITEM *it, void *x) {
7373
return NULL;
7474
}
7575

76-
i = ASN1_item_i2d(x, &b, it);
76+
i = ASN1_item_i2d(reinterpret_cast<ASN1_VALUE *>(x), &b, it);
7777
if (b == NULL) {
7878
return NULL;
7979
}

0 commit comments

Comments
 (0)