home *** CD-ROM | disk | FTP | other *** search
- !
- ! Copyright (c) 1995
- ! by CompuServe Incorporated, Columbus, Ohio
- !
- ! The information in this software is subject to change without
- ! notice and should not be construed as a commitment by CompuServe.
- !
- ! SECLOG:
- ! Handles secure login.
- !
- !+V
- ! "3.8"
- !-V
-
- on cancel goto SecureCancel;
- define %SecFailTemp = "";
-
- wait
- %mdm_Failure goto No_Carrier,
- "." goto Host_Challenge_Received
- until 100;
- goto Timeout;
-
- Host_Challenge_Received:
- HostChallenge = %Scanned;
-
- send "RB:^M^J" & %MicroChallenge & ".^M^J";
-
- define %UserResponse = "";
- encode HostChallenge, %MicroChallenge, %Password, %UserResponse;
-
- if %UserResponse <> "" goto Send_Micro_Response;
-
- send "^C";
- define %SecFailTemp = "User-ID oder Passwort ungⁿltig";
- define %ErrorCode = 33;
- exit %Failure;
-
- Send_Micro_Response:
- send "UR:^M^J" & %UserResponse & ".^M^J";
-
- wait
- "No." goto Response_Refused,
- "HR:" goto Handle_Host_Response,
- %mdm_Failure goto No_Carrier
- until 100;
- goto Timeout;
-
- Response_Refused:
- define %SecFailTemp = "User-ID oder Passwort ungⁿltig";
- define %ErrorCode = 34;
- exit %Failure;
-
-
- Handle_Host_Response:
- wait
- %mdm_Failure goto No_Carrier,
- "." goto Host_Response_Received
- until 100;
-
- Timeout:
- define %SecFailTemp = "Host antwortet nicht auf sicheren Einwahlversuch";
- define %ErrorCode = 32;
- exit %Failure;
-
- Host_Response_Received:
- define %HostResponse = %Scanned;
- define %Approved = 0;
-
- approve HostChallenge, %MicroChallenge, %Password, %HostResponse, %Approved;
-
- if %Approved <> 0 goto Host_Response_Approved;
-
- define %SecFailTemp = "Ungⁿltiges sicheres Antwortpaket vom Host erhalten";
- define %ErrorCode = 35;
- exit %Failure;
-
- No_Carrier:
- exit %Fatal;
-
- Host_Response_Approved:
- exit %Success;
-
- SecureCancel:
- exit %Cancel;
-