<div>Here it is:</div><div><br></div><div>Repo: <a href="https://github.com/cgsmcmlxxv/yxa.git">https://github.com/cgsmcmlxxv/yxa.git</a></div><div>Branch: otp-r15a</div><div><br></div>(git fetch <a href="https://github.com/cgsmcmlxxv/yxa.git">https://github.com/cgsmcmlxxv/yxa.git</a> otp-r15a)<div>
<br></div><div>CGS</div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Fri, Aug 31, 2012 at 6:21 PM, CGS <span dir="ltr"><<a href="mailto:cgsmcmlxxv@gmail.com" target="_blank">cgsmcmlxxv@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">As far as I could discover, ssl:peercert/1 is supported since 2009, so, definitely, it should work with R14B04 or even with R14B03. See the old documentation at<div>
<br></div><div><a href="http://demo.erlang.org/documentation/doc-5.7.4/lib/ssl-3.10.7/doc/html/new_ssl.html#peercert-1" target="_blank">http://demo.erlang.org/documentation/doc-5.7.4/lib/ssl-3.10.7/doc/html/new_ssl.html#peercert-1</a></div>
<div><br></div><div>which is from 2009. Presently, ssl:peercert/2 is no longer supported because they left only the [plain] option (during the transition there were two options [otp] and [plain], but only [plain] was supported):</div>
<div><br></div><div><a href="http://www.erlang.org/doc/man/ssl.html#peercert-1" target="_blank">http://www.erlang.org/doc/man/ssl.html#peercert-1</a></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>CGS</div>
</font></span><div class="HOEnZb"><div class="h5"><div><br></div><div><br></div><div><br><br><div class="gmail_quote">
On Fri, Aug 31, 2012 at 5:48 PM, CGS <span dir="ltr"><<a href="mailto:cgsmcmlxxv@gmail.com" target="_blank">cgsmcmlxxv@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am not sure, but I suppose in R14B04 is already set as a warning (I will check). Nevertheless, there is a repo for R15B01 already compiled:<div><br></div><div><a href="https://www.erlang-solutions.com/downloads/download-erlang-otp" target="_blank">https://www.erlang-solutions.com/downloads/download-erlang-otp</a></div>
<div><br></div><div>I make my installations by myself, but I heard that those packages are fully compiled (with Java and wx required). I have Ubuntu 12.04 here.</div><span><font color="#888888"><div><br></div>
<div>CGS</div></font></span><div><div><div><br></div><div><br></div>
<div><br><br><div class="gmail_quote">On Fri, Aug 31, 2012 at 5:35 PM, Mikael Magnusson <span dir="ltr"><<a href="mailto:mikma264@gmail.com" target="_blank">mikma264@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div>
<div>On 08/31/2012 05:26 PM, CGS wrote:<br>
</div>
<blockquote type="cite">BINGO! :D
<div><br>
</div>
<div>I changed ssl_util.erl to use ssl:peercert/1 and {ok,
TestCert1} with TestCert1 and all the tests are passed now. I
attached here the archive with the changes for Erlang/OTP
R15B01. If you prefer it, I can make a git repo for it.</div>
<div><br>
</div>
<div>CGS</div>
<div><br>
</div>
</blockquote>
<br></div>
I prefer a git repo, refer to
<a href="https://github.com/fredrikt/yxa/wiki/Submitting-patches" target="_blank">https://github.com/fredrikt/yxa/wiki/Submitting-patches</a>.<br>
<br>
In which version was ssl:peercert/1 introduced in Erlang? I think
many users prefer if Yxa can be built with the Erlang versions
included in common Linux dists without requiring building Erlang
from source. For example Ubuntu 12.04 has erlang r14b4.<span><font color="#888888"><br>
<br>
/Mikael</font></span><div><br>
<br>
<blockquote type="cite">
<div><br>
<br>
<div class="gmail_quote">On Fri, Aug 31, 2012 at 4:58 PM, Mikael
Magnusson <span dir="ltr"><<a href="mailto:mikma264@gmail.com" target="_blank">mikma264@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On 08/31/2012 04:10 PM, CGS wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
OK! I managed to compile it with only one warning
(error/2 is not used; I set eldap:parse_error/2 which
does the same). I started the tests, but I got the
following error:<br>
<br>
ssl_util: failed (test "SSL
certificates - 0", line 419) - Error:<br>
{'EXIT',<br>
{{badmatch,<br>
{'Certificate',<br>
</blockquote>
</div>
...
<div><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[{ssl_util,test,0,[{file,"ssl_util.erl"},{line,519}]},<br>
{autotest,test_module2,2,[{file,"autotest.erl"},{line,300}]}]}}<br>
<br>
Any idea? Do I need to set a certificate manually?<br>
<br>
CGS<br>
<br>
</blockquote>
</div>
Looks like there is a problem with decoding certificates. I
guess they have changed the return value from some function.<span><font color="#888888"><br>
<br>
/Mikael<br>
<br>
</font></span></blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>