Pony wrappers for OpenSSL and LibreSSL.
Production ready.
- Install corral
corral add github.com/ponylang/ssl.git --version 1.0.1corral fetchto fetch your dependenciesuse "ssl/crypto"to include thecryptosub-packageuse "ssl/net"to include thenetsub-packagecorral run -- ponycto compile your application
The 0.9.0, 1.1.x, and 3.0.x OpenSSL versions and corresponding compatible LibreSSL library versions are supported.
The default is to use the 0.9.x library APIs. You can change the selected supported library version at compile-time by using Pony's compile time definition functionality.
corral run -- ponyc -Dopenssl_0.9.0corral run -- ponyc -Dopenssl_1.1.xcorral run -- ponyc -Dopenssl_3.0.xssl requires either LibreSSL or OpenSSL in order to operate. You'll might need to install it within your environment of choice.
sudo apt-get install -y libssl-devapk add --update libressl-devpacman -S openssl
brew update
brew install libresslsudo port install libresslsudo dnf install openssl-develsudo yum install openssl-develsudo zypper install libopenssl-develIf you use Corral to include this package as dependency of a project, Corral will download and build LibreSSL for you the first time you run corral fetch. Otherwise, before using this package, you must run .\make.ps1 libs in its base directory to download and build LibreSSL for Windows. In both cases, you will need CMake (3.15 or higher) and 7Zip (7z.exe) in your PATH; and Visual Studio 2017 or later (or the Visual C++ Build Tools 2017 or later) installed in your system.
You should pass --define openssl_0.9.0 to Ponyc when using this package on Windows.