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