xref: /onnv-gate/usr/src/cmd/mdb/common/modules/crypto/crypto_cmds.h (revision 9505:cec264b91738)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * CDDL HEADER START
30Sstevel@tonic-gate  *
40Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*9505SBhargava.Yenduri@Sun.COM  * Common Development and Distribution License (the "License").
6*9505SBhargava.Yenduri@Sun.COM  * You may not use this file except in compliance with the License.
70Sstevel@tonic-gate  *
80Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate  * See the License for the specific language governing permissions
110Sstevel@tonic-gate  * and limitations under the License.
120Sstevel@tonic-gate  *
130Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate  *
190Sstevel@tonic-gate  * CDDL HEADER END
200Sstevel@tonic-gate  */
210Sstevel@tonic-gate /*
22*9505SBhargava.Yenduri@Sun.COM  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate  * Use is subject to license terms.
240Sstevel@tonic-gate  */
250Sstevel@tonic-gate 
260Sstevel@tonic-gate #ifndef	_CRYPTO_CMDS_H
270Sstevel@tonic-gate #define	_CRYPTO_CMDS_H
280Sstevel@tonic-gate 
290Sstevel@tonic-gate #ifdef	__cplusplus
300Sstevel@tonic-gate extern "C" {
310Sstevel@tonic-gate #endif
320Sstevel@tonic-gate 
330Sstevel@tonic-gate extern int crypto_provider_ext_info(uintptr_t addr, uint_t flags, int argc, \
340Sstevel@tonic-gate 	const mdb_arg_t *argv);
350Sstevel@tonic-gate extern int crypto_mech_info(uintptr_t addr, uint_t flags, int argc, \
360Sstevel@tonic-gate 	const mdb_arg_t *argv);
370Sstevel@tonic-gate 
380Sstevel@tonic-gate extern int crypto_mechanism(uintptr_t addr, uint_t flags, int argc, \
390Sstevel@tonic-gate 	const mdb_arg_t *argv);
400Sstevel@tonic-gate extern int crypto_data(uintptr_t addr, uint_t flags, int argc, \
410Sstevel@tonic-gate 	const mdb_arg_t *argv);
420Sstevel@tonic-gate extern int crypto_dual_data(uintptr_t addr, uint_t flags, int argc, \
430Sstevel@tonic-gate 	const mdb_arg_t *argv);
440Sstevel@tonic-gate extern int crypto_key(uintptr_t addr, uint_t flags, int argc, \
450Sstevel@tonic-gate 	const mdb_arg_t *argv);
460Sstevel@tonic-gate 
470Sstevel@tonic-gate extern int kcf_provider_desc(uintptr_t addr, uint_t flags, int argc, \
480Sstevel@tonic-gate 	const mdb_arg_t *argv);
490Sstevel@tonic-gate 
500Sstevel@tonic-gate extern int prov_tab(uintptr_t addr, uint_t flags, int argc, \
510Sstevel@tonic-gate 	const mdb_arg_t *argv);
520Sstevel@tonic-gate 
530Sstevel@tonic-gate extern int policy_tab(uintptr_t addr, uint_t flags, int argc, \
540Sstevel@tonic-gate 	const mdb_arg_t *argv);
550Sstevel@tonic-gate 
560Sstevel@tonic-gate extern int kcf_areq_node(uintptr_t addr, uint_t flags, int argc, \
570Sstevel@tonic-gate 	const mdb_arg_t *argv);
580Sstevel@tonic-gate 
590Sstevel@tonic-gate extern int kcf_global_swq(uintptr_t addr, uint_t flags, int argc, \
600Sstevel@tonic-gate 	const mdb_arg_t *argv);
610Sstevel@tonic-gate 
620Sstevel@tonic-gate extern int kcf_reqid_table_dcmd(uintptr_t addr, uint_t flags, int argc, \
630Sstevel@tonic-gate 	const mdb_arg_t *argv);
640Sstevel@tonic-gate 
650Sstevel@tonic-gate extern int crypto_find_reqid(uintptr_t addr, uint_t flags, int argc, \
660Sstevel@tonic-gate 	const mdb_arg_t *argv);
670Sstevel@tonic-gate 
680Sstevel@tonic-gate extern int areq_first_walk_init(mdb_walk_state_t *);
690Sstevel@tonic-gate extern int an_idnext_walk_init(mdb_walk_state_t *);
700Sstevel@tonic-gate extern int an_idprev_walk_init(mdb_walk_state_t *);
710Sstevel@tonic-gate extern int an_ctxchain_walk_init(mdb_walk_state_t *);
720Sstevel@tonic-gate extern int areq_last_walk_init(mdb_walk_state_t *);
730Sstevel@tonic-gate extern int an_next_walk_step(mdb_walk_state_t *);
740Sstevel@tonic-gate extern int an_idnext_walk_step(mdb_walk_state_t *);
750Sstevel@tonic-gate extern int an_idprev_walk_step(mdb_walk_state_t *);
760Sstevel@tonic-gate extern int an_ctxchain_walk_step(mdb_walk_state_t *);
770Sstevel@tonic-gate extern void areq_walk_fini(mdb_walk_state_t *);
780Sstevel@tonic-gate extern int an_prev_walk_step(mdb_walk_state_t *);
790Sstevel@tonic-gate extern int reqid_table_walk_init(mdb_walk_state_t *);
800Sstevel@tonic-gate extern int reqid_table_walk_step(mdb_walk_state_t *);
810Sstevel@tonic-gate extern void reqid_table_walk_fini(mdb_walk_state_t *);
820Sstevel@tonic-gate 
830Sstevel@tonic-gate extern int soft_conf_walk_init(mdb_walk_state_t *);
840Sstevel@tonic-gate extern int soft_conf_walk_step(mdb_walk_state_t *);
850Sstevel@tonic-gate extern void soft_conf_walk_fini(mdb_walk_state_t *);
860Sstevel@tonic-gate 
870Sstevel@tonic-gate extern int kcf_soft_conf_entry(uintptr_t addr, uint_t flags, int argc,
880Sstevel@tonic-gate     const mdb_arg_t *argv);
890Sstevel@tonic-gate 
900Sstevel@tonic-gate extern int kcf_policy_desc(uintptr_t addr, uint_t flags, int argc,
910Sstevel@tonic-gate     const mdb_arg_t *argv);
920Sstevel@tonic-gate 
930Sstevel@tonic-gate 
940Sstevel@tonic-gate #ifdef	__cplusplus
950Sstevel@tonic-gate }
960Sstevel@tonic-gate #endif
970Sstevel@tonic-gate 
980Sstevel@tonic-gate #endif	/* _CRYPTO_CMDS_H */
99