3 Commits
Author SHA1 Message Date
Cory Benfield c5e345b62e Add support for PKCS#12 bundles. (#23)
Motivation:

As requested in #17, it's not uncommon to want to support PKCS#12 bundles.
This patch adds support for unpacking PKCS#12 bundles into useful data types
for NIOOpenSSL.

Modifications:

Added new OpenSSLPKCS12Bundle type.
Added new fromUnsafePointer(takingOwnership:) static functions to
    OpenSSLCertificate and OpenSSLPrivateKey.
Deprecated fromUnsafePointer(pointer:) on OpenSSLCertificate and
    OpenSSLPrivateKey.

Result:

PKCS#12 bundles can be used to distribute certs/keys for SwiftNIO.
2018-07-12 11:48:28 +01:00
Joe Smith 38955a5f80 Include md5 openssl Header (#13)
Motivation:

I'm switching [an AWS SDK](https://github.com/noppoMan/aws-sdk-swift) to use NIO under the hood, and there are some MD5 sum operations we need to complete related to requests + file operations.

Including [the `md5.h` header ](https://github.com/libressl/libressl/blob/master/src/crypto/md5/md5.h) will make it much easier to utilize and prevent requiring an additional package to get  at the functions already present here.

Modifications:

Included the `md5.h` header in `CNIOOpenSSL

Result:

This will allow md5 related functions to be used by packages including `CNIOOpenSSL`.
2018-04-30 11:25:11 +01:00
Johannes Weiß a6936a36f1 move OpenSSL support from NIO main repo 2018-01-25 18:35:14 +00:00