 |
copen |
Function (ROM Call 0x132) |
Opens a certificate file context.
copen opens a memory mapped file which starts at address data,
and which is size bytes long. It also initializes file context (this is a file
control structure of type CFILE) pointed to by
context. It does not reserve any memory. In fact, copen does nothing more than
context->Start = context->Pos = data;
context->End = data + size;
context->EOF = FALSE;
Note: All functions from this header file are used in TIOS exclusively for accessing certificate
files, which are stored in the protected area of Flash ROM, and which contain certificate data.
However, these functions are not limited to such files. They may be used with any memory mapped
file (i.e. a "headerless" file which does not have an entry in the VAT table), which does not need to be
a file which really contains certificate data.
Used by: copensub, AB_prodid, AB_prodname, ROM Call 0x44B, ROM Call 0x477, ROM Call 0x4F3