Update the list size after deleting a hash

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
Clean the request when all keys are removed

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
Correct the GUID for db in test_key()

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
Be more verbose while skipping a key

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
Show more details when skipping a key

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
Check whether the system supports Secure Boot or not

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
Merge branch 'mokx-import'

Conflicts:
	src/mokutil.c
Merge MokX for print_skip_message()

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
Check corrupted key list

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
Don't import an invalid x509 cert

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
Fix error handling of reading password hash file

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
Get somewhat more specific about our compile warnings and errors.

This found several bugs for me, so we should probably keep doing it.

Signed-off-by: Peter Jones <pjones@redhat.com>

Conflicts:
	configure.ac
Make mokutil use libefivar.

There's really no need to have a second (old) variable library embedded here.

Note that this requires efivar-0.12 .

Signed-off-by: Peter Jones <pjones@redhat.com>
strlen() is unsigned, so most things we compare loop indices to are.

So use unsigned types for those things.

Signed-off-by: Peter Jones <pjones@redhat.com>
Actually limit our text conversion to pw_len (implicitly +1 for L'\0')

Signed-off-by: Peter Jones <pjones@redhat.com>