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
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.
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]
23 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
30 #pragma ident "%Z%%M% %I% %E% SMI"
36 extern void ERR_load_SUNW_strings(void);
37 extern void ERR_SUNW_error(int function
, int reason
, char *file
, int line
);
39 #define SUNW_LIB_NAME "SUNW_PKCS12"
40 #define SUNWerr(f, r) ERR_SUNW_error((f), (r), __FILE__, __LINE__)
42 /* Error codes for the SUNW functions. */
43 /* OpenSSL prefers codes to start at 100 */
47 SUNW_F_USE_X509CERT
= 100,
56 SUNW_F_PKCS12_CONTENTS
,
60 SUNW_F_FIND_LOCALKEYID
,
61 SUNW_F_SET_LOCALKEYID
,
62 SUNW_F_GET_LOCALKEYID
,
63 SUNW_F_GET_PKEY_FNAME
,
79 SUNW_R_INVALID_ARG
= 100,
80 SUNW_R_MEMORY_FAILURE
,
81 SUNW_R_MAC_VERIFY_FAILURE
,
82 SUNW_R_MAC_CREATE_FAILURE
,
87 SUNW_R_NO_TRUST_ANCHOR
,
88 SUNW_R_READ_TRUST_ERR
,
90 SUNW_R_PKCS12_PARSE_ERR
,
91 SUNW_R_PKCS12_CREATE_ERR
,
95 SUNW_R_PARSE_CERT_ERR
,
106 SUNW_R_STR_CONVERT_ERR
,
107 SUNW_R_PKCS12_EMPTY_ERR
,
115 #endif /* _P12ERR_H */