diff options
author | Michael Steinert <mike.steinert@gmail.com> | 2012-05-28 13:16:58 -0600 |
---|---|---|
committer | Michael Steinert <mike.steinert@gmail.com> | 2012-05-28 13:16:58 -0600 |
commit | dd20ffb3e3be6253e9c6ff6887f01d7e8de8522a (patch) | |
tree | b1053d0ecea6fdb2d91a30efa4c9107b878905f3 | |
parent | fb55e43d8dad1b1f38691f790b742bd351fded95 (diff) | |
download | rabbitmq-c-github-ask-dd20ffb3e3be6253e9c6ff6887f01d7e8de8522a.tar.gz |
Clean up documentation in <amqp-ssl.h>
Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
-rw-r--r-- | librabbitmq/amqp-ssl.h | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/librabbitmq/amqp-ssl.h b/librabbitmq/amqp-ssl.h index 93a2b7a..17cbcc1 100644 --- a/librabbitmq/amqp-ssl.h +++ b/librabbitmq/amqp-ssl.h @@ -20,25 +20,33 @@ * DEALINGS IN THE SOFTWARE. */ +/** + * \file + * Open an SSL/TLS connection + */ + #ifndef AMQP_SSL_H #define AMQP_SSL_H #include <amqp.h> /** - * \brief Open an SSL connection to an AMQP broker. + * Open an SSL connection to an AMQP broker. + * + * This function will setup an AMQP connection state object for SSL/TLS + * communication. The caller of this function should not use the returned + * file descriptor as input to amqp_set_sockfd() or amqp_set_sockfd_full(), + * or directly for network I/O. * - * If successful this function will setup the AMQP connection state object - * for SSL/TLS communication. The caller of this function should not call - * amqp_set_sockfd() or amqp_set_sockfd_full() after calling this function, - * nor should the returned file descriptor be used directly for network I/O. + * If a client key or certificate file is provide then they should both be + * provided. * - * \param state [in/out] An AMQP connection state object. - * \param host [in] The name of the host to connect to. - * \param port [in] The port to connect on. - * \param caert [in] Path the CA cert file in PEM format. - * \param key [in] Path to the client key in PEM format. (may be NULL) - * \param cert [in] Path to the client cert in PEM format. (may be NULL) + * \param [in,out] state An AMQP connection state object. + * \param [in] host The name of the host to connect to. + * \param [in] port The port to connect on. + * \param [in] caert Path the CA cert file in PEM format. + * \param [in] key Path to the client key in PEM format. (may be NULL) + * \param [in] cert Path to the client cert in PEM format. (may be NULL) * * \return A socket file-descriptor (-1 if an error occurred). */ |