10 Commits
Author SHA1 Message Date
tomer doron 47d971e136 add doc generation script (#91)
motivation: publish API docs

changes:

amend docker file to include jazzy
add doc generation script based on what we have in swift-nio and swift-log
2019-03-27 08:38:30 +00:00
Cory Benfield ca35a38c94 Clean up includes that were hidden by whitespace. (#86)
Motivation:

We namespaced our header files, but some includes had weird whitespace in
the directive that we didn't notice. This meant that ARM builds failed.

Modifications:

- Became more tolerant of whitespace.
- Fixed an error in Package.swift

Result:

Better builds on ARM
2019-03-14 14:05:43 +00:00
Cory Benfield 5995ce5eac Remove the static target from regular Package.swift. (#85)
Motivation:

We have a static library target that is used as part of the BoringSSL
vendoring setup to generate a list of hidden symbols. This works nicely,
but building it fires out a bunch of warnings due to files with no symbols
in them. That's fine during the build phase, but most developers should
never need to see it.

Modifications:

- Hide the static archive product most of the time.
- Update vendor script to un-hide the static archive product on vendoring.
- Enable warnings-as-errors.

Result:

Fewer warnings.
2019-03-13 16:34:56 +00:00
Cory Benfield 3ae0a3b6e0 Record BoringSSL revision hash (#83)
Motivation:

When debugging, users may find it helpful to be able to nail down exactly
which version of BoringSSL is used to generate the specific release. We should
record this in two easy-to-find places: one in the Package.swift for users
going to GitHub, and one in the Sources tree for users who check the code
out.

Modifications:

- Updated the script to record the BoringSSL hash.

Result:

Easier to find out what BoringSSL release is in use.
2019-03-13 14:31:25 +00:00
Cory Benfield 45fa2eb1af Namespace header-only inline functions. (#79)
Motivation:

Our previous namespacing effort used symbol analysis of a compiled binary
to locate all the symbols that needed to be namespaced away. This works
fine for regular C and C++ symbols, but fails for any header-only
inline functions.

These functions, while not emitted into the binary, can cause problems
with the C++ ODR if they are included in multiple clang modules. This
unfortunately does happen if the user includes both this library and,
for example, modularised headers that include OpenSSL headers.

Fortunately, we can namespace the inline functions as well.

Modifications:

- Namespaced all the inline headers by source analysis.

Result:

Fewer code conflicts.
2019-03-11 11:49:14 +00:00
Cory Benfield 4afbbe4539 Namespace BoringSSL header files. (#77)
Motivation:

Due to the way SwiftPM builds projects it's possible for our
BoringSSL header files to clash with other people's OpenSSL header
files. That leads to build errors and sadness.

Modifications:

- Updated the BoringSSL vendor script to move all header files.
- Updated script to point C files at new header files.
- Brought in new BoringSSL version.

After your change, what will change:

Happier users
2019-03-06 16:21:01 +00:00
Cory Benfield f63c57657a Locate default ca-certificates on Linux. (#71)
Motivation:

When we moved away from the system copy of OpenSSL, we lost the
compiled-in locations of the default root CAs. We should go looking for
them so that certificate verification still works!

Modifications:

- Added a runtime one-off search to locate the roots.

Result:

Certificate verification works on Linux
2019-02-28 10:48:11 +00:00
Cory Benfield 141ff46685 Use BoringSSL for TLS. (#59)
Motivation:

Requiring the system's SSL library was a constant source of problems. 

Modifications:

This is the patch that transitions swift-nio-ssl to use BoringSSL, as discussed in [the Swift forums](https://forums.swift.org/t/rfc-moving-swiftnio-ssl-to-boringssl/18280).

Result:

Easier SSL support
2019-02-25 16:52:26 +00:00
tomer doron c3902674f0 update linux test extensions (#8)
Motivation:

up to date test extentions with appropriate legal header

Modifications:

regenerate linux test extensions with updated generator

Result:

linux test extensions have correct legal header
2018-02-26 18:32:06 -08:00
tomer doron e3a026f1a0 scripts cleanup (#1)
motivation: nicer source tree

changes:
* move scripts to scripts directory
* add .sh extension to bash scripts
2018-02-21 19:54:09 +00:00