David Howells | 26d1164 | 2014-07-01 16:02:51 +0100 | [diff] [blame] | 1 | /* Signed PE file verification |
| 2 | * |
| 3 | * Copyright (C) 2014 Red Hat, Inc. All Rights Reserved. |
| 4 | * Written by David Howells (dhowells@redhat.com) |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public Licence |
| 8 | * as published by the Free Software Foundation; either version |
| 9 | * 2 of the Licence, or (at your option) any later version. |
| 10 | */ |
| 11 | |
| 12 | #ifndef _LINUX_VERIFY_PEFILE_H |
| 13 | #define _LINUX_VERIFY_PEFILE_H |
| 14 | |
David Howells | 99db443 | 2015-08-05 15:22:27 +0100 | [diff] [blame] | 15 | #include <crypto/public_key.h> |
| 16 | |
David Howells | 26d1164 | 2014-07-01 16:02:51 +0100 | [diff] [blame] | 17 | extern int verify_pefile_signature(const void *pebuf, unsigned pelen, |
David Howells | 99db443 | 2015-08-05 15:22:27 +0100 | [diff] [blame] | 18 | struct key *trusted_keyring, |
| 19 | enum key_being_used_for usage, |
| 20 | bool *_trusted); |
David Howells | 26d1164 | 2014-07-01 16:02:51 +0100 | [diff] [blame] | 21 | |
| 22 | #endif /* _LINUX_VERIFY_PEFILE_H */ |