summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDiego Fernandez <aiguo.fernandez@gmail.com>2017-10-11 23:51:52 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2017-10-12 13:51:52 +0800
commitfe0120f9fbf08ca937cc95cf409c0d888145fafa (patch)
treecaf9d47f4a5eca17da5b1322ac5661c046a90fb5 /doc
parent1eac0e8f9b3829c5401151fabb3f78453ad772a4 (diff)
downloadpyopenssl-fe0120f9fbf08ca937cc95cf409c0d888145fafa.tar.gz
Improve documentation for passphrase callback (#703)
Address issue #701
Diffstat (limited to 'doc')
-rw-r--r--doc/api/ssl.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/api/ssl.rst b/doc/api/ssl.rst
index 6e856ce..d892dbb 100644
--- a/doc/api/ssl.rst
+++ b/doc/api/ssl.rst
@@ -369,8 +369,9 @@ Context objects have the following methods:
this, it will be truncated. Second, a boolean value which will be true if
the user should be prompted for the passphrase twice and the callback should
verify that the two values supplied are equal. Third, the value given as the
- *userdata* parameter to :py:meth:`set_passwd_cb`. If an error occurs,
- *callback* should return a false value (e.g. an empty string).
+ *userdata* parameter to :py:meth:`set_passwd_cb`. The *callback* must return
+ a byte string. If an error occurs, *callback* should return a false value
+ (e.g. an empty string).
.. py:method:: Context.set_session_cache_mode(mode)