in reply to Re^2: Crypt::CBC and IO:Socket
in thread Crypt::CBC and IO:Socket

In output from server.pl i have error:

You need to provide the sub. Incoming bytes are fed to that sub. What you do in it is up to you.

In client.pl again I must clicks enter.

Well yeah, that's what <STDIN> means. You'll need Term::ReadKey to read a key at a time from the keyboard.

Replies are listed 'Best First'.
Re^4: Crypt::CBC and IO:Socket
by WMP (Initiate) on Jul 22, 2009 at 21:36 UTC
    What these functions: crypt_ ; decrypt must do? Is this function written properly? Why i'm getting this error:
    Undefined subroutine &main::process_bytes called at ./server.pl line 6 +6
    Line 66:
    process_bytes($cipher->finish());
    And, how can I use IO::Socket::SSL ? There is only http example in manual.

      Why i'm getting this error:

      You need to provide the sub process_bytes. Incoming bytes are fed to that sub. What you do in it is up to you.

      And, how can I use IO::Socket::SSL ? There is only http example in manual.

      Just like IO::Socket::INET. "This module is a true drop-in replacement for IO::Socket::INET that uses SSL to encrypt data before it is transferred to a remote server or client."