cmd: remove various sparc-only bins
[unleashed.git] / share / man / man3lib / libkmf.3lib
blob8c5fa00144fb48af29bd943690942a7cc5ffd4c9
1 '\" te
2 .\" Copyright (c) 2008, Sun Microsystems, Inc.  All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH LIBKMF 3LIB "Feb 7, 2008"
7 .SH NAME
8 libkmf \- Key Management Framework library
9 .SH SYNOPSIS
10 .LP
11 .nf
12 cc [ \fIflag\fR... ] \fIfile\fR... \fB-lkmf\fR [ \fIlibrary\fR... ]
13 #include <kmfapi.h>
14 .fi
16 .SH DESCRIPTION
17 .sp
18 .LP
19 These functions comprise the Key Management Framework library.  They are
20 intended to be used by applications that need to perform operations involving
21 the creation and management of public key objects such as public/private key
22 pairs, certificates, certificate signing requests, certificate validation,
23 certificate revocation lists, and OCSP response processing.
24 .SH INTERFACES
25 .sp
26 .LP
27 The shared object \fBlibkmf.so.1\fR provides the public interfaces defined
28 below. See \fBIntro\fR(3) for additional information on shared object
29 interfaces.
30 .sp
32 .sp
33 .TS
34 l l
35 l l .
36 \fBkmf_add_cert_eku\fR  \fBkmf_add_csr_eku\fR
37 \fBkmf_add_policy_to_db\fR      \fBkmf_build_pk12\fR
38 \fBkmf_check_cert_date\fR       \fBkmf_check_crl_date\fR
39 \fBkmf_compare_rdns\fR  \fBkmf_configure_keystore\fR
40 \fBkmf_create_cert_file\fR      \fBkmf_create_csr_file\fR
41 \fBkmf_create_keypair\fR        \fBkmf_create_ocsp_request\fR
42 \fBkmf_create_sym_key\fR        \fBkmf_decode_csr\fR
43 \fBkmf_decrypt\fR       \fBkmf_delete_cert_from_keystore\fR
44 \fBkmf_delete_crl\fR    \fBkmf_delete_key_from_keystore\fR
45 \fBkmf_delete_policy_from_db\fR \fBkmf_der_to_pem\fR
46 \fBkmf_dn_parser\fR     \fBkmf_download_cert\fR
47 \fBkmf_download_crl\fR  \fBkmf_ekuname_to_oid\fR
48 \fBkmf_encode_cert_record\fR    \fBkmf_encrypt\fR
49 \fBkmf_export_pk12\fR   \fBkmf_finalize\fR
50 \fBkmf_find_attr\fR     \fBkmf_find_cert\fR
51 \fBkmf_find_cert_in_crl\fR      \fBkmf_find_crl\fR
52 \fBkmf_find_key\fR      \fBkmf_find_prikey_by_cert\fR
53 \fBkmf_free_algoid\fR   \fBkmf_free_bigint\fR
54 \fBkmf_free_crl_dist_pts\fR     \fBkmf_free_data\fR
55 \fBkmf_free_dn\fR       \fBkmf_free_eku\fR
56 \fBkmf_free_eku_policy\fR       \fBkmf_free_extn\fR
57 \fBkmf_free_kmf_cert\fR \fBkmf_free_kmf_key\fR
58 \fBkmf_free_policy_record\fR    \fBkmf_free_raw_key\fR
59 \fBkmf_free_raw_sym_key\fR      \fBkmf_free_signed_cert\fR
60 \fBkmf_free_signed_csr\fR       \fBkmf_free_spki\fR
61 \fBkmf_free_str\fR      \fBkmf_free_tbs_cert\fR
62 \fBkmf_free_tbs_csr\fR  \fBkmf_get_attr\fR
63 \fBkmf_get_attr_ptr\fR  \fBkmf_get_cert_auth_info_access\fR
64 \fBkmf_get_cert_basic_constraint\fR     \fBkmf_get_cert_crl_dist_pts\fR
65 \fBkmf_get_cert_eku\fR  \fBkmf_get_cert_email_str\fR
66 \fBkmf_get_cert_end_date_str\fR \fBkmf_get_cert_extn\fR
67 \fBkmf_get_cert_extn_str\fR     \fBkmf_get_cert_id_data\fR
68 \fBkmf_get_cert_id_str\fR       \fBkmf_get_cert_issuer_str\fR
69 \fBkmf_get_cert_ku\fR   \fBkmf_get_cert_policies\fR
70 \fBkmf_get_cert_pubkey_alg_str\fR       \fBkmf_get_cert_pubkey_str\fR
71 \fBkmf_get_cert_serial_str\fR   \fBkmf_get_cert_sig_alg_str\fR
72 \fBkmf_get_cert_start_date_str\fR       \fBkmf_get_cert_subject_str\fR
73 \fBkmf_get_cert_validity\fR     \fBkmf_get_cert_version_str\fR
74 \fBkmf_get_data_format\fR       \fBkmf_get_encoded_ocsp_response\fR
75 \fBkmf_get_file_format\fR       \fBkmf_get_kmf_error_str\fR
76 \fBkmf_get_ocsp_for_cert\fR     \fBkmf_get_ocsp_status_for_cert\fR
77 \fBkmf_get_pk11_handle\fR       \fBkmf_get_plugin_error_str\fR
78 \fBkmf_get_policy\fR    \fBkmf_get_string_attr\fR
79 \fBkmf_get_sym_key_value\fR     \fBkmf_hexstr_to_bytes\fR
80 \fBkmf_import_crl\fR    \fBkmf_import_cert\fR
81 \fBkmf_import_objects\fR        \fBkmf_initialize\fR
82 \fBkmf_is_cert_data\fR  \fBkmf_is_cert_file\fR
83 \fBkmf_is_crl_file\fR   \fBkmf_ku_to_string\fR
84 \fBkmf_list_crl\fR      \fBkmf_oid_to_ekuname\fR
85 \fBkmf_oid_to_string\fR \fBkmf_pem_to_der\fR
86 \fBkmf_pk11_token_lookup\fR     \fBkmf_read_input_file\fR
87 \fBkmf_select_token\fR  \fBkmf_set_attr\fR
88 \fBkmf_set_attr_at_index\fR     \fBkmf_set_cert_basic_constraint\fR
89 \fBkmf_set_cert_extn\fR \fBkmf_set_cert_issuer\fR
90 \fBkmf_set_cert_issuer_altname\fR       \fBkmf_set_cert_ku\fR
91 \fBkmf_set_cert_pubkey\fR       \fBkmf_set_cert_serial\fR
92 \fBkmf_set_cert_sig_alg\fR      \fBkmf_set_cert_subject\fR
93 \fBkmf_set_cert_subject_altname\fR      \fBkmf_set_cert_validity\fR
94 \fBkmf_set_cert_version\fR      \fBkmf_set_csr_extn\fR
95 \fBkmf_set_csr_ku\fR    \fBkmf_set_csr_pubkey\fR
96 \fBkmf_set_csr_sig_alg\fR       \fBkmf_set_csr_subject\fR
97 \fBkmf_set_csr_subject_altname\fR       \fBkmf_set_csr_version\fR
98 \fBkmf_set_policy\fR    \fBkmf_set_token_pin\fR
99 \fBkmf_sign_cert\fR     \fBkmf_sign_csr\fR
100 \fBkmf_sign_data\fR     \fBkmf_store_cert\fR
101 \fBkmf_store_key\fR     \fBkmf_string_to_ku\fR
102 \fBkmf_string_to_oid\fR \fBkmf_validate_cert\fR
103 \fBkmf_verify_cert\fR   \fBkmf_verify_crl_file\fR
104 \fBkmf_verify_csr\fR    \fBkmf_verify_data\fR
105 \fBkmf_verify_policy\fR 
108 .SH FILES
110 .ne 2
112 \fB\fB/lib/libkmf.so.1\fR\fR
114 .RS 27n
115 shared object
119 .ne 2
121 \fB\fB/lib/64/libkmf.so.1\fR\fR
123 .RS 27n
124 64-bit shared object
128 .ne 2
130 \fB\fB/usr/include/kmfapi.h\fR\fR
132 .RS 27n
133 KMF function definitions
137 .ne 2
139 \fB\fB/usr/include/kmftypes.h\fR\fR
141 .RS 27n
142 KMF structures and types.
145 .SH ATTRIBUTES
148 See \fBattributes\fR(5) for descriptions of the following attributes:
153 box;
154 c | c
155 l | l .
156 ATTRIBUTE TYPE  ATTRIBUTE VALUE
157 Interface Stability     Committed
159 MT-Level        Safe
162 .SH SEE ALSO
165 \fBkmfcfg\fR(1), \fBpktool\fR(1), \fBattributes\fR(5)
168 \fISolaris Security for Developers Guide\fR