X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=lib%2Fsecurity%2Fgpg.h;h=6efc3d27f96e84b409448ab8ae73f3e366b46587;hp=fb418bb23957c5128b82c68d5f95c1197225714e;hb=ff7293bba1fd4cdf54bb90bd1b7a38dd393fee69;hpb=86c9d34380b0074dab1ba89a569a94280d6999c4 diff --git a/lib/security/gpg.h b/lib/security/gpg.h index fb418bb..6efc3d2 100644 --- a/lib/security/gpg.h +++ b/lib/security/gpg.h @@ -23,6 +23,7 @@ enum { PB_LOCKDOWN_NONE = 0, PB_LOCKDOWN_SIGN = 1, + PB_LOCKDOWN_DECRYPT = 2, }; #if defined(HAVE_LIBGPGME) @@ -37,6 +38,9 @@ int verify_file_signature(const char *plaintext_filename, const char *signature_filename, FILE *authorized_signatures_handle, const char *keyring_path); +int decrypt_file(const char * filename, + FILE * authorized_signatures_handle, const char * keyring_path); + int gpg_validate_boot_files(struct boot_task *boot_task); void gpg_validate_boot_files_cleanup(struct boot_task *boot_task); @@ -59,6 +63,13 @@ int verify_file_signature(const char *plaintext_filename __attribute__((unused)) return -1; } +int decrypt_file(const char * filename __attribute__((unused)), + FILE * authorized_signatures_handle __attribute__((unused)), + const char * keyring_path __attribute__((unused))) +{ + return -1; +} + int gpg_validate_boot_files(struct boot_task *boot_task __attribute__((unused))) { return 0;