mirror of
https://github.com/apple/swift-nio-ssl
synced 2026-11-22 04:30:44 +00:00
As a standard pattern, the vendoring script needed some changes, as did our internal code. The biggest change here is that BoringSSL has changed its name mangling scheme. This causes us to no longer need to explicitly write the prefix out anymore: in fact, doing that causes compiler errors. So this patch rewrites the code to resolve that issue. Along the way, I've also added some checks for making sure the name mangling is correct.
25 lines
846 B
Diff
25 lines
846 B
Diff
diff --git a/Sources/CNIOBoringSSL/crypto/hrss/hrss.cc b/Sources/CNIOBoringSSL/crypto/hrss/hrss.cc
|
|
index 93a214e..eee4e58 100644
|
|
--- a/Sources/CNIOBoringSSL/crypto/hrss/hrss.cc
|
|
+++ b/Sources/CNIOBoringSSL/crypto/hrss/hrss.cc
|
|
@@ -13,6 +13,7 @@
|
|
// limitations under the License.
|
|
|
|
#include <CNIOBoringSSL_hrss.h>
|
|
+#include <inttypes.h>
|
|
|
|
#include <assert.h>
|
|
#include <stdio.h>
|
|
diff --git a/Sources/CNIOBoringSSL/include/CNIOBoringSSL_bn.h b/Sources/CNIOBoringSSL/include/CNIOBoringSSL_bn.h
|
|
index c86c1ef..7013140 100644
|
|
--- a/Sources/CNIOBoringSSL/include/CNIOBoringSSL_bn.h
|
|
+++ b/Sources/CNIOBoringSSL/include/CNIOBoringSSL_bn.h
|
|
@@ -19,6 +19,7 @@
|
|
#include "CNIOBoringSSL_base.h" // IWYU pragma: export
|
|
|
|
#include <inttypes.h> // for PRIu64 and friends
|
|
+#include <sys/types.h>
|
|
#include <stdio.h> // for FILE*
|
|
|
|
#if defined(__cplusplus)
|