[erlang-questions] Calling openssl from erlang

Sverker Eriksson sverker.eriksson@REDACTED
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.

/Sverker, Erlang/OTP

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
> flags).
> 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
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150219/c50455b1/attachment.htm>

More information about the erlang-questions mailing list