25cf1a301a396c38e8adf52c15f537b80d2483f7jl * CDDL HEADER START
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * The contents of this file are subject to the terms of the
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * Common Development and Distribution License (the "License").
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * You may not use this file except in compliance with the License.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * See the License for the specific language governing permissions
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * and limitations under the License.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * When distributing Covered Code, include this CDDL HEADER in each
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * If applicable, add the following below this CDDL HEADER, with the
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * fields enclosed by brackets "[]" replaced with your own identifying
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * information: Portions Copyright [yyyy] [name of copyright owner]
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * CDDL HEADER END
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * Use is subject to license terms.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#pragma ident "%Z%%M% %I% %E% SMI"
25cf1a301a396c38e8adf52c15f537b80d2483f7jlextern "C" {
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * This header file describes the format of the mailbox messages
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * exchanged between the OPL key management driver on a OPL Domain
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * and the OPL Service Processor.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * Request message header.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * Reply message header.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl uint32_t krp_sadb_errno; /* PF_KEY errno, if applicable */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl uint32_t krp_sadb_version; /* PF_KEY version, if applicable */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * Version of this current protocol.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * Message types.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * Values for sckm_msg_rep_hdr status field.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#define OKM_ERR_SADB_PFKEY 0x2 /* PF_KEY returned an error */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#define OKM_ERR_SADB_MSG 0x3 /* bad SADB msg detect by driver */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#define OKM_ERR_DAEMON 0x4 /* Error communicating with daemon */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#define OKM_ERR_SADB_TIMEOUT 0x7 /* no response from key engine */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#endif /* _SYS_OPLKM_MSG_H */