diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-03-28 18:05:50 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-28 18:05:50 -0400 |
commit | b0d44c0dbbd52effb731b1c0af9afd56215c48de (patch) | |
tree | 3237c0087d91a5390aed05689b9f610ba16fa116 /include/scsi/osd_sec.h | |
parent | 9537a48ed4b9e4b738943d6da0a0fd4278adf905 (diff) | |
parent | 7c730ccdc1188b97f5c8cb690906242c7ed75c22 (diff) |
Merge branch 'linus' into core/iommu
Conflicts:
arch/x86/Kconfig
Diffstat (limited to 'include/scsi/osd_sec.h')
-rw-r--r-- | include/scsi/osd_sec.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/include/scsi/osd_sec.h b/include/scsi/osd_sec.h new file mode 100644 index 000000000000..4c09fee8ae1e --- /dev/null +++ b/include/scsi/osd_sec.h | |||
@@ -0,0 +1,45 @@ | |||
1 | /* | ||
2 | * osd_sec.h - OSD security manager API | ||
3 | * | ||
4 | * Copyright (C) 2008 Panasas Inc. All rights reserved. | ||
5 | * | ||
6 | * Authors: | ||
7 | * Boaz Harrosh <bharrosh@panasas.com> | ||
8 | * Benny Halevy <bhalevy@panasas.com> | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License version 2 | ||
12 | * | ||
13 | */ | ||
14 | #ifndef __OSD_SEC_H__ | ||
15 | #define __OSD_SEC_H__ | ||
16 | |||
17 | #include "osd_protocol.h" | ||
18 | #include "osd_types.h" | ||
19 | |||
20 | /* | ||
21 | * Contains types and constants of osd capabilities and security | ||
22 | * encoding/decoding. | ||
23 | * API is trying to keep security abstract so initiator of an object | ||
24 | * based pNFS client knows as little as possible about security and | ||
25 | * capabilities. It is the Server's osd-initiator place to know more. | ||
26 | * Also can be used by osd-target. | ||
27 | */ | ||
28 | void osd_sec_encode_caps(void *caps, ...);/* NI */ | ||
29 | void osd_sec_init_nosec_doall_caps(void *caps, | ||
30 | const struct osd_obj_id *obj, bool is_collection, const bool is_v1); | ||
31 | |||
32 | bool osd_is_sec_alldata(struct osd_security_parameters *sec_params); | ||
33 | |||
34 | /* Conditionally sign the CDB according to security setting in ocdb | ||
35 | * with cap_key */ | ||
36 | void osd_sec_sign_cdb(struct osd_cdb *ocdb, const u8 *cap_key); | ||
37 | |||
38 | /* Unconditionally sign the BIO data with cap_key. | ||
39 | * Check for osd_is_sec_alldata() was done prior to calling this. */ | ||
40 | void osd_sec_sign_data(void *data_integ, struct bio *bio, const u8 *cap_key); | ||
41 | |||
42 | /* Version independent copy of caps into the cdb */ | ||
43 | void osd_set_caps(struct osd_cdb *cdb, const void *caps); | ||
44 | |||
45 | #endif /* ndef __OSD_SEC_H__ */ | ||