develooper Front page | perl.perl6.compiler | Postings from March 2019

[perl #132668] [NATIVECALL][SEGV][SEVERE] OpenSSLPEM_write_bio_RSAPrivateKey

Thread Next
From:
Salvador Ortiz via RT
Date:
March 7, 2019 10:48
Subject:
[perl #132668] [NATIVECALL][SEGV][SEVERE] OpenSSLPEM_write_bio_RSAPrivateKey
Message ID:
rt-4.0.24-19911-1551813402-1374.132668-80-0@perl.org
The 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,
                                               unsigned char *kstr, int klen,
                                               pem_password_cb *cb, void *u);

So when called it received random values.

My modernized example attached that succeds.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About