diff options
Diffstat (limited to 'librabbitmq/amqp-ssl-socket.h')
-rw-r--r-- | librabbitmq/amqp-ssl-socket.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/librabbitmq/amqp-ssl-socket.h b/librabbitmq/amqp-ssl-socket.h index b6396ed..87bce35 100644 --- a/librabbitmq/amqp-ssl-socket.h +++ b/librabbitmq/amqp-ssl-socket.h @@ -58,6 +58,7 @@ amqp_ssl_socket_set_cacert(amqp_socket_t *self, * Set the client key. * * \param [in,out] self An SSL/TLS socket object. + * \param [in] cert Path to the client certificate in PEM foramt. * \param [in] key Path to the client key in PEM format. * * \return Zero if successful, -1 otherwise. @@ -66,12 +67,14 @@ AMQP_PUBLIC_FUNCTION int AMQP_CALL amqp_ssl_socket_set_key(amqp_socket_t *self, + const char *cert, const char *key); /** * Set the client key from a buffer. * * \param [in,out] self An SSL/TLS socket object. + * \param [in] cert Path to the client certificate in PEM foramt. * \param [in] key A buffer containing client key in PEM format. * \param [in] n The length of the buffer. * @@ -81,24 +84,11 @@ AMQP_PUBLIC_FUNCTION int AMQP_CALL amqp_ssl_socket_set_key_buffer(amqp_socket_t *self, + const char *cert, const void *key, size_t n); /** - * Set the client certificate. - * - * \param [in,out] self An SSL/TLS socket object. - * \param [in] cert Path to the client certificate in PEM foramt. - * - * \return Zero if successful, -1 otherwise. - */ -AMQP_PUBLIC_FUNCTION -int -AMQP_CALL -amqp_ssl_socket_set_cert(amqp_socket_t *self, - const char *cert); - -/** * Enable or disable peer verification. * * If peer verification is enabled then the common name in the server |