Merge branch 'next/arm64' into next/dt
[deliverable/linux.git] / include / keys / system_keyring.h
CommitLineData
b56e5a17
DH
1/* System keyring containing trusted public keys.
2 *
3 * Copyright (C) 2013 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 _KEYS_SYSTEM_KEYRING_H
13#define _KEYS_SYSTEM_KEYRING_H
14
15#ifdef CONFIG_SYSTEM_TRUSTED_KEYRING
16
17#include <linux/key.h>
99db4435 18#include <crypto/public_key.h>
b56e5a17
DH
19
20extern struct key *system_trusted_keyring;
3be4beaf
MZ
21static inline struct key *get_system_trusted_keyring(void)
22{
23 return system_trusted_keyring;
24}
25#else
26static inline struct key *get_system_trusted_keyring(void)
27{
28 return NULL;
29}
b56e5a17
DH
30#endif
31
091f6e26
DH
32#ifdef CONFIG_SYSTEM_DATA_VERIFICATION
33extern int system_verify_data(const void *data, unsigned long len,
99db4435
DH
34 const void *raw_pkcs7, size_t pkcs7_len,
35 enum key_being_used_for usage);
091f6e26
DH
36#endif
37
b56e5a17 38#endif /* _KEYS_SYSTEM_KEYRING_H */
This page took 0.077035 seconds and 5 git commands to generate.