home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PowerPlay 1998 July
/
PowerPlay0798.bin
/
Online
/
WINCIMIE
/
SCRIPTS.LIB
/
SECLOG.SCR
< prev
next >
Wrap
Text File
|
1997-05-08
|
2KB
|
86 lines
!
! Copyright (c) 1997
! 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. Returns 0=Success,1=Cancel,2=Failure,3=No Carrier
!
!+V
! "4.0.1"
!-V
on cancel goto SecureCancel;
define %SecFailTemp = "";
wait
%mdm_Failure goto No_Carrier,
"." goto Host_Challenge_Received
until 300;
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 2;
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 300;
goto Timeout;
Response_Refused:
define %SecFailTemp = "User-ID oder Passwort ungⁿltig";
define %ErrorCode = 34;
exit 2;
Handle_Host_Response:
wait
%mdm_Failure goto No_Carrier,
"." goto Host_Response_Received
until 300;
Timeout:
define %SecFailTemp = "Host antwortet nicht auf sicheren Einwahlversuch";
define %ErrorCode = 32;
exit 2;
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 2;
No_Carrier:
exit 3;
Host_Response_Approved:
exit 0;
SecureCancel:
exit 1;