83 Commits
Author SHA1 Message Date
Cory Benfield 86458a336b Update BoringSSL to 8eb25be6fa18d475291122887a7bccd3762ff236 (#607)
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.
2026-10-09 17:19:47 +00:00
Cory Benfield 049520bf7d Update BoringSSL to 817ab07ebb53da35afea409ab9328f578492832d (#506)
This PR updates BoringSSL to a newer commit.

Relatedly, this also lifts our minimum C++ version to C++17, to match
BoringSSL.
2025-02-10 15:43:01 +00:00
Cory Benfield e252d9bf14 Update BoringSSL to 9559c4566a6d12194c42db5f3dbbcb5de35cfec2 (#496)
This patch updates BoringSSL.
2024-12-09 16:48:49 +00:00
Cory Benfield 3ee8d53556 Update BoringSSL to 059585c8dadc7c8170c788f8c89843ee1c5b8f11 (#495) 2024-11-28 16:10:21 +00:00
Rick Newton-Rogers 61cfaf9798 Migrate to GitHub Actions (#487)
Migrate CI to use GitHub Actions.

### Motivation:

To migrate to GitHub actions and centralised infrastructure.

### Modifications:

Changes of note:
* Disable warnings-as-errors until issues with recent NIO changes are
resolved
* Adopt swift-format using rules from SwiftNIO
* Remove scripts which are no longer needed

### Result:

Feature parity with old CI minus allocation tests which remain on the
old CI.
2024-10-25 09:32:23 +01:00
Cory Benfield d7ceaf0e4d Update BoringSSL to d0a175601b9e180ce58cb1e33649057f5c484146 (#483)
This patch has 3 parts: a commit to update the vendoring script, a
commit that contains the results of running the script, and then a fixup
for the API breaks we got.
2024-10-09 18:11:48 +01:00
Andrew BarbaandCory Benfield e9021d1a4e Implement SSL_CTX_set_cert_cb (#456)
This is a first pass at reviving
https://github.com/apple/swift-nio-ssl/pull/311 in order to fix
https://github.com/apple/swift-nio-ssl/issues/310

Credit to @TechnikEmpire, I did my best to address the comments in the
original PR from @Lukasa

If the approach looks okay I'll move to testing

---------

Co-authored-by: Cory Benfield <lukasa@apple.com>
2024-09-16 12:26:04 +01:00
Gustavo Cairo e0464ed61f Add cxx interop build pipeline (#454) 2024-01-02 13:55:07 +00:00
Cory Benfield 13460776e7 Update BoringSSL to 3309ca66385ecb0c37f1ac1be9f88712e25aa8ec (#446)
* Update vendoring and perlasm

* Update vendoring script

* Update to BoringSSL 3309ca66385ecb0c37f1ac1be9f88712e25aa8ec

* Handle API break in BoringSSL
2023-10-30 10:48:37 +00:00
Cory Benfield 5c57d8e64a Drop Swift 5.5 (#425)
* Drop Swift 5.5

This patch drops Swift 5.5 support. It removes docker-compose files and
deletes any conditional compilation guards that are no longer necessary.

* Remove test generation script
2023-04-13 16:48:55 +01:00
Cory Benfield 9d0d5d8798 Update BoringSSL to abfd5ebc87ddca0fab9fca067c9d7edbc355eae8 (#424)
* Update BoringSSL vendoring scripts for new perlasm

* More patches

* Update BoringSSL to abfd5ebc87ddca0fab9fca067c9d7edbc355eae8

* Fixup newly opaquified types
2023-04-13 12:42:47 +01:00
Cory Benfield c608fe2787 Fix the docs and add infrastructure for CI-ing it (#422)
* Fix the docs and add infrastructure for CI-ing it

* Update soundness for 2023
2023-04-11 03:44:18 -07:00
George Barnett 845a97cbd5 Remove Jazzy doc generation (#417)
Motivation:

Docs are generated by and hosted on the Swift Package Index. We no
longer need the script to generate docs via Jazzy.

Modifications:

- Remove the generate_docs script
- Remove Jazzy from the Dockerfile but keep Ruby; it's used for
  generating test manifests.
- Remove SwiftFormat from the Dockerfile; we don't use it.

Result:

Fewer unused things.
2023-01-23 07:50:26 -08:00
George Barnett ef0baa9dcc Raise minimum supported Swift version from 5.4 to 5.5 (#401)
Motivation:

SwiftNIO periodically drops support for older Swift versions. Now that
5.7 has been released, 5.4 will be dropped.

Modifications:

- Remove 5.4 specific Package.swift and docker-compose
- Update the 5.7 docker-compose to use the released 5.7 and move from
  focal (2004) to jammy (2204)
- Fix the tools version in Package@swift-5.5.swift
- Update docs

Results:

Minimum Swift version is 5.5
2022-09-29 09:22:22 +01:00
George Barnett 8c2c602dd2 Record version in all Package.swift files 2022-09-28 12:08:28 +01:00
Cory Benfield ba7c0d7f82 Update BoringSSL to 8462a367bb57e9524c3d8eca9c62733c63a63cf4 (#399)
* Update BoringSSL umbrella header

* Update BoringSSL to 8462a367bb57e9524c3d8eca9c62733c63a63cf4
2022-09-02 04:38:36 -07:00
Cory Benfield 1b16a07692 Use Docc for documentation (#390)
Motivation

Documentation is nice, and we can help support users by providing useful
clear docs.

Modifications

Add Docc to 5.6 and later builds
Make sure symbol references work
Add overview docs

Result

Nice rendering docs
2022-08-09 08:33:58 +01:00
George Barnett fd5f38b003 Update BoringSSL to c239ffd0552179f358de31517391679e9b62ccd3 (#378)
* Various vendor script fixes:

- Fix various 'gsed' occurrences with '$sed'
- Remove the delocate patch, it is no longer required
- Add another patch to include inttypes in
  CNIOBoringSSL/crypto/x509/t_x509.c where PRIu64 is used and remove it
  from CNIOBoringSSL_bn.h. this works around a build failure with
  xcodeproj.
- Use the host platform build directory when mangling C++ symbols
- Fix Python bytes/string writing in build-asm.py

* Update BoringSSL to c239ffd0552179f358de31517391679e9b62ccd3
2022-07-04 10:53:09 +01:00
Cory BenfieldandGeorge Barnett e71a0f38df Update scripts/vendor-boringssl.sh
Co-authored-by: George Barnett <gbarnett@apple.com>
2022-06-20 14:27:29 +01:00
Cory Benfield 83c2001852 Update BoringSSL vendor for Apple Silicon
We updated the swift-crypto build scripts for Apple Silicon, let's make
a change here too.
2022-06-20 14:27:29 +01:00
George Barnett 42436a25ff Update BoringSSL to 1e469e45a46ff580899cbef939babe02ad916c85 (#370)
* Update vendor-boringssl.sh

* Update BoringSSL
2022-06-09 06:03:49 -07:00
George Barnett 4941a5e1d9 Remove build_podspec.sh (#365)
Motivation:

We no longer support Cocoapods.

Modifications:

- Remove build_podspec.sh and associated scripts

Result:

Less unused code.
2022-05-04 03:39:40 -07:00
George Barnett 36880de810 Update pod generation script
Motivation:

To workaround https://github.com/apple/swift-nio/issues/2073 we must
list all transitive dependencies when building podspecs.

Modifications:

- Copy over `list_transitive_dependencies.py` from the NIO repo.
- Include transitive dependencies in the build_podspec script
- Bump C++ language standard from 11 to 14
- Ignore non-modular header warnings
- Be more precise when specifying 'CNIOBoringSSL*' targets
- Use python3 in build-asm.py (The soundness script includes the
  shebang as part of the 'hash' when checking for license headers and
  only allows for one shebang per extension so we cannot use both Python
  2 and 3 in the same repo.)

Result:

Podspec generation script includes transitive dependencies.
2022-05-04 10:59:20 +01:00
George Barnett 876748fde7 Update BoringSSL to f299342e38fd34b589604ef5b730623da13ee235 (#356)
* Update BoringSSL to f299342e38fd34b589604ef5b730623da13ee235

* Add a note about stray xcodeproj
2022-04-22 10:24:36 +01:00
Fabian Fett e018a45ee1 Drop support for Swift 5.2 and 5.3 (#353)
As outlined in a [Swift forums post in November ’21](https://forums.swift.org/t/swiftnio-swift-version-support/53232), SwiftNIO will only support the latest non-patch Swift release and the 2 immediately prior non-patch versions.

- drop support for Swift 5.2 and 5.3
- update CI for Swift 5.4 to run on bionic instead of focal to ensure that we still test bionic
2022-04-20 08:55:29 +02:00
Franz Busch 1750965a1c Use SPM API diff checker (#351)
### Motivation:

SPM has built in functionality to check the API of modules against a target git treeish. We can use this to simplify our `check_no_api_breakages.sh` script. Closes https://github.com/apple/swift-nio/issues/1239

### Modifications:

This PR, exchanges the direct calls to Swift's API checker with the new SPM `diagnose-api-breaking-changes` tool. This allows us to get rid of the manual module parsing, build invocations and result comparisons.

### Result:

We are now using SPMs `diagnose-api-breaking-changes` to check for breaking changes.
2022-03-24 11:35:22 -07:00
Cory Benfield b5260a31c2 Update BoringSSL to 8bbefbfeee609b17622deedd100163c12f5c95dc (#350) 2022-03-22 15:10:36 +00:00
David Nadoba 3604f9db82 Make 2022 a valid year in licence headers (#346) 2022-03-09 10:15:06 -08:00
George Barnett 76164f0237 Update doc generation script (#335)
Motivation:

The docs haven't been generated for a while.

See also: https://github.com/apple/swift-nio/pull/2013

Modifications:

- Pass `--spm` flag to sourcekitten
- Update source location of sourcekitten
- Fix link to NIO docs

Result:

Docs build.
2021-12-17 04:07:58 -08:00
Cory Benfield 08e701df9a Add x509_vfy.h to umbrella header 2021-11-10 09:09:23 +00:00
Cory Benfield c359ba56f7 Clean up imports and dependencies (#319)
Motivation:

With NIO 2.32.0 we broke the core NIO module up into modules that split
apart the POSIX layer and the core abstractions. As a result, this
package no longer needs to express a hard dependency on the POSIX layer.

Modifications:

- Rewrote imports of NIO to NIOCore.
- Added NIOEmbedded and NIOPosix imports where necessary in tests.
- Extended soundness script to detect NIO imports.
- Note that the main modules still depend on NIO, which is necessary
for backwards-compatibility reasons. This dependency is unused.

Result:

No need to use NIOPosix.
2021-09-14 14:55:25 +01:00
George Barnett bf4b24679a Fix doc generation and jazzy version (#1950) (#313)
From: https://github.com/apple/swift-nio-extras/pull/141

Motivation:

The combination of Ruby and Jazzy are throwing up issues in CI on older
Ubuntu versions.

Modifications:

- Only install Jazzy on focal
- Fix doc generation script to use more recent source-kitten syntax

Results:

- CI doesn't complain
- Docs get built
2021-09-03 14:25:19 +01:00
George BarnettandCory Benfield 4829979d9f Bump Swift version in build_podspec.sh (#305)
Motivation:

SwiftNIO recently dropped support for Swift 5.0 and Swift 5.1 but our
build_podspec.sh script doesn't reflect this change. Additionally the
list_topsorted_dependencies.sh script always assumed named depenencies
when listing module depenencies. Since our tools version has now been
bumped to 5.2 that's no longer the case and the script produces a bunch
of nulls which throws the build_podspec.sh script off course.

Modifications:

- Bump the Swift version in build_podspec.sh to 5.2
- Include "product" dependencies when listing module dependencies in
  list_topsorted_dependencies.sh

Result:

Podspecs are created as expected

Co-authored-by: Cory Benfield <lukasa@apple.com>
2021-08-17 13:06:26 +01:00
Cory Benfield 0119cf84a0 Update BoringSSL to 2e68a05c9943a8dec1758d4a393b2ae906fd3295 (#308)
Also tweak the vendor script to add an explicit destination when
building for iOS.
2021-08-17 09:37:51 +01:00
David Evans 9317691e7e Remove support for Swift 5.0 and 5.1 (#302)
Changes made:

Removed CI config for 5.0 ad 5.1
Changed 5.2 to be based on 16.04 so we have some coverage there
Converted Package.swift to the latest syntax
Added a description to supported Swift versions in the README
2021-06-22 18:29:52 +01:00
buttaface eab60b2ada Enable tests for Android (#300)
Motivation:

Run the tests on Android.

Modifications:

- Enable the tests on Android.
- Replace a few uses of /tmp with FileManager.default.temporaryDirectory in the
  Swift tests.

Result:

All the tests pass on Android AArch64.
2021-06-15 09:10:17 +01:00
Cory Benfield 6b6c0582d6 Update boringssl to 04b3213d43492b6c9e0434d8e2a4530a9938f958 (#279) 2021-03-10 14:31:02 +00:00
Dalton Claybrook bbb38fbcbb Update podspec script to remove 'S' files from watchOS target (#277) 2021-02-24 07:42:20 +00:00
George Barnett 722c70f0fb Allow warnings when building Podspecs (#274)
Motivation:

When pushing Cocoapods a warning is emitted for SwiftNIOSSL
('SecTrustEvaluateAsync' was deprecated in watchOS 6.0). Pushing the
pods fails as a result.

Modifications:

Allow warnings when pushing pods.

Result:

Pods can be pushed with warnings.
2021-02-18 15:30:53 +00:00
Johannes Weiss 4c933e955b update code of conduct to version 1.4 (#273) 2021-02-17 14:17:13 +00:00
Cory Benfield 5cf978934a Update vendor script to namespace C++ structures. (#269)
Motivation:

C++ structures emit a number of symbols into their binaries that are
named based on the name of the structure. Most notably, these are the
three (or five, depending on mode) magic structure methods: copy
constructor, copy assignment operator, destructor.

By and large this isn't an issue for us as BoringSSL already namespaces
most of its structures. However, a few structures are the target of
opaque typedefs in the public header files. These need to use the names
that would appear in the internal source. If they didn't, the internal
source wouldn't compile! As a result they need to appear outside the
inner prefixing namespace.

We knew about this limitation at the time we did this work, but hoped
we'd get along just fine without changing anything. In fact we did, for
nearly three years. But the chickens have come home to roost in
https://github.com/grpc/grpc-swift/issues/1134.

So it's time to fix it.

Fortunately for us, we never write down the names of the inner types in
our source code. That means we don't actually care what that name _is_.
This gives us our escape hatch: we can namespace the names of the
underlying C++ types using the same preprocessor trick as the function
names. This will have the effect of also namespacing their magic
methods.

Modifications:

This patch attempts to make this change defensively, by assuming that
other structures may be added that meet this pattern. To do it, we
compile the binary _again_ and search for any C++ methods that haven't
already been namespaced and that don't belong to Swift. We then extract
the structure name from them and add a `#define` for it. This forcibly
renames the structure in all cases.

Result:

No more colliding symbols.
2021-02-12 08:23:29 +00:00
Cory Benfield f6726f800c Update BoringSSL to bb43a45d6de7375f3310511d37f040d1055f8a10 (#268) 2021-02-03 12:55:20 +00:00
Fabian Fett 00c264d7a5 Use welcoming language (#265) 2021-01-22 13:46:59 +00:00
George Barnett 901a014233 Fixup vendoring script and update BoringSSL. (#256)
* Update vendoring script to fix a missing includeo

Motivation:

The openssl/evp.h header was missing causing compilation to fail.
In addition, a previously missing header is now included by BoringSSL.

Modifications:

- Update the fix import line to fix the new missing header.

Result:

BoringSSL can be vendored using our script.

* Update BoringSSL to 4a265be4d931e35f0d108040c94d37bb49827948.
2020-11-27 11:15:57 +00:00
George Barnett 4de53b6c84 Add watchOS deployment to PodSpec build script (#252)
Motivation:

We support watchOS 6+ with SwiftNIO Transport Services; as such we should
include watchOS as a deployment target for our CocoaPods.

Modifications:

- Add a watchOS deployment target to `build_podspecs.sh`

Result:

Users can deploy to watchOS 6+ with CocoaPods.
2020-10-21 15:28:05 +01:00
Cory Benfield 4c66baf51d We use the main branch now. (#243) 2020-09-25 20:25:03 +01:00
George Barnett ea1dfd6419 Update BoringSSL to 1c58648f14ed75f2a8cc3ae08897987d97f493ec (#239)
* Update patch-2-arm-arch.patch

* Update BoringSSL to 1c58648f14ed75f2a8cc3ae08897987d97f493ec
2020-08-26 16:17:22 +01:00
Daniel Alm 7932e709af Fix the -f option in build_podspec.sh. (#237)
* Fix the -f option in build_podspec.sh.

* Add docs.

* Another minor tweak.
2020-08-06 18:23:50 +01:00
George Barnett e14f8ebd6a Add synchronous option to trunk push in build_podspec.sh (#222)
See https://github.com/apple/swift-nio/pull/1551
2020-06-10 15:23:13 +01:00
George Barnett a44a343f69 Update build_podspec.sh to not use exact dependency versions (#221)
Motivation:

The build_podspec.sh script generates a podspec which requires exact
versions of its dependencies. This very quickly turns into unresolvable
dependency graphs.

Modifications:

NIO version passed to script must be in the format MAJOR.MINOR
Podspec dependencies are now '>= MAJOR.MINOR', '< MAJOR+1'

Result:

Looser version requirements for podspecs
2020-06-10 13:51:32 +01:00