xref: /titanic_44/usr/src/man/man3lib/libkmf.3lib (revision 430b4c467020edf2445feb0c21db01c88b86243a)
te
Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved.
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.
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.
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]
libkmf 3LIB "7 Feb 2008" "SunOS 5.11" "Interface Libraries"
NAME
libkmf - Key Management Framework library
SYNOPSIS

cc [ flag... ] file... -lkmf [ library... ]
#include <kmfapi.h>
DESCRIPTION

These functions comprise the Key Management Framework library. They are intended to be used by applications that need to perform operations involving the creation and management of public key objects such as public/private key pairs, certificates, certificate signing requests, certificate validation, certificate revocation lists, and OCSP response processing.

INTERFACES

The shared object libkmf.so.1 provides the public interfaces defined below. See Intro(3) for additional information on shared object interfaces.

kmf_add_cert_ekukmf_add_csr_eku
kmf_add_policy_to_dbkmf_build_pk12
kmf_check_cert_datekmf_check_crl_date
kmf_compare_rdnskmf_configure_keystore
kmf_create_cert_filekmf_create_csr_file
kmf_create_keypairkmf_create_ocsp_request
kmf_create_sym_keykmf_decode_csr
kmf_decryptkmf_delete_cert_from_keystore
kmf_delete_crlkmf_delete_key_from_keystore
kmf_delete_policy_from_dbkmf_der_to_pem
kmf_dn_parserkmf_download_cert
kmf_download_crlkmf_ekuname_to_oid
kmf_encode_cert_recordkmf_encrypt
kmf_export_pk12kmf_finalize
kmf_find_attrkmf_find_cert
kmf_find_cert_in_crlkmf_find_crl
kmf_find_keykmf_find_prikey_by_cert
kmf_free_algoidkmf_free_bigint
kmf_free_crl_dist_ptskmf_free_data
kmf_free_dnkmf_free_eku
kmf_free_eku_policykmf_free_extn
kmf_free_kmf_certkmf_free_kmf_key
kmf_free_policy_recordkmf_free_raw_key
kmf_free_raw_sym_keykmf_free_signed_cert
kmf_free_signed_csrkmf_free_spki
kmf_free_strkmf_free_tbs_cert
kmf_free_tbs_csrkmf_get_attr
kmf_get_attr_ptrkmf_get_cert_auth_info_access
kmf_get_cert_basic_constraintkmf_get_cert_crl_dist_pts
kmf_get_cert_ekukmf_get_cert_email_str
kmf_get_cert_end_date_strkmf_get_cert_extn
kmf_get_cert_extn_strkmf_get_cert_id_data
kmf_get_cert_id_strkmf_get_cert_issuer_str
kmf_get_cert_kukmf_get_cert_policies
kmf_get_cert_pubkey_alg_strkmf_get_cert_pubkey_str
kmf_get_cert_serial_strkmf_get_cert_sig_alg_str
kmf_get_cert_start_date_strkmf_get_cert_subject_str
kmf_get_cert_validitykmf_get_cert_version_str
kmf_get_data_formatkmf_get_encoded_ocsp_response
kmf_get_file_formatkmf_get_kmf_error_str
kmf_get_ocsp_for_certkmf_get_ocsp_status_for_cert
kmf_get_pk11_handlekmf_get_plugin_error_str
kmf_get_policykmf_get_string_attr
kmf_get_sym_key_valuekmf_hexstr_to_bytes
kmf_import_crlkmf_import_cert
kmf_import_objectskmf_initialize
kmf_is_cert_datakmf_is_cert_file
kmf_is_crl_filekmf_ku_to_string
kmf_list_crlkmf_oid_to_ekuname
kmf_oid_to_stringkmf_pem_to_der
kmf_pk11_token_lookupkmf_read_input_file
kmf_select_tokenkmf_set_attr
kmf_set_attr_at_indexkmf_set_cert_basic_constraint
kmf_set_cert_extnkmf_set_cert_issuer
kmf_set_cert_issuer_altnamekmf_set_cert_ku
kmf_set_cert_pubkeykmf_set_cert_serial
kmf_set_cert_sig_algkmf_set_cert_subject
kmf_set_cert_subject_altnamekmf_set_cert_validity
kmf_set_cert_versionkmf_set_csr_extn
kmf_set_csr_kukmf_set_csr_pubkey
kmf_set_csr_sig_algkmf_set_csr_subject
kmf_set_csr_subject_altnamekmf_set_csr_version
kmf_set_policykmf_set_token_pin
kmf_sign_certkmf_sign_csr
kmf_sign_datakmf_store_cert
kmf_store_keykmf_string_to_ku
kmf_string_to_oidkmf_validate_cert
kmf_verify_certkmf_verify_crl_file
kmf_verify_csrkmf_verify_data
kmf_verify_policy
FILES

/lib/libkmf.so.1

shared object

/lib/64/libkmf.so.1

64-bit shared object

/usr/include/kmfapi.h

KMF function definitions

/usr/include/kmftypes.h

KMF structures and types.

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
Interface StabilityCommitted
MT-LevelSafe
SEE ALSO

kmfcfg(1), pktool(1), attributes(5)

Solaris Security for Developers Guide