CopyAttribute

Synopsis

CK_ATTRIBUTE * CopyAttribute(
CK_ATTRIBUTE_TYPE at,
TOK_ATTR_DATA * tgt,
const TOK_ATTR_DATA * src);

Description

Make a copy of an attribute from one attribute set to another.  Only copy it if it is in 'src'. Overwrite it if it is in 'tgt'.  Returns reference to the copied attribute in tgt attribute set.

Parameters

at

Attribute to copy

tgt

Target attribute set

src

Source attribute set

On Successful Return

tgt — contains value of the specified attribute from src