summaryrefslogtreecommitdiff
path: root/src/ne_session.h
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2006-12-28 23:41:31 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2006-12-28 23:41:31 +0000
commite71df5584ce5c20cfc9f4d88060f85b897777cf0 (patch)
tree6a1bd67dff3e7ce4aaa72fd32303d2a34628a41e /src/ne_session.h
parent2aceb867a24de6b7c038f698a7b0df620964b11b (diff)
downloadneon-e71df5584ce5c20cfc9f4d88060f85b897777cf0.tar.gz
* src/ne_session.h (ne_ssl_set_clicert, ne_ssl_trust_cert): Clarify
lack of lifetime requirement for passed-in objects. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1121 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'src/ne_session.h')
-rw-r--r--src/ne_session.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ne_session.h b/src/ne_session.h
index 93dcf85..038df8d 100644
--- a/src/ne_session.h
+++ b/src/ne_session.h
@@ -165,11 +165,13 @@ typedef int (*ne_ssl_verify_fn)(void *userdata, int failures,
void ne_ssl_set_verify(ne_session *sess, ne_ssl_verify_fn fn, void *userdata);
/* Use the given client certificate for the session. The client cert
- * MUST be in the decrypted state, otherwise behaviour is undefined. */
+ * MUST be in the decrypted state, otherwise behaviour is undefined.
+ * The 'clicert' object is duplicated internally so can be destroyed
+ * by the caller. */
void ne_ssl_set_clicert(ne_session *sess, const ne_ssl_client_cert *clicert);
-/* Indicate that the certificate 'cert' is trusted; 'cert' is
- * duplicated internally and may be destroyed at will. */
+/* Indicate that the certificate 'cert' is trusted; the 'cert' object
+ * is duplicated internally so can be destroyed by the caller. */
void ne_ssl_trust_cert(ne_session *sess, const ne_ssl_certificate *cert);
/* If the SSL library provided a default set of CA certificates, trust