Reference Guide

16 Chapter 3: Resource Management
RSA BSAFE Crypto-C Micro Edition 3.x to 4.1.4 Migration Guide
Default Resource Lists
Crypto-C ME 4.1.4 uses a provider model and unified resource management making it
possible to use resources from any provider just by linking the application against an
additional library.
The result of this is that in Crypto-C ME 4.1.4 each provider defines a default resource
list for the functionality it provides. However, there is no overall default resource list
that supplies resources from all possible provider libraries.
To support this model of multiple resource lists from different providers, in
Crypto-C ME 4.1.4 the library context now allows any number of resources from any
number of sources to be added. Resource lists for the library context can be specified
using:
R_LIB_CTX_new() or R_LIB_CTX_new_ef(), which allow a resource list to
be added to the newly created library context.
R_LIB_CTX_add_resources(), which allows a list of resources to be added
to an existing library context.
R_LIB_CTX_add_resource(), which allows a single resource to be added to
an existing library context.
R_LIB_CTX_add_provider(), which allows a resource provider and the
resources it manages to be added to an existing library context.
Applications that previously used
PRODUCT_DEFAULT_RESOURCE_LIST() now
need to use the default resource lists from the providers they link against.