Properly handle Cynara errors 76/129476/14
authorPiotr Sawicki <p.sawicki2@partner.samsung.com>
Tue, 16 May 2017 11:58:34 +0000 (13:58 +0200)
committerZofia Abramowska <z.abramowska@samsung.com>
Wed, 31 May 2017 11:23:24 +0000 (13:23 +0200)
commit06ebe9666bb72e4bf025193ab27eee8f14c3cc6d
treea9977cbad8d2e3d25f5a8980582af59bef5ab550
parent5247e8f8b01b99d73adcced80f96b6c3411eb7cb
Properly handle Cynara errors

Added handling of all possible errors that may be returned by Cynara's async
API. From now, an unused entry in responseQueue is erased when the processing
of a packet is done. Moreover, packets with incomplete credentials are not
handled by Cynara's backend, they are passed to backup backends for further
processing. Fix a bug in cynaraErrorCodeToString().

Change-Id: Ia93c6912a4222aa0787b3d5f68149a4bc2a7ebc8
include/nether_CynaraBackend.h
src/nether_CynaraBackend.cpp