LibreOffice Module onlineupdate (master) 1
Functions | Variables
archivereader.cxx File Reference
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include "bzlib.h"
#include "archivereader.h"
#include "errors.h"
#include "nsVersionComparator.h"
#include <sys/types.h>
Include dependency graph for archivereader.cxx:

Go to the source code of this file.

Functions

template<uint32_t SIZE>
int VerifyLoadedCert (MarFile *archive, const uint8_t(&certData)[SIZE])
 Performs a verification on the opened MAR file with the passed in certificate name ID and type ID. More...
 

Variables

static int inbuf_size = 262144
 
static int outbuf_size = 262144
 
static char * inbuf = nullptr
 
static char * outbuf = nullptr
 

Function Documentation

◆ VerifyLoadedCert()

template<uint32_t SIZE>
int VerifyLoadedCert ( MarFile archive,
const uint8_t(&)  certData[SIZE] 
)

Performs a verification on the opened MAR file with the passed in certificate name ID and type ID.

Parameters
archiveThe MAR file to verify the signature on.
certDataThe certificate data.
Returns
OK on success, CERT_VERIFY_ERROR on failure.

Definition at line 55 of file archivereader.cxx.

References CERT_VERIFY_ERROR, mar_verify_signatures(), OK, size, and SIZE.

Referenced by ArchiveReader::VerifySignature().

Variable Documentation

◆ inbuf

char* inbuf = nullptr
static

◆ inbuf_size

int inbuf_size = 262144
static

Definition at line 40 of file archivereader.cxx.

Referenced by ArchiveReader::ExtractItemToStream(), and ArchiveReader::Open().

◆ outbuf

char* outbuf = nullptr
static

◆ outbuf_size

int outbuf_size = 262144
static

Definition at line 41 of file archivereader.cxx.

Referenced by ArchiveReader::ExtractItemToStream(), and ArchiveReader::Open().