New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenSSL PEM_write_bio_RSAPrivateKey #6655
Comments
From @LLFournI was trying to add RSA key generation using nativecall and OpenSSL but #nativessl.pl sub gen-lib { $*VM.platform-library-name('ssl'.IO).Str } sub RSA_new(-->OpaquePointer) is native(&gen-lib) {...} { bash-3.2$ while perl6 nativessl.pl; do echo "worked"; done |
From @salortizThe problem is the PEM_write_bio_RSAPrivateKey signature used in the NativeCall declaration, it missed five arguments. From the manual: int PEM_write_bio_RSAPrivateKey(BIO *bp, RSA *x, const EVP_CIPHER *enc, So when called it received random values. My modernized example attached that succeds. |
From @salortiz |
The RT System itself - Status changed from 'new' to 'open' |
From @AlexDanielOK, so that's not an issue in Rakudo then. Closed. On 2019-03-05 11:16:41, sortiz wrote:
|
@AlexDaniel - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#132668 (status was 'resolved')
Searchable as RT132668$
The text was updated successfully, but these errors were encountered: