From fe9677b1c5b2e66dcc9b78ea57ea56614bae8992 Mon Sep 17 00:00:00 2001 From: Morten Krogh Date: Mon, 25 Sep 2017 11:57:18 +0200 Subject: [PATCH] Added documentation abut exceptions for open_ssl_verify_callback. --- docs/realm.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/realm.js b/docs/realm.js index 76792de9..e379d1c7 100644 --- a/docs/realm.js +++ b/docs/realm.js @@ -311,7 +311,9 @@ Realm.defaultPath; * The return value of open_ssl_verify_callback decides whether the certificate is accepted (true) * or rejected (false). The open_ssl_verify_callback function is only respected on platforms where * OpenSSL is used for the sync client, e.g. Linux. The open_ssl_verify_callback function is not - * allowed to throw exceptions. + * allowed to throw exceptions. If the operations needed to verify the certificate lead to an exception, + * the exception must be caught explicitly before returning. The return value would typically be false + * in case of an exception. * * When the sync client has received the server's certificate chain, it presents every certificate in * the chain to the open_ssl_verify_callback function. The depth argument specifies the position of the