The "id" is used in the askpw protocol to recognize password prompts, in
case a service is replying to them and needs some id. Previously we set
an incorrect id, the one of cryptsetup. Fix that.
(I guess the id is not used much, it comes from a time where we had no
credentials, and thus some people wanted to supply passphrases
programmatically rather interactively. The usecase is probably gone, but
we should still set some valid id I guess.)
if (!disk_path)
return log_oom();
- id = strjoin("cryptsetup:", disk_path);
+ id = strjoin("cryptenroll:", disk_path);
if (!id)
return log_oom();
if (!disk_path)
return log_oom();
- id = strjoin("cryptsetup:", disk_path);
+ id = strjoin("cryptenroll-new:", disk_path);
if (!id)
return log_oom();