| RSA BSAFE Cert-C |
Certificate Components for C |
| Crypto-C 6.2.1 Developer's Guide | ||
| Search |
#include "basetype.h"
#include "surrspi.h"
#include "logspi.h"
#include "cryptspi.h"
#include "iospi.h"
#include "dbspi.h"
#include "statspi.h"
#include "pathspi.h"
#include "pkispi.h"
Go to the source code of this file.
Data Structures | |
| union | SERVICE_FUNCS |
| Specifies a set of function pointers. More... | |
| struct | SERVICE_HANDLER |
| Contains service provider information and the service provider initialization function. More... | |
Functions | |
| int | C_RegisterService (CERTC_CTX ctx, SERVICE_HANDLER *handler, POINTER params, int order) |
| Registers additional service providers subsequent to Cert-C initialization. More... | |
| void | C_UnregisterService (CERTC_CTX ctx, int type, char *name) |
| Unregisters a previously registered service provider. More... | |
| int | C_BindService (CERTC_CTX ctx, int type, char *name, SERVICE *service) |
Binds a single currently registered service provider to a SERVICE handle. More... | |
| int | C_BindServices (CERTC_CTX ctx, int type, char **names, unsigned int nameCount, SERVICE *service) |
Binds one or more currently registered service providers, of a single type, to a SERVICE handle. More... | |
| int | C_UnbindService (SERVICE *service) |
| Undoes a previous binding of service providers to the specified handle. More... | |
| int | C_GetProviderNames (SERVICE service, char **names) |
Retrieves the names of providers bound with a SERVICE by C_BindService() or C_BindServices(). More... | |
| int | C_GetProviderCount (SERVICE service, unsigned int *count) |
Gets the number of providers bound with a SERVICE by C_BindService() or* C_BindServices(). More... | |
|
||||||||||||||||||||
|
Binds a single currently registered service provider to a
|
|
||||||||||||||||||||||||
|
Binds one or more currently registered service providers, of a single type, to a
|
|
||||||||||||
|
Gets the number of providers bound with a
C_GetProviderCount(service, &count);
names = (char *) T_malloc(count * sizeof(char *));
C_GetProviderNames(service, names);
....
for (int i=0; i < count; i++)
T_free(names[i]);
T_free((char *)names);
|
|
||||||||||||
|
Retrieves the names of providers bound with a
|
|
||||||||||||||||||||
|
Registers additional service providers subsequent to Cert-C initialization. Calls the service provider's initialization function and adds an entry for the service provider in the context's internal list of service providers.
|
|
|
Undoes a previous binding of service providers to the specified handle. Frees any memory allocated by the corresponding call to C_BindService() or C_BindServices().
|
|
||||||||||||||||
|
Unregisters a previously registered service provider. The service handler with the specified type and name is removed from the context, the service provider's finalize function is called, and the memory associated with the context's copy of the service handler is freed. Cert-C automatically unregisters all currently registered service providers when the Cert-C library is shut down, so the application does not need to call this function if the next Cert-C call is C_FinalizeCertC(). The application must ensure that the service provider being unregistered is not bound to any service handles. Using a service handle that includes an unregistered service may cause the application to crash.
|