From a28839739c62cd589b1c31e76696fd5831f84520 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 10 Jan 2012 22:49:12 +0100 Subject: getFragment does not support TLS any more MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit You can’t handle the load? Closes #202 --- src/libpiano/piano.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libpiano/piano.c') diff --git a/src/libpiano/piano.c b/src/libpiano/piano.c index 56f2bf7..d4d8156 100644 --- a/src/libpiano/piano.c +++ b/src/libpiano/piano.c @@ -236,6 +236,8 @@ PianoReturn_t PianoRequest (PianoHandle_t *ph, PianoRequest_t *req, assert (req != NULL); req->type = type; + /* no tls by default */ + req->secure = false; switch (req->type) { case PIANO_REQUEST_LOGIN: { @@ -257,6 +259,8 @@ PianoReturn_t PianoRequest (PianoHandle_t *ph, PianoRequest_t *req, case 1: { char *xmlencodedPassword = NULL; + req->secure = true; + /* username == email address does not contain &,<,>," */ if ((xmlencodedPassword = PianoXmlEncodeString (logindata->password)) == -- cgit v1.2.3