HS 2.0 server: Do not perform subrem if not requested to

Instead of defaulting to machine remediation, reject a request to do
subscription remediation if that has not been configured to be required.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2018-10-08 13:15:59 +03:00 committed by Jouni Malinen
parent 7770a9dd6a
commit dd76afff65

View file

@ -947,8 +947,10 @@ static xml_node_t * hs20_subscription_remediation(struct hs20_svc *ctx,
redirect_uri); redirect_uri);
else if (type && strcmp(type, "policy") == 0) else if (type && strcmp(type, "policy") == 0)
ret = policy_remediation(ctx, user, realm, session_id, dmacc); ret = policy_remediation(ctx, user, realm, session_id, dmacc);
else else if (type && strcmp(type, "machine") == 0)
ret = machine_remediation(ctx, user, realm, session_id, dmacc); ret = machine_remediation(ctx, user, realm, session_id, dmacc);
else
ret = no_sub_rem(ctx, user, realm, session_id);
free(type); free(type);
return ret; return ret;