Commit Graph
3 Commits
Author SHA1 Message Date
George Barnett 7eb0321337 Add loading of multiple certificates from a single PEM file/buffer (#123)
Motivation:

It is only possible to load multiple certificates from a PEM file,
sometimes it is useful to load multiple certificates from a buffer.

Modifications:

- Deprecate the `.file` source of loading a certificate, since it would
  only load the first certificate in a file.
- Provide methods for loading multiple certificates from a PEM file or
  buffer.

Result:

Multiple certificates can be loaded from a PEM file/buffer.
2019-08-09 16:52:02 +01:00
Cory Benfield 06eea9ac37 Support renegotiation-based client auth. (#111)
Motivation:

While TLS renegotiation is in general a bad idea, it is widely used for
delayed TLS-based client authentication. We are able to support this
use-case, and so we should enable it.

As with BoringSSL, we'd like to continue to default to not supporting
this mode of operation. However, users are free to enable support if
they so choose.

Modifications:

- Added flags for configuring renegotiation.
- Added integration test harness.
- Added renegotiation integration test with s_server.
- Added renegotiation and client cert support to sample client.

Result:

Users will be able to perform TLS renegotiation.
2019-06-26 21:08:31 +01:00
Johannes Weiss f9ac0c3486 prevent duplicate targets: rename NIOHTTP1Client to NIOSSLHTTP1Client (#99)
Motivation:

With package editing this problem surfaces:

```
$ jw-swift-5.0 swift test
error: multiple products named 'NIOHTTP1Client' in: swift-nio, swift-nio-ssl
error: multiple targets named 'NIOHTTP1Client' in: swift-nio, swift-nio-ssl
```

which is bad. Fortunately, these are executable targets that we can
rename.

Modification:

rename `NIOHTTP1Client` in swift-nio-ssl to `NIOSSLHTTP1Client`

Result:

usable with package editing.
2019-04-11 18:32:59 +01:00