User guide

E-68
PLI Access Routines
vcsSpClose
Syntax
void vcsSpClose(vcsSpStateID esp)
Synopsis
This routine frees the memory allocated by vcsSpInitialize().
Call it when source encryption is finished on the specified stream.
Returns
No return value.
Example D-28 Example of vcsSpClose
vcsSpStateID esp = vcsSpInitialize();
...
vcsSpClose(esp);
vcsSpEncodeOff
Syntax
int vcsSpEncodeOff(vcsSpStateID esp)
Synopsis
This function performs two operations:
1. It inserts a trailer section that contains some closing information
used by the decryption algorithm into the output file. It also inserts
the `endprotected compiler directivein the trailer section.
2. It toggles the encryption flag to false so that subsequent calls to
vcsSpWriteString() and vcsSpWriteChar() will NOT
cause their data to be encrypted.