kaveSelfDefenseUpdatePublicKey

Registers a new public encryption key in the operating system.

Syntax

HRESULT kaveSelfDefenseUpdatePublicKey (

const void *data,

unsigned int size

);

Parameters

The kaveSelfDefenseUpdatePublicKey function has the following parameters.

kaveSelfDefenseUpdatePublicKey function parameters

Name

Type

Description

data

In

The body of your new public encryption key as a BLOB object.

size

In

Length of the BLOB object.

Return value

The table below contains possible values that the kaveSelfDefenseUpdatePublicKey function can return.

kaveSelfDefenseUpdatePublicKey function return codes

Return code

Description

S_OK

The function succeeds.

E_NOTIMPL

An attempt has been made to call the kaveSelfDefenseUpdatePublicKey function before loading KAV SDK in system memory.

E_FAIL

An error occurred when registering a public key.

Remarks

If the public key expires, you can register a new public key by using kaveSelfDefenseUpdatePublicKey.

To register a new public key, signed your installer application using by the private keys of the following public keys:

  1. The expired key used during installation of your application
  2. The new key that you want to register in system.

After the function returns, you must restart your operating system to finish the update operation.

Page top