Re: Follow Up Re: XML-RPC profile and TLS tuning
[email protected] (Jonas Borgström) 06 Oct 2002 17:22:56 +0200
| Newsgroups | gmane.network.beep.roadrunner.general |
|---|---|
| Message-ID | <[email protected]> |
"Scott D. Harrison" <[email protected]> writes: > Jonas, > > My example below assumes that I have setup the server side correctly and the > keys are available. My main question is, once the the channel has been tuned > for privacy using TLS, does the encryption persist once I start using > XML-RPC or will it reset to plaintext when I start the XML-RPC profile? > The TLS encryption is on the transport layer, so everything transmitted after a successful tuning reset will be encrypted. Also note that all open channels will be closed when you tune the connection for privacy. > Thanks > > Scott Harrison > > On Friday 04 October 2002 11:50 am, you wrote: > > Jonas, > > > > I have be working with the Road Runner XML-RPC profile on my project. Its > > working great for me. I have been able to build my application without > > worrying too much about the low level details. Before I get too far along, > > I would like to tune the channel for privacy using TLS and then start > > making my XML-RPC calls. Looking at rrtls-client.c is this all I need to > > do or am I missing something? > > > > rr_profile_registry_add_profile (profreg, RR_TYPE_TLS, NULL); > > rr_profile_registry_add_profile (profreg, RR_TYPE_XMLRPC, NULL); > > > > /* assuming the connection struct is initialized */ > > if (!rr_tls_privatize (connection, "foo.bar.biz", &error)) { > > g_error ("rr_tls_privatize failed: %s\n", error->message); > > } > > > > do_something_with_xml-rpc(); > > > > Also, is there an easy way to check and make sure the channel is > > encrypting? > > the rr_tls_get_subject_name function will return a non NULL value if the tuning was successful and the connection is encrypted. / Jonas PS I'm Cc:ing this to the list because others might be interested in this. DS -- Jonas Borgström [email protected] CodeFactory AB http://www.codefactory.se/ Office: +46 (0)90 71 86 14