[erlang-questions] Calling openssl from erlang
Thu Feb 19 16:46:12 CET 2015
This is what application crypto does; acts as a interface toward
libcrypto in OpenSSL.
I can't see that crypto calls PKCS7_encrypt however.
To return pointers from NIF to erlang you probably want to use the
resource concept in the NIF interface.
On 02/19/2015 03:50 PM, Lamchith M C wrote:
> I was trying to use openssl functions from erlang, like
> PKCS7_encrypt(STACK_OF(X509) *certs, BIO *in, const EVP_CIPHER *cipher, int
> I thought of using a NIF (Native Implemented Function) to call a this
> openssl c function from erlang. The samples given at site have return types
> like int , which is available in both c and erlang. How openssl type PKCS7*
> can be mapped to an erlang type , which is the return type for openssl
> function PKCS7_encrypt,so that , I can call openssl functions like
> this from erlang program. Is there any sample program I can look into*.*
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions