XYGATE
®
Data Protection
™
Reference Manual
Chapter 5. Resolving Issues that can Occur when Installing the XDP Library
XYPRO Technology Corporation
26
Proprietary and Confidential
5.4.2
Sample ELD Script when the XDP Library will Come First, Object
Code 800 Programs
ELD is used for code 800 files.
ELD operates in a totally different way than binder does, so the commands are
different between the two utilities. ELD does not have an interactive command mode,
so the commands either have to be typed in on the TACL command line or entered
into an edit file.
For our ELD example below, we will assume that
applib
is an application link file that
is normally used as input to build the application executable run time library DLL.
There are two object code 800 native link files that are distributed with XDP:
•
XDP8EXT
is a link file that contains XDP object code to communicate with an
external Pathway-based encryption server.
•
XDP8INT
is a link file that contains XDP object code to invoke the encryption
engine in the library directly without needing an external Pathway server.
Otherwise, the two libraries are identical. For our example we will use
XDP8EXT
.
The first set of commands renames the application’s WRITEX procedure to be
__XYPRO_WRITEX and then builds
tmpapplb
, a temporary library. This is an example
of a TACL OBEY file for ELD.
eld &
r &
-o tmpapplb &
applib &
-rename WRITEX __XYPRO_WRITEX
Note the “r” above in the ELD commands; this tells ELD to build an output link file.
Now we will add the XDP library code, remove the XDP library __XYPRO_WRITE
procedure, add in the
tmpapplb
we built previously, and then build the load file
newapplb
.
The order of the input link files is important because we want to choose the
__XYPRO_WRITEX procedure that exists in
tmpapplb
and not the __XYPRO_WRITEX
procedure that exists in
$disc.xygatedp.xdp8ext
. ELD accepts the first occurrence
of a procedure that it finds in a list of link files. We take advantage of that fact in our
sample script by specifying the
tmpapplb
link file first. This means that the
__XYPRO_WRITEX in
tmpapplb
will be chosen instead of the one in XDP8EXT. A final
executable run time library file called
newapplb
is produced.