Contents

setPassword(void *, UInt32)

Sets the login password.

Declaration

virtual IOReturn setPassword(
 void *buf,
 UInt32len );

Parameters

  • buf:

    a pointer to the password buffer.

  • len:

    the length in bytes of the password buffer.

Return Value

Returns kIOReturnSuccess on success.

Overview

Sets the login password using a buffer and a length. An alternate version exists that accepts an IOMemoryDescriptor. If the password length is 8 or less the password is copied directly into the login orb. If the length is greater than 8 the buffer is referenced by address in the login ORB. In this case the buffer is not copied and should remain allocated for the duration of the login attempt.

See Also

Miscellaneous