Super User's BSD Cross Reference: /OpenBSD/sys/lib/libsa/softraid.h

1 /* $OpenBSD: softraid.h,v 1.2 2018年08月10日 16:41:35 jsing Exp $ */
2
3 /*
4 * Copyright (c) 2012 Joel Sing <jsing@openbsd.org>
5 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 */
18
19#ifndef _SOFTRAID_H_
20#define _SOFTRAID_H_
21
22 /* Metadata from keydisks. */
23 struct sr_boot_keydisk {
24 struct sr_uuid kd_uuid;
25 u_int8_t kd_key[SR_CRYPTO_MAXKEYBYTES];
26 SLIST_ENTRY(sr_boot_keydisk) kd_link;
27};
28 SLIST_HEAD(sr_boot_keydisk_head, sr_boot_keydisk);
29
30 /* List of softraid volumes. */
31 extern struct sr_boot_volume_head sr_volumes;
32
33 /* List of softraid keydisks. */
34 extern struct sr_boot_keydisk_head sr_keydisks;
35
36 void sr_clear_keys(void);
37 int sr_crypto_unlock_volume(struct sr_boot_volume *);
38
39#endif /* _SOFTRAID_H */
40 

AltStyle によって変換されたページ (->オリジナル) /