HandleContext &context = HandleObject::find<HandleContext>((CSSM_HANDLE)CCHandle, CSSM_ERRCODE_INVALID_CONTEXT_HANDLE);
Context *newContext = new(context.attachment) Context(context.type(), context.algorithm());
try {
HandleContext &context = HandleObject::find<HandleContext>((CSSM_HANDLE)CCHandle, CSSM_ERRCODE_INVALID_CONTEXT_HANDLE);
Context *newContext = new(context.attachment) Context(context.type(), context.algorithm());
try {
HandleContext &context = HandleObject::find<HandleContext>((CSSM_HANDLE)CCHandle, CSSM_ERRCODE_INVALID_CONTEXT_HANDLE);
CSSM_CONTEXT_ATTRIBUTE *oldAttributes = context.ContextAttributes;
HandleContext &context = HandleObject::find<HandleContext>((CSSM_HANDLE)CCHandle, CSSM_ERRCODE_INVALID_CONTEXT_HANDLE);
CSSM_CONTEXT_ATTRIBUTE *oldAttributes = context.ContextAttributes;
HandleContext &context = HandleObject::find<HandleContext>((CSSM_HANDLE)CCHandle, CSSM_ERRCODE_INVALID_CONTEXT_HANDLE);
context.mergeAttributes(ContextAttributes, NumberAttributes);
END_API(CSSM)
HandleContext &context = HandleObject::find<HandleContext>((CSSM_HANDLE)CCHandle, CSSM_ERRCODE_INVALID_CONTEXT_HANDLE);
context.mergeAttributes(ContextAttributes, NumberAttributes);
END_API(CSSM)
if (NumberOfAttributes == 0)
return CSSM_OK; // I suppose
Required(ContextAttributes); // preflight
if (NumberOfAttributes == 0)
return CSSM_OK; // I suppose
Required(ContextAttributes); // preflight
HandleContext &context = HandleObject::find<HandleContext>((CSSM_HANDLE)CCHandle, CSSM_ERRCODE_INVALID_CONTEXT_HANDLE);
for (uint32 n = 0; n < NumberOfAttributes; n++)
context.deleteAttribute(ContextAttributes[n].AttributeType);
HandleContext &context = HandleObject::find<HandleContext>((CSSM_HANDLE)CCHandle, CSSM_ERRCODE_INVALID_CONTEXT_HANDLE);
for (uint32 n = 0; n < NumberOfAttributes; n++)
context.deleteAttribute(ContextAttributes[n].AttributeType);
HandleContext &context = HandleObject::findAndLock<HandleContext>((CSSM_HANDLE)ccHandle, CSSM_ERRCODE_INVALID_CONTEXT_HANDLE);
TransitLock _(context.attachment);
HandleContext *newContext =
HandleContext &context = HandleObject::findAndLock<HandleContext>((CSSM_HANDLE)ccHandle, CSSM_ERRCODE_INVALID_CONTEXT_HANDLE);
TransitLock _(context.attachment);
HandleContext *newContext =