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.
24 lines
867 B
Diff
24 lines
867 B
Diff
diff --git a/Sources/CNIOBoringSSL/crypto/x509/t_x509.cc b/Sources/CNIOBoringSSL/crypto/x509/t_x509.cc
|
|
index 7a3acc8..c0bc1c5 100644
|
|
--- a/Sources/CNIOBoringSSL/crypto/x509/t_x509.cc
|
|
+++ b/Sources/CNIOBoringSSL/crypto/x509/t_x509.cc
|
|
@@ -13,6 +13,7 @@
|
|
// limitations under the License.
|
|
|
|
#include <assert.h>
|
|
+#include <inttypes.h> // for PRIu64 and friends
|
|
|
|
#include <CNIOBoringSSL_asn1.h>
|
|
#include <CNIOBoringSSL_bio.h>
|
|
diff --git a/Sources/CNIOBoringSSL/include/CNIOBoringSSL_bn.h b/Sources/CNIOBoringSSL/include/CNIOBoringSSL_bn.h
|
|
index 557fb1d..825b4ea 100644
|
|
--- a/Sources/CNIOBoringSSL/include/CNIOBoringSSL_bn.h
|
|
+++ b/Sources/CNIOBoringSSL/include/CNIOBoringSSL_bn.h
|
|
@@ -19,6 +19,5 @@
|
|
#include "CNIOBoringSSL_base.h" // IWYU pragma: export
|
|
|
|
-#include <inttypes.h> // for PRIu64 and friends
|
|
#include <sys/types.h>
|
|
#include <stdio.h> // for FILE*
|
|
|