User guide
E-75
PLI Access Routines
...
}
if (!esp) break; /* done */
}
/* next line should be ‘endprotected_ip */
fgets(linebuf, sizeof(linebuf), infile);
if (strcmp(linebuf, "‘endprotected_ip\n")!=0) {
printf("warning - expected ‘endprotected_ip\n");
}
}
vcsSpOvaDisable
Syntax
void vcsSpOvaDisable(vcsSpStateID esp)
Synopsis
This routine switches to regular encryption. It tells VCS’s encrypter
to use the standard algorithm. This is the default mode.
Returns
No return value.
Example D-35 Example of vcsSpOvaDisable
#include "enclib.h"
#include "encint.h"
int write_error = 0;
vcsSpStateID esp;
if ((esp = vcsSpInitialize()) printf("Out Of Memory");
vcsSpSetFilePtr(esp, fp); /* previously opened FILE* pointer
*/
/* Configure for OVA IP encryption */
vcsSpOvaEnable(esp, "synopsys");