|
|||||||||||||||||||||||||||||||||||||||||||||||
Functions | |
| DS_Status | DS_Initialize (void) |
| Initialize the Simple Directory API. | |
| void | DS_InitializeSecurity (const char *path) |
| Initialize the security environment. | |
| void | DS_UninitializeSecurity (void) |
| Disable strong operations and release any resources associated with the security environment. | |
| int | DS_Version (void) |
| Return the DSAPI library version. | |
| DS_Status DS_Initialize | ( | void | ) |
Initialize the Simple Directory API.
This initializes all the underlying libraries.
If a security environment is required, it needs to be initialized afterwards by calling DS_InitializeSecurity().
| void DS_InitializeSecurity | ( | const char * | path | ) |
Initialize the security environment.
The security environment may not be available on all platforms. If it is available and is needed, it needs to be initialized with the location of a filestore directory containing an "x509" subdirectory containing identity, TLS anchors, and CRL information.
On Windows the default location is the "Application Data\Isode" directory inside the current user's "Documents and Settings" directory.
On Unix the default location is the current user's home directory.
| path | Location of the directory, or NULL to use platform-specific defaults. |
| void DS_UninitializeSecurity | ( | void | ) |
Disable strong operations and release any resources associated with the security environment.
This function can be used to signal that no further use will be made of X509 functionality, and provides the underlying libraries with the opportunity to clean up any data structures or temporary files which are consequently no longer required.
The function may be called when a program is about to terminate, or in the event that DS_InitializeSecurity is to be called with a new set of parameters.
After calling this function, no further attempts should be made to perform strong binds or signed operations without first making another suitable call to DS_InitializeSecurity. If any strong sessions are active when this function is called, then the behaviour of any subsequent operations on those sessions is unpredictable.
| int DS_Version | ( | void | ) |
Return the DSAPI library version.
This could be compared with the value of DSAPI_VERSION to check what functions are available at runtime.