diff options
Diffstat (limited to 'src/libpiano/piano.c')
-rw-r--r-- | src/libpiano/piano.c | 4 |
1 files changed, 4 insertions, 0 deletions
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)) == |