on 17-Mar-2015 13:06
Problem this snippet solves:
Echo service (RFC 862) with encryption.
Code :
when CLIENTSSL_HANDSHAKE { # Trigger collection of the decrypted payload once the SSL or DTLS handshake has been completed successfully SSL::collect } when CLIENTSSL_DATA { # Send decrypted payload back to client SSL::respond [SSL::payload] # Cleanup payload SSL::payload replace 0 [SSL::payload length] "" # Release collected data SSL::release # Collect new data - CLIENTSSL_DATA will be called again SSL::collect }