Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Add plumbing for SSL/TLS support #7

Closed
wants to merge 1 commit into from
Closed

Add plumbing for SSL/TLS support #7

wants to merge 1 commit into from

Conversation

msteinert
Copy link

This change abstracts out the networking functions so that the user can provide an SSL/TLS implementation. Below is an explanation of the changes included.

SSL/TLS plumbing

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.

I'm still running tests but I thought I would submit it early to get some feedback. The coding style seems a bit variable so I tried to follow the surrounding code in each file.

This change abstracts out the networking functions so that the
user can provide an SSL/TLS implementation.

Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
@msteinert
Copy link
Author

My ssl-devel branch implements SSL/TLS with CyaSSL, OpenSSL, PolarSSL & GnuTLS backends (NSS & MatrixSSL might also be interesting). The changes on that branch require this pull request (#7) as well as the changes in pull request #8.

@alanxz
Copy link
Collaborator

alanxz commented May 10, 2012

@msteinert could you submit your pull-request(s) to https://github.com/alanxz/rabbitmq-c. That is currently where the 'official' rabbitmq-c code is.

Also we had a somewhat crude start to this, that I haven't had a lot of time to massage into form yet, I'm excited to see what you've put together:
alanxz#14

@MattiL MattiL mentioned this pull request May 10, 2012
@alanxz
Copy link
Collaborator

alanxz commented May 10, 2012

In an effort to transition away from this repository, I'm closing this pull-request.

When you get a chance could you re-submit the pull request against alanxz/rabbitmq-c.

My apologies for the inconvenience.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants