• Aleksey's avatar
    [IOT-2726] /cred fix for CT1.7.8.11 · 366409bf
    Aleksey authored
    This patch fixes `4.00 Bad Request` error on
    /oic/sec/cred CON UPDATE request in CT1.7.8.11
    
    This adds an additional check of the incoming credential
    subjectid for OwnerPSK generation. Before, credresource
    tried to generate owner psk for any subjectid in case if
    doxm->owner value already saved, but doxm->owned flag
    not yet set in true.
    This led to an error at the POST handler return.
    
    Change-Id: If2b683ee417bb058f954734ff0c1b64e145c9a6b
    Signed-off-by: Aleksey's avatarAleksey Volkov <a.volkov@samsung.com>
    366409bf
credresource.c 131 KB