NetBurner 3.5.0
PDF Version
 
nbupdate.h File Reference

Signed Application Update API. More...

#include <predef.h>
#include <constants.h>
#include <basictypes.h>
#include <PlatformHeader.h>

Go to the source code of this file.

Macros

#define NBUP_ERR_NO_ERR   0
 No errors.
 
#define NBUP_ERR_BAD_SOCK   -1
 File descriptor socket is invlaid.
 
#define NBUP_ERR_TIMEOUT   -2
 Timeout.
 
#define NBUP_ERR_TOO_LARGE   -3
 Application update record is too large.
 
#define NBUP_ERR_WRONG_PLAT   -4
 Device platform name does not match.
 
#define NBUP_ERR_BAD_PROG   -5
 Programming failed, invalid checksum.
 
#define NBUP_ERR_BAD_AUTH   -6
 Application update record authentication failed.
 

Functions

void RegisterAppSigningPublicKey (const char *pKey)
 Enable APP Signing by registering a RSA PEM or DER format public key.
 
int ProgramApplication (uint32_t where, uint8_t *pAppImage)
 Program an appliction image into Flash memory.
 
int UpdateFromStream (int fd, AppUpdateRecord *&pu, uint32_t timeout)
 Program/update an appliction image from a data stream.
 

Detailed Description

Signed Application Update API.