mirror of https://github.com/ipxe/ipxe.git
[image] Log results of image signature checks
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/6/head
parent
5a91f5646a
commit
2d11a46b71
|
@ -21,6 +21,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include <syslog.h>
|
||||||
#include <ipxe/uaccess.h>
|
#include <ipxe/uaccess.h>
|
||||||
#include <ipxe/image.h>
|
#include <ipxe/image.h>
|
||||||
#include <ipxe/cms.h>
|
#include <ipxe/cms.h>
|
||||||
|
@ -72,10 +73,18 @@ int imgverify ( struct image *image, struct image *signature,
|
||||||
|
|
||||||
/* Mark image as trusted */
|
/* Mark image as trusted */
|
||||||
image_trust ( image );
|
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_verify:
|
||||||
err_parse:
|
err_parse:
|
||||||
free ( data );
|
free ( data );
|
||||||
err_alloc:
|
err_alloc:
|
||||||
|
syslog ( LOG_ERR, "Image \"%s\" signature bad: %s\n",
|
||||||
|
image->name, strerror ( rc ) );
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue