summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/palmunits/src/password.pp
blob: 011dc98e5e8f0eecf8a5e9c53c632cec7878d8c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{$MACRO ON}

(******************************************************************************
 *
 * Copyright (c) 1994-2000 Palm, Inc. or its subsidiaries.
 * All rights reserved.
 *
 * File: Password.h
 *
 * Release: Palm OS SDK 4.0 (63220)
 *
 * Description:
 *    Password include file
 *
 * History:
 *    4/1/95 - created by Roger Flores
 *
 *****************************************************************************)

unit password;

interface

uses coretraps;

const
  pwdLength = 32;
  pwdEncryptionKeyLength = 64;

function PwdExists: Boolean; syscall sysTrapPwdExists;

function PwdVerify(Astring: PChar): Boolean; syscall sysTrapPwdVerify;

procedure PwdSet(oldPassword, newPassword: PChar); syscall sysTrapPwdSet;

procedure PwdRemove; syscall sysTrapPwdRemove;

implementation

end.