Files
swift-nio-ssl/Sources/NIOSSL
David Nadoba 32101fe2f3 Flush only after handshake (#362)
* support additional certificate validation

* run `scripts/generate_linux_tests.rb`

* fix review comments

- rename `CertificateChainVerificationCallback` to `AdditionalCertificateChainVerificationCallback`
- switch over `result` instead of try/catch
- add `. eofDuringAdditionalCertficiateChainValidation` error and throw it if channel becomes inactive while in `.additionalVerification` state

* add `Channel` parameter to `AdditionalCertificateChainVerificationCallback`

* get `context` from self instead of captering it

* save progress

* Only flush after handshake

* run `./scripts/generate_linux_tests.rb`
`

* Add NIOSSLCertficiateExtensions

* adopt naming of ObjectIdentifier

* address review comments
- namespace top level types with `NIO`
- add `withUnsafeBytes(_:)` that gives access to the buffer through an untyped buffer pointer
- fix indentation

* use real optional for `reference` in `_NIOSSLCertificateExtensions`

* fix review comments part 2

- nest `_Extensions` and `_Extension` under `NIOSSLCertificate`
- explain optional reference
- remove empty and copy constructor
- replace fancy force-unwraps with `!`

* use channel from argument

* fix review comments

- buffer the flush instead of ignoring it
- do not automatically flush after a succesfull handshake
2022-05-05 09:51:41 +01:00
..