<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 08/31/2012 05:26 PM, CGS wrote:<br>
</div>
<blockquote
cite="mid:CAKrexVKVatnOAQ8DS95o==+4RtTs3rY+CPjLm6WJjhPEPEgBLA@mail.gmail.com"
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>
I prefer a git repo, refer to
<a class="moz-txt-link-freetext" href="https://github.com/fredrikt/yxa/wiki/Submitting-patches">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.<br>
<br>
/Mikael<br>
<br>
<blockquote
cite="mid:CAKrexVKVatnOAQ8DS95o==+4RtTs3rY+CPjLm6WJjhPEPEgBLA@mail.gmail.com"
type="cite">
<div><br>
<br>
<div class="gmail_quote">On Fri, Aug 31, 2012 at 4:58 PM, Mikael
Magnusson <span dir="ltr"><<a moz-do-not-send="true"
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 class="im">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 class="im"><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
class="HOEnZb"><font color="#888888"><br>
<br>
/Mikael<br>
<br>
</font></span></blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>