Otcfgremoteserver – Apple Network Setup User Manual

Page 136

Advertising
background image

C H A P T E R 4

Network Setup Protocol Structures and Data Types

136

Protocol Structures

struct OTCfgRemotePassword {

UInt8

data[256];

};

typedef struct OTCfgRemotePassword OTCfgRemotePassword;

data

The encrypted password. Call

OTCfgEncrypt

(page 93) to

encrypt the password.

The preference type for this preference is

kOTCfgRemotePasswordPref

, which is

defined as

'pass'

.

OTCfgRemoteServer

4

The

OTCfgRemoteServer

structure stores an array of port configuration IDs used

to locate the configuration for a particular port.

struct OTCfgRemoteServer {

UInt32

version;

SInt16

configCount;

SInt16

configIDs[1];

};

version

Depending how the preference was constructed,

version

may be

kOTCfgRemoteDefaultVersion

or

kOTCfgRemoteAcceptedVersion

. When reading the

version

field, accept either value. When writing the

version

field,

set it to

kOTCfgRemoteDefaultVersion

.

configCount

The number of active Remote Access server configurations.
Must be 1 for the personal server.

configIDs

Array of port configuration IDs. For the personal server,
there can be only one port configuration ID whose value is
zero.

The preference type for this preference is

kOTCfgRemoteServerPref

, which is

defined as

'srvr'

.

Advertising