Discussion:
[erlang-patches] SSL verify_fun documentation is incorrect
unknown
2014-02-21 16:43:42 UTC
Permalink
In http://www.erlang.org/doc/man/ssl.html, the spec for Event is
missing the valid and valid_peer options. These are documented (sorta)
further down in the page, but the spec is missing them.

I _believe_ that this is the correct patch:

diff --git a/lib/ssl/doc/src/ssl.xml b/lib/ssl/doc/src/ssl.xml
index 80ef419..4513ecd 100644
--- a/lib/ssl/doc/src/ssl.xml
+++ b/lib/ssl/doc/src/ssl.xml
@@ -233,7 +233,7 @@

<code>
fun(OtpCert :: #'OTPCertificate'{}, Event :: {bad_cert, Reason :: atom()} |
- {extension, #'Extension'{}}, InitialUserState :: term()) ->
+ {extension, #'Extension'{}} | valid | valid_peer,
InitialUserState :: term()) ->
{valid, UserState :: term()} | {valid_peer, UserState :: term()} |
{fail, Reason :: term()} | {unknown, UserState :: term()}.
</code>

Regards,
Roger.
unknown
2014-02-24 06:51:21 UTC
Permalink
Hi!

Thank you for the patch.
Im not sure I can squeeze this into 17.0-rc2, if not it will have to
wait until 17.0 is released in March
Post by unknown
In http://www.erlang.org/doc/man/ssl.html, the spec for Event is
missing the valid and valid_peer options. These are documented (sorta)
further down in the page, but the spec is missing them.
diff --git a/lib/ssl/doc/src/ssl.xml b/lib/ssl/doc/src/ssl.xml
index 80ef419..4513ecd 100644
--- a/lib/ssl/doc/src/ssl.xml
+++ b/lib/ssl/doc/src/ssl.xml
@@ -233,7 +233,7 @@
<code>
fun(OtpCert :: #'OTPCertificate'{}, Event :: {bad_cert, Reason :: atom()} |
- {extension, #'Extension'{}}, InitialUserState :: term()) ->
+ {extension, #'Extension'{}} | valid | valid_peer,
InitialUserState :: term()) ->
{valid, UserState :: term()} | {valid_peer, UserState :: term()} |
{fail, Reason :: term()} | {unknown, UserState :: term()}.
</code>
Regards,
Roger.
_______________________________________________
erlang-patches mailing list
erlang-patches
http://erlang.org/mailman/listinfo/erlang-patches
--
/Henrik Nord Erlang/OTP
Loading...