mirror of
https://github.com/xcat2/xNBA.git
synced 2025-02-12 16:48:11 +00:00
[image] Log results of image signature checks
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
5a91f5646a
commit
2d11a46b71
@ -21,6 +21,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
#include <syslog.h>
|
||||
#include <ipxe/uaccess.h>
|
||||
#include <ipxe/image.h>
|
||||
#include <ipxe/cms.h>
|
||||
@ -72,10 +73,18 @@ int imgverify ( struct image *image, struct image *signature,
|
||||
|
||||
/* Mark image as trusted */
|
||||
image_trust ( image );
|
||||
syslog ( LOG_NOTICE, "Image \"%s\" signature OK\n", image->name );
|
||||
|
||||
/* Free internal copy of signature */
|
||||
free ( data );
|
||||
|
||||
return 0;
|
||||
|
||||
err_verify:
|
||||
err_parse:
|
||||
free ( data );
|
||||
err_alloc:
|
||||
syslog ( LOG_ERR, "Image \"%s\" signature bad: %s\n",
|
||||
image->name, strerror ( rc ) );
|
||||
return rc;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user