Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IKeystore5::copyKey ( const P6WCHAR pNamespace,
const P6WCHAR pName,
const P6WCHAR pCopyName,
P6UUID pCopy 
)
pure virtual

Finds and makes a copy of an existing key with the matching 'pNamespace pName' identifer (e.g., 'SSH host_key' ).

This is a shallow copy without copying any associated links or attributes.

Parameters
pNamespace[ in ] An identifier to separate the namespace of pName between applications
pName[ in ] An application defined, unique identifier for a key
pCopyName[ in ] Optional, Name of new key copy, Name must be unique in a Namespace, can be NULL. If NULL, then the Name value assigned to the new key is its GUID.
pCopy[ out ] The key material is copied and associated with a new globally unique identifier.
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidArgOne of the parameters is NULL.
P6R::eNotInitializedA successful call to initialize was not made before this call.
P6R::eNotFoundThere is no keystore entry associated with the pNamespace pName identifer.
P6R::eInvalidStateA successful call to open() was not made before this call.
P6R::eTooBigpNamespace is larger than P6KSMAXNAMESPACE or pName is larger than P6KSMAXNAME.
P6R::eTooSmallpNamespace or pName have length of zero.