Previous section.

Common Security: CDSA and CSSM
Copyright © 1997 The Open Group

NAME

CSSM_SetContext

SYNOPSIS

CSSM_RETURN CSSMAPI CSSM_SetContext
    (CSSM_CC_HANDLE CCHandle,
    const CSSM_CONTEXT_PTR Context)

DESCRIPTION

This function replaces the context information associated with an existing context handle with the new context information supplied in Context. Before replacing the context, this function queries the provider associated with the context, to make sure the services requested from it are available in the provider.

PARAMETERS

CCHandle (input)

The handle to the context.

Context (input)

The context data describing the service to replace the current service associated with context handle CCHandle.

RETURN VALUE

A CSSM return value. This function returns CSSM_OK if successful, and returns an error code if an error has occurred.

ERRORS

CSSM__INVALID_CONTEXT_HANDLE

Invalid context handle.

CSSM__INVALID_CONTEXT_POINTER

Invalid context pointer.

CSSM__MEMORY_ERROR

Internal Memory Error.

SEE ALSO

CSSM_GetContext

Why not acquire a nicely bound hard copy?
Click here to return to the publication details or order a copy of this publication.
You should also read the legal notice explaining the terms and conditions relating to the CDSA documentation.

Contents Next section Index