xref: /illumos-gate/usr/src/cmd/mdb/common/modules/crypto/crypto_cmds.h (revision 4f60987df4dcaa54a88b596f861fbf4f3382c65e)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 #ifndef	_CRYPTO_CMDS_H
27 #define	_CRYPTO_CMDS_H
28 
29 #ifdef	__cplusplus
30 extern "C" {
31 #endif
32 
33 extern int crypto_provider_ext_info(uintptr_t addr, uint_t flags, int argc, \
34 	const mdb_arg_t *argv);
35 extern int crypto_mech_info(uintptr_t addr, uint_t flags, int argc, \
36 	const mdb_arg_t *argv);
37 
38 extern int crypto_mechanism(uintptr_t addr, uint_t flags, int argc, \
39 	const mdb_arg_t *argv);
40 extern int crypto_data(uintptr_t addr, uint_t flags, int argc, \
41 	const mdb_arg_t *argv);
42 extern int crypto_dual_data(uintptr_t addr, uint_t flags, int argc, \
43 	const mdb_arg_t *argv);
44 extern int crypto_key(uintptr_t addr, uint_t flags, int argc, \
45 	const mdb_arg_t *argv);
46 
47 extern int kcf_provider_desc(uintptr_t addr, uint_t flags, int argc, \
48 	const mdb_arg_t *argv);
49 
50 extern int prov_tab(uintptr_t addr, uint_t flags, int argc, \
51 	const mdb_arg_t *argv);
52 
53 extern int policy_tab(uintptr_t addr, uint_t flags, int argc, \
54 	const mdb_arg_t *argv);
55 
56 extern int kcf_areq_node(uintptr_t addr, uint_t flags, int argc, \
57 	const mdb_arg_t *argv);
58 
59 extern int kcf_global_swq(uintptr_t addr, uint_t flags, int argc, \
60 	const mdb_arg_t *argv);
61 
62 extern int kcf_reqid_table_dcmd(uintptr_t addr, uint_t flags, int argc, \
63 	const mdb_arg_t *argv);
64 
65 extern int crypto_find_reqid(uintptr_t addr, uint_t flags, int argc, \
66 	const mdb_arg_t *argv);
67 
68 extern int areq_first_walk_init(mdb_walk_state_t *);
69 extern int an_idnext_walk_init(mdb_walk_state_t *);
70 extern int an_idprev_walk_init(mdb_walk_state_t *);
71 extern int an_ctxchain_walk_init(mdb_walk_state_t *);
72 extern int areq_last_walk_init(mdb_walk_state_t *);
73 extern int an_next_walk_step(mdb_walk_state_t *);
74 extern int an_idnext_walk_step(mdb_walk_state_t *);
75 extern int an_idprev_walk_step(mdb_walk_state_t *);
76 extern int an_ctxchain_walk_step(mdb_walk_state_t *);
77 extern void areq_walk_fini(mdb_walk_state_t *);
78 extern int an_prev_walk_step(mdb_walk_state_t *);
79 extern int reqid_table_walk_init(mdb_walk_state_t *);
80 extern int reqid_table_walk_step(mdb_walk_state_t *);
81 extern void reqid_table_walk_fini(mdb_walk_state_t *);
82 
83 extern int soft_conf_walk_init(mdb_walk_state_t *);
84 extern int soft_conf_walk_step(mdb_walk_state_t *);
85 extern void soft_conf_walk_fini(mdb_walk_state_t *);
86 
87 extern int kcf_soft_conf_entry(uintptr_t addr, uint_t flags, int argc,
88     const mdb_arg_t *argv);
89 
90 extern int kcf_policy_desc(uintptr_t addr, uint_t flags, int argc,
91     const mdb_arg_t *argv);
92 
93 
94 #ifdef	__cplusplus
95 }
96 #endif
97 
98 #endif	/* _CRYPTO_CMDS_H */
99