rabbitmq-c  0.5.3
C AMQP Client library for RabbitMQ
amqp_ssl_socket.h
Go to the documentation of this file.
00001 /* vim:set ft=c ts=2 sw=2 sts=2 et cindent: */
00003 /*
00004  * Portions created by Alan Antonuk are Copyright (c) 2013-2014 Alan Antonuk.
00005  * All Rights Reserved.
00006  *
00007  * Portions created by Michael Steinert are Copyright (c) 2012-2013 Michael
00008  * Steinert. All Rights Reserved.
00009  *
00010  * Permission is hereby granted, free of charge, to any person obtaining a
00011  * copy of this software and associated documentation files (the "Software"),
00012  * to deal in the Software without restriction, including without limitation
00013  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
00014  * and/or sell copies of the Software, and to permit persons to whom the
00015  * Software is furnished to do so, subject to the following conditions:
00016  *
00017  * The above copyright notice and this permission notice shall be included in
00018  * all copies or substantial portions of the Software.
00019  *
00020  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00021  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00022  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
00023  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00024  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00025  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00026  * DEALINGS IN THE SOFTWARE.
00027  */
00028 
00029 #ifndef AMQP_SSL_H
00030 #define AMQP_SSL_H
00031 
00032 #include <amqp.h>
00033 
00034 AMQP_BEGIN_DECLS
00035 
00057 AMQP_PUBLIC_FUNCTION
00058 amqp_socket_t *
00059 AMQP_CALL
00060 amqp_ssl_socket_new(amqp_connection_state_t state);
00061 
00073 AMQP_PUBLIC_FUNCTION
00074 int
00075 AMQP_CALL
00076 amqp_ssl_socket_set_cacert(amqp_socket_t *self,
00077                            const char *cacert);
00078 
00091 AMQP_PUBLIC_FUNCTION
00092 int
00093 AMQP_CALL
00094 amqp_ssl_socket_set_key(amqp_socket_t *self,
00095                         const char *cert,
00096                         const char *key);
00097 
00111 AMQP_PUBLIC_FUNCTION
00112 int
00113 AMQP_CALL
00114 amqp_ssl_socket_set_key_buffer(amqp_socket_t *self,
00115                                const char *cert,
00116                                const void *key,
00117                                size_t n);
00118 
00131 AMQP_PUBLIC_FUNCTION
00132 void
00133 AMQP_CALL
00134 amqp_ssl_socket_set_verify(amqp_socket_t *self,
00135                            amqp_boolean_t verify);
00136 
00161 AMQP_PUBLIC_FUNCTION
00162 void
00163 AMQP_CALL
00164 amqp_set_initialize_ssl_library(amqp_boolean_t do_initialize);
00165 
00166 AMQP_END_DECLS
00167 
00168 #endif /* AMQP_SSL_H */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines