summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMichael Steinert <mike.steinert@gmail.com>2012-05-10 13:28:17 -0600
committerAlan Antonuk <alan.antonuk@gmail.com>2013-04-09 15:18:39 -0700
commit795c1240c9fb09c42bcdc45d5a8d44e6a406ee9c (patch)
treece8b060d7ee08435a6c7b668f56ccf5b7b460b69 /tools
parent21b124e2fd2f1c343fb37b708f393d1b9580cfad (diff)
downloadrabbitmq-c-795c1240c9fb09c42bcdc45d5a8d44e6a406ee9c.tar.gz
Add plumbing for SSL/TLS support
This change abstracts out the networking functions so that the user can provide an SSL/TLS implementation. Callback functions replace `writev()`, `send()`, and `recv()` (there is also a callback for error reporting). The default interface remains unchanged. If the user wants to create a SSL/TLS connection they first negotiate the connection and then use the new function `amqp_set_sockfd_full()` to provide the networking implementation for their SSL/TLS library. The user may provide an optional pointer to data that is passed through to the networking functions. Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/common.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/common.c b/tools/common.c
index 7659521..46e0a26 100644
--- a/tools/common.c
+++ b/tools/common.c
@@ -39,7 +39,6 @@
#endif
/* needed for asnprintf */
-#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>