|
SharkSSL C/C++ Reference
TLS, cryptography, certificates, and PSA integration
|
Optional Minnow Server adapter for an external ZIP reader.
The optional ZipFileSystem plugin for the Minnow Server lets you store the web presentation logic compressed in the device. The compressed web pages are not uncompressed on the device. The web pages are extracted from within the ZIP file and sent "as is" to the browser. All modern browsers uncompress "compressed" data received from the servers.
This checkout supplies ZipFileSystem.c and ZipFileSystem.h. Building the adapter also requires the separately supplied ZipFileIterator.h and its implementation, including ZipReader, ZipContainer, CentralDirIterator, and ZipFileInfo. Those external APIs and their build instructions belong to the ZIP reader package's documentation.
Data Structures | |
| struct | ZipFileSystem |
| The ZipFileSystem handle. More... | |
Functions | |
| MSFetchPage | msInitZipFileSystem (ZipFileSystem *zfs, ZipReader *zipReader) |
| Initializes the ZIP File System and returns an MSFetchPage callback function. More... | |
| MSFetchPage msInitZipFileSystem | ( | ZipFileSystem * | zfs, |
| ZipReader * | zipReader | ||
| ) |
Initializes the ZIP File System and returns an MSFetchPage callback function.
| zfs | ZipFileSystem *; required caller-owned filesystem context retained while its page handler is installed. |
| zipReader | ZipReader *; required caller-owned initialized reader retained with zfs and its ZIP data. |
The reader connects the adapter to stored ZIP bytes. Supply an initialized reader using the external ZIP reader package's documented construction and storage interface.
Example code: