sergot / openssl

OpenSSL bindings for Perl 6
MIT License
14 stars 31 forks source link

Fix passing TLS version 1.1/1.2 to OpenSSL.new() #21

Closed kalkin closed 8 years ago

kalkin commented 8 years ago

The subroutine signature Int :$version? does not allow for passing 1.1 or 1.2. Use a subset based on Numeric for the $version paramenter. This also reduces the code complexity and duplication.

kalkin commented 8 years ago

@ugexe Thanks for the hint. I renamed the subset to ProtocolVersion.

sergot commented 8 years ago

Thanks!