<p dir="ltr">Good catch. That approach won't be very robust when saving images.</p>
<p dir="ltr">Luís </p>
<br><div class="gmail_quote"><div dir="ltr">On Mon, May 29, 2017, 04:12 Anton Vodonosov <<a href="mailto:avodonosov@yandex.ru">avodonosov@yandex.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
It does on SBCL. Is it correct theoretically to call DEFCFUN from inside of IF?<br>
<br>
Also, when somebody saves lisp image and the image opened next time,<br>
possibly different version of OpenSSL is loaded. The defcfun done<br>
before saving the image, will it conflict with the new library?<br>
<br>
29.05.2017, 06:02, "Luís Oliveira" <<a href="mailto:luismbo@gmail.com" target="_blank">luismbo@gmail.com</a>>:<br>
> That solution looks interesting. Does it work?<br>
><br>
> On Mon, May 29, 2017, 03:48 Anton Vodonosov <<a href="mailto:avodonosov@yandex.ru" target="_blank">avodonosov@yandex.ru</a>> wrote:<br>
><br>
>> 29.05.2017, 05:42, "Luís Oliveira" <<a href="mailto:luismbo@gmail.com" target="_blank">luismbo@gmail.com</a>>:<br>
>>> foreign-symbol-pointer should work on Corman, yes.<br>
>><br>
>> If so, maybe this is the best solution?<br>
>><br>
>>     (if (cffi:foreign-symbol-pointer "OpenSSL_version_num")<br>
>>         (cffi:defcfun ("OpenSSL_version_num" ssleay) :long)<br>
>>         (cffi:defcfun ("SSLeay" ssleay) :long))<br>
>><br>
</blockquote></div>