<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">This is what application crypto does;
acts as a interface toward libcrypto in OpenSSL.<br>
I can't see that crypto calls PKCS7_encrypt
however.<br>
<br>
To return pointers from NIF to erlang you probably want to use the
resource concept in the NIF interface.<br>
<br>
/Sverker, Erlang/OTP<br>
<br>
<br>
On 02/19/2015 03:50 PM, Lamchith M C wrote:<br>
</div>
<blockquote
cite="mid:CAJwTqyANZz_uPQkoWVLr0fEh-cjyaOju0dfWrU1WPDe44uGncg@mail.gmail.com"
type="cite">
<pre wrap="">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*.*
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
</blockquote>
<br>
</body>
</html>