Structure

SecItemImportExportKeyParameters

The import/export parameter structure.

Declaration

typedef struct {
    ...
} SecItemImportExportKeyParameters;

Overview

Use this structure as the keyParams input parameter to the SecItemExport and the SecItemImport functions.

Topics

Instance Properties

accessRef

Specifies the initial access controls of imported private keys.

alertPrompt

The prompt to display in the secure passphrase alert panel.

alertTitle

The title to display in the secure passphrase alert panel.

flags

The bitwise OR of zero or more key import/export flags.

keyAttributes

An array containing zero or more key attributes for an imported key.

keyUsage

An array containing usage attributes applied to a key on import.

passphrase

The password to use during key import or export.

version

The version of this structure.

See Also

Import and Export

SecItemImport

Imports one or more certificates, keys, or identities and optionally adds them to a keychain.

SecItemExport

Exports one or more certificates, keys, or identities.

SecExternalFormat

The external format of a keychain item.

SecExternalItemType

The import item type.

SecItemImportExportFlags

The import and export function flags.

SecKeyImportExportFlags

The import/export parameter structure flags.

SEC_KEY_IMPORT_EXPORT_PARAMS_VERSION

The import/export parameter structure version.

SecKeychainItemImport

Imports one or more certificates, keys, or identities and adds them to a keychain.

Deprecated
SecKeychainItemExport

Exports one or more certificates, keys, or identities.

Deprecated
SecKeyImportExportParameters

The legacy import/export parameter structure.