Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » Using the TLS_Handler part 1
Using the TLS_Handler part 1 [message #1766847] Wed, 28 June 2017 06:44
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 807
Registered: January 2015
Senior Member
The TLS_Handler ( git://git.eclipse.org/gitroot/titan/titan.Libraries.TLS.git ) is a function library implemented in TTCN-3/C++ based on openSSL, which can establish an encrypted communication over an unencrypted data channel.
This data channel can be any bidirectional channel: one can use snailmail letters, carrier pigeons, Google datatruck, but we will demonstrate the possibilities of this library
by using the legacy UDP test port which otherwise, unlike the TCP or IPL4 test port, does not have built-in SSL/TLS support.
The TLS_Handler inherits its capabilities from openSSL, so they will strongly depend on the version of openSSL used.

However, as the TLS _Handler is a complex beast , I propose a step-by-step approach.
We'll start with the simplest example, where TLS objects communicate with each other using variables as data channels.

module proba {

import from TLS_Handler all;

type component CT{}

testcase TC1() runs on CT {
  var octetstring a2b:=''O
  var octetstring b2a:=''O
  var TLS_op_result res
  var octetstring recv;
  
  var integer objA
  var integer objB
  
  var TLS_descriptor descr:={
    TLS_method_DTLS,
    omit,
    omit,
    "privatekey.pem",
    "certificate.pem",
    "trusted_certs.pem",
    "ALL",
    "passwd",
     false//true
  }
  var TLS_descriptor descr2:={
    TLS_method_DTLS,
    omit,
    omit,
    "privatekey_2.pem",
    "certificate_2.pem",
    "trusted_certs.pem",
    "ALL",
    "passwd",
     true
  }
  
  res:=TLS_New_object(descr2,objA)
  log(res)
  log(objA)
  res:=TLS_New_object(descr,objB)
  log(res)
  log(objB)

  res:=TLS_Handshake(objA,false,b2a,a2b)  // A is client
  log("Result of handshake A  :",  res)
  while(res!=TLS_OK and res!=TLS_ERROR){
    log("next round")
log("-------------------------------------")
    res:=TLS_Handshake(objB,true,a2b,b2a)
    log("Result of subsequent handshake B :", res) // B is server
    res:=TLS_Handshake(objA,false,b2a,a2b)
    log("Result of subsequent handshake A :", res)
log("-------------------------------------")
  }
    res:=TLS_Handshake(objB,true,a2b,b2a)
    log("Result of final handshake B :",res)

  res:=TLS_Write(objA,'11223344556677'O,b2a,a2b)
    log("Result of write  :",res)
    res:=TLS_Read(objB,recv,a2b,b2a)
    log("Result of read  :",res)
    log("received data  :", recv)
}

control{
  execute(TC1())
}
}//endmodule


The generated log:


11:36:55.966192 - TTCN-3 Test Executor started in single mode. Version: CRL 113 200/6 R2A.
11:36:55.966244 - Maximum number of open file descriptors: 8193,   FD_SETSIZE = 1024
11:36:55.968266 - TTCN Logger v2.2 options: TimeStampFormat:=Time; LogEntityName:=No; LogEventTypes:=No; SourceInfoFormat:=Single; *.FileMask:=LOG_ALL; *.ConsoleMask:=ACTION | ERROR | TESTCASE | STATISTICS_VERDICT | STATISTICS_UNQUALIFIED | WARNING; LogFileSize:=0; LogFileNumber:=1; DiskFullAction:=Error
11:36:55.968287 - Initializing module PreGenRecordOf.
11:36:55.968298 - Initialization of module PreGenRecordOf finished.
11:36:55.968307 - Initializing module TLS_Handler.
11:36:55.968315 - Initialization of module TLS_Handler finished.
11:36:55.968324 - Initializing module TitanLoggerApi.
11:36:55.968332 - Initialization of module TitanLoggerApi finished.
11:36:55.968340 - Initializing module proba.
11:36:55.968349 - Initialization of module proba finished.
11:36:55.968358 proba.ttcn:68 Execution of control part in module proba started.
11:36:55.968399 proba.ttcn:7 Test case TC1 started.
11:36:55.968432 proba.ttcn:7 Initializing variables, timers and ports of component type proba.CT inside testcase TC1.
11:36:55.968466 proba.ttcn:7 Component type proba.CT was initialized.
11:36:55.979864 proba.ttcn:40 TLS_OK (0)
11:36:55.979902 proba.ttcn:41 0
11:36:55.986165 proba.ttcn:43 TLS_OK (0)
11:36:55.986186 proba.ttcn:44 1
11:36:55.986297 proba.ttcn:47 Result of handshake A  :TLS_DATA_TO_SEND (2)
11:36:55.986314 proba.ttcn:49 next round
11:36:55.986323 proba.ttcn:50 -------------------------------------
11:36:55.986449 proba.ttcn:52 Result of subsequent handshake B :TLS_DATA_TO_SEND (2)
11:36:55.988157 proba.ttcn:54 Result of subsequent handshake A :TLS_DATA_TO_SEND (2)
11:36:55.988179 proba.ttcn:55 -------------------------------------
11:36:55.988190 proba.ttcn:49 next round
11:36:55.988199 proba.ttcn:50 -------------------------------------
11:36:55.993493 proba.ttcn:52 Result of subsequent handshake B :TLS_DATA_TO_SEND (2)
11:36:55.993822 proba.ttcn:54 Result of subsequent handshake A :TLS_OK (0)
11:36:55.993840 proba.ttcn:55 -------------------------------------
11:36:55.993858 proba.ttcn:58 Result of final handshake B :TLS_OK (0)
11:36:55.993887 proba.ttcn:61 Result of write  :TLS_OK (0)
11:36:55.993914 proba.ttcn:63 Result of read  :TLS_OK (0)
11:36:55.993927 proba.ttcn:64 received data  :'11223344556677'O
11:36:55.993955 proba.ttcn:64 Terminating component type proba.CT.
11:36:55.993968 proba.ttcn:64 Component type proba.CT was shut down inside testcase TC1.
11:36:55.993980 proba.ttcn:64 Test case TC1 finished. Verdict: none
11:36:55.994008 proba.ttcn:69 Execution of control part in module proba finished.
11:36:55.994031 - Verdict statistics: 1 none (100.00 %), 0 pass (0.00 %), 0 inconc (0.00 %), 0 fail (0.00 %), 0 error (0.00 %).
11:36:55.994089 - Test execution summary: 1 test case was executed. Overall verdict: none
11:36:55.994103 - TTCN-3 Test Executor finished in single mode. 



Client object A writes into a2b and reads from b2a and viceversa:

                  +--------------------------+                     +----------+                  +--------------------------+
                  |                          |                     |          |                  |                          |
                  |                          +---------------------+  a2b     +------------------>                          |
                  |                          |                     |          |                  |                          |
                  |                          |                     |          |                  |                          |
                  |                          |                     +----------+                  |                          |
                  |    objA                  |                                                   |     objB                 |
                  |                          |                                                   |                          |
                  |                          |                                                   |                          |
                  |                          |                                                   |                          |
                  |                          |                                                   |                          |
                  |                          |                                                   |                          |
                  |                          |                     +----------+                  |                          |
                  |                          |                     |          |                  |                          |
                  |                          |                     | b2a      |                  |                          |
                  |                          <---------------------+          <------------------+                          |
                  |                          |                     |          |                  |                          |
                  |                          |                     +----------+                  |                          |
                  +--------------------------+                                                   +--------------------------+




OK, so let's change the configuration a bit to make it more realistic and comprehensible.
We'll move the client to a parallel component, while the server remains on MTC.
The client object will initiate the handshake and the two objects will communicate over the internal ports which connect the two components:

                  +--------------------------+                         +--------------------------+
                  |                          |                         |                          |
                  |                          |                         |                          |
                  |                          |                         |                          |
                  |                          |                         |                          |
                  |                          |                         |                          |
                  |    objA(server)          |                         |     objB(client)         |
                  |                          |                         |                          |
                  |                          |                         |                          |
                  |                          <------------------------->                          |
                  |                          |                         |                          |
                  |                          |                         |                          |
                  |     MTC                  |                         |                          |
                  |                          |                         |   PTC                    |
                  |                          |                         |                          |
                  |                          |                         |                          |
                  |                          |                         |                          |
                  |                          |                         |                          |
                  +--------------------------+                         +--------------------------+




module proba {

import from TLS_Handler all;

type port inPT message
{
  in  octetstring
  out octetstring
} with {extension "internal"}

type component CT{

  var octetstring inputstream:=''O
  var octetstring outputstream:=''O
  var TLS_op_result res
  var octetstring recv;

  var integer objA;
  port inPT p;

}

type component parCT {

  var octetstring instream:=''O
  var octetstring outstream:=''O
  var TLS_op_result res
  var octetstring recv;
  var integer objB
  port inPT p;

} 

function f_ParBehaviour()  runs on parCT

{
  var TLS_descriptor descr2:={
    TLS_method_DTLS,
    omit,
    omit,
    "privatekey_2.pem",
    "certificate_2.pem",
    "trusted_certs.pem",
    "ALL",
    "passwd",
    true
  }

  res:=TLS_New_object(descr2,objB)
  log(res)
  log(objB)

  res:=TLS_Handshake(objB,false,instream,outstream)  // B is client

  log("Result of first handshake B :", res) // B is client
  log("instream  :",instream)
  log("outstream   :",outstream )

  while(res!=TLS_OK and res!=TLS_ERROR) {

    log("next round")
    log("-------------------------------------")

    if(res==TLS_DATA_TO_SEND) {
      p.send(outstream)
      res:=TLS_Handshake(objB,false,instream,outstream)  // B is client

      log("Result of subsequent handshake B :", res) // B is client
      log("instream  :",instream)
      log("outstream   :",outstream )
    }
    else if (res==TLS_NEED_MORE_DATA)
    {
      if (lengthof(outstream) >0)
      {
        p.send(outstream)
      }

      p.receive(?) -> value instream {}

      res:=TLS_Handshake(objB,false,instream,outstream)  // B is client

      log("Result of subsequent handshake B :", res) // B is client
      log("instream  :",instream)
      log("outstream   :",outstream )
    }



  }//endwhile

  p.receive(?) -> value instream {}

  res:=TLS_Read(objB,recv,instream,outstream)
  log("Result of read  :",res)
  log("received data  :", recv)
  log("instream  :",instream)
  log("outstream   :",outstream )


}//endfunction


testcase TC1() runs on CT {

  var octetstring v_os:=char2oct("Our Titanic overlords are here!")
  var parCT v_parCT := parCT.create;  


  connect(self:p, v_parCT:p)
  v_parCT.start(f_ParBehaviour())

  var TLS_descriptor descr:={
    TLS_method_DTLS,
    omit,
    omit,
    "privatekey.pem",
    "certificate.pem",
    "trusted_certs.pem",
    "ALL",
    "passwd",
    false//true
  }

  res:=TLS_New_object(descr,objA)
  log(res)
  log(objA)


  res:=TLS_Handshake(objA,true,inputstream,outputstream)
  log("Result of subsequent handshake A :", res) // A is server
  log("inputstream  :",inputstream)
  log("outputstream   :",outputstream )


  while(res!=TLS_OK and res!=TLS_ERROR) {

    if(res==TLS_NEED_MORE_DATA )
    {
      if (lengthof(outputstream)>0  )
      {
        p.send(outputstream)
      }

      p.receive(?) -> value inputstream {}

      res:=TLS_Handshake(objA,true,inputstream,outputstream)
      log("Result of subsequent handshake A :", res) // A is server
      log("inputstream  :",inputstream)
      log("outputstream   :",outputstream )
    }

    else  if(res==TLS_DATA_TO_SEND) {

      p.send(outputstream)

      res:=TLS_Handshake(objA,true,inputstream,outputstream)
      log("Result of subsequent handshake A :", res) // A is server
      log("inputstream  :",inputstream)
      log("outputstream   :",outputstream )

    }

  } //endwhile


  res:=TLS_Write(objA,v_os,inputstream,outputstream)
  log("Result of write  :",res)
  log("inputstream  :",inputstream)
  log("outputstream   :",outputstream )


  if (lengthof(outputstream)>0  )
  {
    p.send(outputstream)
  }
}

control{
  execute(TC1())
}

}


The MTC (server side) log:

08:57:34.056116 TTCN-3 Main Test Component started on esekilxxen1844. Version: CRL 113 200/6 R2A.
08:57:34.056326 TTCN Logger v2.2 options: TimeStampFormat:=Time; LogEntityName:=No; LogEventTypes:=No; SourceInfoFormat:=None; *.FileMask:=LOG_ALL; *.ConsoleMask:=ACTION | ERROR | TESTCASE | STATISTICS_VERDICT | STATISTICS_UNQUALIFIED | WARNING; LogFileSize:=0; LogFileNumber:=1; DiskFullAction:=Error
08:57:34.056452 Connected to MC.
08:57:34.063654 Executing control part of module proba.
08:57:34.063744 Execution of control part in module proba started.
08:57:34.063860 Test case TC1 started.
08:57:34.063923 Initializing variables, timers and ports of component type proba.CT inside testcase TC1.
08:57:34.063977 Port p was started.
08:57:34.064008 Component type proba.CT was initialized.
08:57:34.064028 Creating new PTC with component type proba.parCT.
08:57:34.069677 PTC was created. Component reference: 3, alive: no, type: proba.parCT.
08:57:34.069719 Connecting ports mtc:p and 3:p.
08:57:34.069907 Port p is waiting for connection from 3:p on UNIX pathname /tmp/ttcn3-portconn-e80eaa24.
08:57:34.070116 Port p has accepted the connection from 3:p.
08:57:34.070172 Connect operation on mtc:p and 3:p finished.
08:57:34.070203 Starting function f_ParBehaviour() on component 3.
08:57:34.070254 Function was started.
08:57:34.079583 TLS_OK (0)
08:57:34.079676 0
08:57:34.079838 Result of subsequent handshake A :TLS_NEED_MORE_DATA (1)
08:57:34.079869 inputstream  :''O
08:57:34.079896 outputstream   :''O
08:57:34.080522 Message enqueued on p from 3 octetstring : '16FEFF000000000000000000770100006B000000000000006BFEFF594CBBDE2DCCFA40CC79B76997DA0F7D5BAB5EC9ED79B709BFD518CB9CAB12B50000003C00890088008700840046004500440041003A003900380035003400330032002F001B001A0019001600150014001300120011000A00090008000600FF020100000400230000'O id 1
08:57:34.080575 Receive operation on port p succeeded, message from 3: octetstring : '16FEFF000000000000000000770100006B000000000000006BFEFF594CBBDE2DCCFA40CC79B76997DA0F7D5BAB5EC9ED79B709BFD518CB9CAB12B50000003C00890088008700840046004500440041003A003900380035003400330032002F001B001A0019001600150014001300120011000A00090008000600FF020100000400230000'O id 1
08:57:34.080609 Message with id 1 was extracted from the queue of p.
08:57:34.080735 Result of subsequent handshake A :TLS_DATA_TO_SEND (2)
08:57:34.080756 inputstream  :'16FEFF000000000000000000770100006B000000000000006BFEFF594CBBDE2DCCFA40CC79B76997DA0F7D5BAB5EC9ED79B709BFD518CB9CAB12B50000003C00890088008700840046004500440041003A003900380035003400330032002F001B001A0019001600150014001300120011000A00090008000600FF020100000400230000'O
08:57:34.080874 outputstream   :'16FEFF000000000000000000590200004D000000000000004DFEFF594CBBDE30E201D6DDA331312126C96AB806B1F82DFD0B965442162500000000201831327EED090BE69EF258221F505F630C09D471502256BB5586C59CA435A9600084010005FF0100010016FEFF000000000000000103C60B0003BA00010000000003BA0003B70003B4308203B030820298020900CB071441CAF5AECF300D06092A864886F70D0101050500308199310B3009060355040613024855310D300B06035504081304427564613111300F06035504071308427564617065737431193017060355040A13104572696373736F6E2048756E67617279310C300A060355040B1303544343311530130603550403130C456C656D6572204C656C696B3128302606092A864886F70D0109011619656C656D65722E6C656C696B406572696373736F6E2E636F6D301E170D3137303230323134343833385A170D3138303230323134343833385A308199310B3009060355040613024855310D300B06035504081304427564613111300F06035504071308427564617065737431193017060355040A13104572696373736F6E2048756E67617279310C300A060355040B1303544343311530130603550403130C456C656D6572204C656C696B3128302606092A864886F70D0109011619656C656D65722E6C656C696B406572696373736F6E2E636F6D30820122300D06092A864886F70D01010105000382010F003082010A0282010100E27A154CA149D7431FBAC54ACFE7ABC638F6115891A0D41165C66AFAEC80E6C652711B7FC7DBBA12A256FCBBDF7DA0DE0833B9E46EF14C0975551906855B1CE17174F23C8AF23414686F02A4DE8B5AE25CEFA388BC21FB494462843D64D3FB23670DE984A55832FC481D7AE375475018DA7E35D9D9F739AC8C0A99BCE87758801FC188848C6DA54A82985E13CA55906F270AA5B4FEAE62B3C45C06AC7D0F2F02E4D92747074B7BCFA7C4EE6BEE23B9E97295E382FFE50E7BD25AAB4164E7AD9C93C2D681DC870BED400218BC141839D098791E016349F2F629E843C632E999FD2D3BAA88FF078EB998CB269DE98209864A0DDC3A65A3DEEFC22037D049F5B4CD0203010001300D06092A864886F70D01010505000382010100A25AB4AE0D55C1A7C6BB339B89412BC850FCC0AEDB152348F9AF19A79E1FFE907E0B6BA5E2746730E172B3A8F9BADB73AC945CC418931C3EB7CBA36DB06D5AA7A7D3DBF3C4CB587840F0F17B7105D2CC6C46D60CAB777E8233CC2302C9BA56C4E384FAEE8C3AB6C3ECC6F235511066FF69E3B9EEEC4E87B1325164D77A4727DF4A4860D1C782E57F98A295C42165A794A9E8AF6676FAB6714D6A038B4C828632564C44064EBA3E775A8230411759961B661FE7181F72D247581FABA9570AFFEF4235E833EF616D34ED04ACAF003DACD3DD1E3F43D6368457594CEF507A0245F7C64ED3AA20A7BA4A4F11584F5A5D9E7BABEC35EDB97CC498BD31C4B56F2AE67016FEFF0000000000000002000C0E0000000002000000000000'O
08:57:34.081789 Sent on p to 3 octetstring : '16FEFF000000000000000000590200004D000000000000004DFEFF594CBBDE30E201D6DDA331312126C96AB806B1F82DFD0B965442162500000000201831327EED090BE69EF258221F505F630C09D471502256BB5586C59CA435A9600084010005FF0100010016FEFF000000000000000103C60B0003BA00010000000003BA0003B70003B4308203B030820298020900CB071441CAF5AECF300D06092A864886F70D0101050500308199310B3009060355040613024855310D300B06035504081304427564613111300F06035504071308427564617065737431193017060355040A13104572696373736F6E2048756E67617279310C300A060355040B1303544343311530130603550403130C456C656D6572204C656C696B3128302606092A864886F70D0109011619656C656D65722E6C656C696B406572696373736F6E2E636F6D301E170D3137303230323134343833385A170D3138303230323134343833385A308199310B3009060355040613024855310D300B06035504081304427564613111300F06035504071308427564617065737431193017060355040A13104572696373736F6E2048756E67617279310C300A060355040B1303544343311530130603550403130C456C656D6572204C656C696B3128302606092A864886F70D0109011619656C656D65722E6C656C696B406572696373736F6E2E636F6D30820122300D06092A864886F70D01010105000382010F003082010A0282010100E27A154CA149D7431FBAC54ACFE7ABC638F6115891A0D41165C66AFAEC80E6C652711B7FC7DBBA12A256FCBBDF7DA0DE0833B9E46EF14C0975551906855B1CE17174F23C8AF23414686F02A4DE8B5AE25CEFA388BC21FB494462843D64D3FB23670DE984A55832FC481D7AE375475018DA7E35D9D9F739AC8C0A99BCE87758801FC188848C6DA54A82985E13CA55906F270AA5B4FEAE62B3C45C06AC7D0F2F02E4D92747074B7BCFA7C4EE6BEE23B9E97295E382FFE50E7BD25AAB4164E7AD9C93C2D681DC870BED400218BC141839D098791E016349F2F629E843C632E999FD2D3BAA88FF078EB998CB269DE98209864A0DDC3A65A3DEEFC22037D049F5B4CD0203010001300D06092A864886F70D01010505000382010100A25AB4AE0D55C1A7C6BB339B89412BC850FCC0AEDB152348F9AF19A79E1FFE907E0B6BA5E2746730E172B3A8F9BADB73AC945CC418931C3EB7CBA36DB06D5AA7A7D3DBF3C4CB587840F0F17B7105D2CC6C46D60CAB777E8233CC2302C9BA56C4E384FAEE8C3AB6C3ECC6F235511066FF69E3B9EEEC4E87B1325164D77A4727DF4A4860D1C782E57F98A295C42165A794A9E8AF6676FAB6714D6A038B4C828632564C44064EBA3E775A8230411759961B661FE7181F72D247581FABA9570AFFEF4235E833EF616D34ED04ACAF003DACD3DD1E3F43D6368457594CEF507A0245F7C64ED3AA20A7BA4A4F11584F5A5D9E7BABEC35EDB97CC498BD31C4B56F2AE67016FEFF0000000000000002000C0E0000000002000000000000'O
08:57:34.081842 Result of subsequent handshake A :TLS_NEED_MORE_DATA (1)
08:57:34.081869 inputstream  :'16FEFF000000000000000000770100006B000000000000006BFEFF594CBBDE2DCCFA40CC79B76997DA0F7D5BAB5EC9ED79B709BFD518CB9CAB12B50000003C00890088008700840046004500440041003A003900380035003400330032002F001B001A0019001600150014001300120011000A00090008000600FF020100000400230000'O
08:57:34.082032 outputstream   :''O
08:57:34.084353 Message enqueued on p from 3 octetstring : '16FEFF0000000000000001010E1000010200010000000001020100E0D5D303E852CFBE308B8D16D697B80354CB3D8AF5210B90441E485B3D917D0890B07E4414739DABF7FB9977B4F8DE27CF6C3055524BB213B4C2A87F0D2D2C4AC92962F025F4075A24196026C66843064F998FC0F355747FAC1B7D40DE5D3C919DB1AE447365B701D89DF742BCB4445886B26BF1C398056FC00E174225100198BABCB4CBA8DAF10B3B71D801F16506290F6E3D8FF64439F5B56E6E8AAED5143C9B016F156E4B06490F93770570E1148EB91B801C08A63738C031DEA90901336EBCF8B8C7139ADCC1907ED8895C1D33670F602EEA34EE19C4DA1B09DD851E3AE85CEAF6A79F205E1FDCD8F1BF2E1B4A10125B634D76574084D9EEA65F386DC24314FEFF000000000000000200010116FEFF00010000000000000050C5E61B5FEEF25F55059EEA224439196D2E9BE7B2E8A8793414905877316F5A8F5BF9D54677731F7E77E0FBB03AE2F5753E4887503649591385D531FF70C7C2730CAEB79BBAB2EC32B5E92C7CBAB13E2B'O id 2
08:57:34.084423 Receive operation on port p succeeded, message from 3: octetstring : '16FEFF0000000000000001010E1000010200010000000001020100E0D5D303E852CFBE308B8D16D697B80354CB3D8AF5210B90441E485B3D917D0890B07E4414739DABF7FB9977B4F8DE27CF6C3055524BB213B4C2A87F0D2D2C4AC92962F025F4075A24196026C66843064F998FC0F355747FAC1B7D40DE5D3C919DB1AE447365B701D89DF742BCB4445886B26BF1C398056FC00E174225100198BABCB4CBA8DAF10B3B71D801F16506290F6E3D8FF64439F5B56E6E8AAED5143C9B016F156E4B06490F93770570E1148EB91B801C08A63738C031DEA90901336EBCF8B8C7139ADCC1907ED8895C1D33670F602EEA34EE19C4DA1B09DD851E3AE85CEAF6A79F205E1FDCD8F1BF2E1B4A10125B634D76574084D9EEA65F386DC24314FEFF000000000000000200010116FEFF00010000000000000050C5E61B5FEEF25F55059EEA224439196D2E9BE7B2E8A8793414905877316F5A8F5BF9D54677731F7E77E0FBB03AE2F5753E4887503649591385D531FF70C7C2730CAEB79BBAB2EC32B5E92C7CBAB13E2B'O id 2
08:57:34.084453 Message with id 2 was extracted from the queue of p.
08:57:34.090370 Result of subsequent handshake A :TLS_DATA_TO_SEND (2)
08:57:34.090439 inputstream  :'16FEFF0000000000000001010E1000010200010000000001020100E0D5D303E852CFBE308B8D16D697B80354CB3D8AF5210B90441E485B3D917D0890B07E4414739DABF7FB9977B4F8DE27CF6C3055524BB213B4C2A87F0D2D2C4AC92962F025F4075A24196026C66843064F998FC0F355747FAC1B7D40DE5D3C919DB1AE447365B701D89DF742BCB4445886B26BF1C398056FC00E174225100198BABCB4CBA8DAF10B3B71D801F16506290F6E3D8FF64439F5B56E6E8AAED5143C9B016F156E4B06490F93770570E1148EB91B801C08A63738C031DEA90901336EBCF8B8C7139ADCC1907ED8895C1D33670F602EEA34EE19C4DA1B09DD851E3AE85CEAF6A79F205E1FDCD8F1BF2E1B4A10125B634D76574084D9EEA65F386DC24314FEFF000000000000000200010116FEFF00010000000000000050C5E61B5FEEF25F55059EEA224439196D2E9BE7B2E8A8793414905877316F5A8F5BF9D54677731F7E77E0FBB03AE2F5753E4887503649591385D531FF70C7C2730CAEB79BBAB2EC32B5E92C7CBAB13E2B'O
08:57:34.090754 outputstream   :'14FEFF000000000000000300010116FEFF000100000000000000503BE7D141C1E526040A117956F6EE56D591D19C2A8EAA332B801B8DF73CCC892164626B296A198A9D3C8E24DE03F45019E3246BF6DC5A168B4F55F44B5D4E98683922596998760C1890DC5F67E9E3014C'O
08:57:34.090854 Sent on p to 3 octetstring : '14FEFF000000000000000300010116FEFF000100000000000000503BE7D141C1E526040A117956F6EE56D591D19C2A8EAA332B801B8DF73CCC892164626B296A198A9D3C8E24DE03F45019E3246BF6DC5A168B4F55F44B5D4E98683922596998760C1890DC5F67E9E3014C'O
08:57:34.090900 Result of subsequent handshake A :TLS_OK (0)
08:57:34.090925 inputstream  :'16FEFF0000000000000001010E1000010200010000000001020100E0D5D303E852CFBE308B8D16D697B80354CB3D8AF5210B90441E485B3D917D0890B07E4414739DABF7FB9977B4F8DE27CF6C3055524BB213B4C2A87F0D2D2C4AC92962F025F4075A24196026C66843064F998FC0F355747FAC1B7D40DE5D3C919DB1AE447365B701D89DF742BCB4445886B26BF1C398056FC00E174225100198BABCB4CBA8DAF10B3B71D801F16506290F6E3D8FF64439F5B56E6E8AAED5143C9B016F156E4B06490F93770570E1148EB91B801C08A63738C031DEA90901336EBCF8B8C7139ADCC1907ED8895C1D33670F602EEA34EE19C4DA1B09DD851E3AE85CEAF6A79F205E1FDCD8F1BF2E1B4A10125B634D76574084D9EEA65F386DC24314FEFF000000000000000200010116FEFF00010000000000000050C5E61B5FEEF25F55059EEA224439196D2E9BE7B2E8A8793414905877316F5A8F5BF9D54677731F7E77E0FBB03AE2F5753E4887503649591385D531FF70C7C2730CAEB79BBAB2EC32B5E92C7CBAB13E2B'O
08:57:34.091307 outputstream   :''O
08:57:34.091380 Result of write  :TLS_OK (0)
08:57:34.091408 inputstream  :'16FEFF0000000000000001010E1000010200010000000001020100E0D5D303E852CFBE308B8D16D697B80354CB3D8AF5210B90441E485B3D917D0890B07E4414739DABF7FB9977B4F8DE27CF6C3055524BB213B4C2A87F0D2D2C4AC92962F025F4075A24196026C66843064F998FC0F355747FAC1B7D40DE5D3C919DB1AE447365B701D89DF742BCB4445886B26BF1C398056FC00E174225100198BABCB4CBA8DAF10B3B71D801F16506290F6E3D8FF64439F5B56E6E8AAED5143C9B016F156E4B06490F93770570E1148EB91B801C08A63738C031DEA90901336EBCF8B8C7139ADCC1907ED8895C1D33670F602EEA34EE19C4DA1B09DD851E3AE85CEAF6A79F205E1FDCD8F1BF2E1B4A10125B634D76574084D9EEA65F386DC24314FEFF000000000000000200010116FEFF00010000000000000050C5E61B5FEEF25F55059EEA224439196D2E9BE7B2E8A8793414905877316F5A8F5BF9D54677731F7E77E0FBB03AE2F5753E4887503649591385D531FF70C7C2730CAEB79BBAB2EC32B5E92C7CBAB13E2B'O
08:57:34.091809 outputstream   :'17FEFF0001000000000001005020AD2735E4E8D8C7F5F5D458475B908D4B5C5935A8064BD6D4F184664688F4910412078EE5424FA3BB5D2EB91EE14BDF379D8CED3380B45C61B561F37E9EAC7440BF7F90FF4AA4C3343168ACF53F78E2'O
08:57:34.092007 Sent on p to 3 octetstring : '17FEFF0001000000000001005020AD2735E4E8D8C7F5F5D458475B908D4B5C5935A8064BD6D4F184664688F4910412078EE5424FA3BB5D2EB91EE14BDF379D8CED3380B45C61B561F37E9EAC7440BF7F90FF4AA4C3343168ACF53F78E2'O
08:57:34.092050 Terminating component type proba.CT.
08:57:34.092077 Removing unterminated connection between port p and 3:p.
08:57:34.092168 Port p was stopped.
08:57:34.092200 Component type proba.CT was shut down inside testcase TC1.
08:57:34.092222 Waiting for PTCs to finish.
08:57:34.092610 Setting final verdict of the test case.
08:57:34.092648 Local verdict of MTC: none
08:57:34.092677 Local verdict of PTC with component reference 3: none (none -> none)
08:57:34.092702 Test case TC1 finished. Verdict: none
08:57:34.092735 Execution of control part in module proba finished.
08:57:34.103577 Verdict statistics: 1 none (100.00 %), 0 pass (0.00 %), 0 inconc (0.00 %), 0 fail (0.00 %), 0 error (0.00 %).
08:57:34.103746 Test execution summary: 1 test case was executed. Overall verdict: none
08:57:34.103780 Exit was requested from MC. Terminating MTC. 



The PTC #3 (Client side ) log:


08:57:34.069263 TTCN-3 Parallel Test Component started on esekilxxen1844. Component reference: 3, component type: proba.parCT. Version: CRL 113 200/6 R2A.
08:57:34.069465 TTCN Logger v2.2 options: TimeStampFormat:=Time; LogEntityName:=No; LogEventTypes:=No; SourceInfoFormat:=None; *.FileMask:=LOG_ALL; *.ConsoleMask:=ACTION | ERROR | TESTCASE | STATISTICS_VERDICT | STATISTICS_UNQUALIFIED | WARNING; LogFileSize:=0; LogFileNumber:=1; DiskFullAction:=Error
08:57:34.069583 Connected to MC.
08:57:34.069628 Initializing variables, timers and ports of component type proba.parCT inside testcase TC1.
08:57:34.069701 Port p was started.
08:57:34.069749 Component type proba.parCT was initialized.
08:57:34.070039 Port p has established the connection with mtc:p using transport type UNIX.
08:57:34.070262 Starting function f_ParBehaviour().
08:57:34.080033 TLS_OK (0)
08:57:34.080074 0
08:57:34.080219 Result of first handshake B :TLS_DATA_TO_SEND (2)
08:57:34.080240 instream  :''O
08:57:34.080257 outstream   :'16FEFF000000000000000000770100006B000000000000006BFEFF594CBBDE2DCCFA40CC79B76997DA0F7D5BAB5EC9ED79B709BFD518CB9CAB12B50000003C00890088008700840046004500440041003A003900380035003400330032002F001B001A0019001600150014001300120011000A00090008000600FF020100000400230000'O
08:57:34.080388 next round
08:57:34.080400 -------------------------------------
08:57:34.080424 Sent on p to mtc octetstring : '16FEFF000000000000000000770100006B000000000000006BFEFF594CBBDE2DCCFA40CC79B76997DA0F7D5BAB5EC9ED79B709BFD518CB9CAB12B50000003C00890088008700840046004500440041003A003900380035003400330032002F001B001A0019001600150014001300120011000A00090008000600FF020100000400230000'O
08:57:34.080474 Result of subsequent handshake B :TLS_NEED_MORE_DATA (1)
08:57:34.080502 instream  :''O
08:57:34.080523 outstream   :''O
08:57:34.080543 next round
08:57:34.080561 -------------------------------------
08:57:34.081931 Message enqueued on p from mtc octetstring : '16FEFF000000000000000000590200004D000000000000004DFEFF594CBBDE30E201D6DDA331312126C96AB806B1F82DFD0B965442162500000000201831327EED090BE69EF258221F505F630C09D471502256BB5586C59CA435A9600084010005FF0100010016FEFF000000000000000103C60B0003BA00010000000003BA0003B70003B4308203B030820298020900CB071441CAF5AECF300D06092A864886F70D0101050500308199310B3009060355040613024855310D300B06035504081304427564613111300F06035504071308427564617065737431193017060355040A13104572696373736F6E2048756E67617279310C300A060355040B1303544343311530130603550403130C456C656D6572204C656C696B3128302606092A864886F70D0109011619656C656D65722E6C656C696B406572696373736F6E2E636F6D301E170D3137303230323134343833385A170D3138303230323134343833385A308199310B3009060355040613024855310D300B06035504081304427564613111300F06035504071308427564617065737431193017060355040A13104572696373736F6E2048756E67617279310C300A060355040B1303544343311530130603550403130C456C656D6572204C656C696B3128302606092A864886F70D0109011619656C656D65722E6C656C696B406572696373736F6E2E636F6D30820122300D06092A864886F70D01010105000382010F003082010A0282010100E27A154CA149D7431FBAC54ACFE7ABC638F6115891A0D41165C66AFAEC80E6C652711B7FC7DBBA12A256FCBBDF7DA0DE0833B9E46EF14C0975551906855B1CE17174F23C8AF23414686F02A4DE8B5AE25CEFA388BC21FB494462843D64D3FB23670DE984A55832FC481D7AE375475018DA7E35D9D9F739AC8C0A99BCE87758801FC188848C6DA54A82985E13CA55906F270AA5B4FEAE62B3C45C06AC7D0F2F02E4D92747074B7BCFA7C4EE6BEE23B9E97295E382FFE50E7BD25AAB4164E7AD9C93C2D681DC870BED400218BC141839D098791E016349F2F629E843C632E999FD2D3BAA88FF078EB998CB269DE98209864A0DDC3A65A3DEEFC22037D049F5B4CD0203010001300D06092A864886F70D01010505000382010100A25AB4AE0D55C1A7C6BB339B89412BC850FCC0AEDB152348F9AF19A79E1FFE907E0B6BA5E2746730E172B3A8F9BADB73AC945CC418931C3EB7CBA36DB06D5AA7A7D3DBF3C4CB587840F0F17B7105D2CC6C46D60CAB777E8233CC2302C9BA56C4E384FAEE8C3AB6C3ECC6F235511066FF69E3B9EEEC4E87B1325164D77A4727DF4A4860D1C782E57F98A295C42165A794A9E8AF6676FAB6714D6A038B4C828632564C44064EBA3E775A8230411759961B661FE7181F72D247581FABA9570AFFEF4235E833EF616D34ED04ACAF003DACD3DD1E3F43D6368457594CEF507A0245F7C64ED3AA20A7BA4A4F11584F5A5D9E7BABEC35EDB97CC498BD31C4B56F2AE67016FEFF0000000000000002000C0E0000000002000000000000'O id 1
08:57:34.082075 Receive operation on port p succeeded, message from mtc: octetstring : '16FEFF000000000000000000590200004D000000000000004DFEFF594CBBDE30E201D6DDA331312126C96AB806B1F82DFD0B965442162500000000201831327EED090BE69EF258221F505F630C09D471502256BB5586C59CA435A9600084010005FF0100010016FEFF000000000000000103C60B0003BA00010000000003BA0003B70003B4308203B030820298020900CB071441CAF5AECF300D06092A864886F70D0101050500308199310B3009060355040613024855310D300B06035504081304427564613111300F06035504071308427564617065737431193017060355040A13104572696373736F6E2048756E67617279310C300A060355040B1303544343311530130603550403130C456C656D6572204C656C696B3128302606092A864886F70D0109011619656C656D65722E6C656C696B406572696373736F6E2E636F6D301E170D3137303230323134343833385A170D3138303230323134343833385A308199310B3009060355040613024855310D300B06035504081304427564613111300F06035504071308427564617065737431193017060355040A13104572696373736F6E2048756E67617279310C300A060355040B1303544343311530130603550403130C456C656D6572204C656C696B3128302606092A864886F70D0109011619656C656D65722E6C656C696B406572696373736F6E2E636F6D30820122300D06092A864886F70D01010105000382010F003082010A0282010100E27A154CA149D7431FBAC54ACFE7ABC638F6115891A0D41165C66AFAEC80E6C652711B7FC7DBBA12A256FCBBDF7DA0DE0833B9E46EF14C0975551906855B1CE17174F23C8AF23414686F02A4DE8B5AE25CEFA388BC21FB494462843D64D3FB23670DE984A55832FC481D7AE375475018DA7E35D9D9F739AC8C0A99BCE87758801FC188848C6DA54A82985E13CA55906F270AA5B4FEAE62B3C45C06AC7D0F2F02E4D92747074B7BCFA7C4EE6BEE23B9E97295E382FFE50E7BD25AAB4164E7AD9C93C2D681DC870BED400218BC141839D098791E016349F2F629E843C632E999FD2D3BAA88FF078EB998CB269DE98209864A0DDC3A65A3DEEFC22037D049F5B4CD0203010001300D06092A864886F70D01010505000382010100A25AB4AE0D55C1A7C6BB339B89412BC850FCC0AEDB152348F9AF19A79E1FFE907E0B6BA5E2746730E172B3A8F9BADB73AC945CC418931C3EB7CBA36DB06D5AA7A7D3DBF3C4CB587840F0F17B7105D2CC6C46D60CAB777E8233CC2302C9BA56C4E384FAEE8C3AB6C3ECC6F235511066FF69E3B9EEEC4E87B1325164D77A4727DF4A4860D1C782E57F98A295C42165A794A9E8AF6676FAB6714D6A038B4C828632564C44064EBA3E775A8230411759961B661FE7181F72D247581FABA9570AFFEF4235E833EF616D34ED04ACAF003DACD3DD1E3F43D6368457594CEF507A0245F7C64ED3AA20A7BA4A4F11584F5A5D9E7BABEC35EDB97CC498BD31C4B56F2AE67016FEFF0000000000000002000C0E0000000002000000000000'O id 1
08:57:34.082111 Message with id 1 was extracted from the queue of p.
08:57:34.083046 Result of subsequent handshake B :TLS_DATA_TO_SEND (2)
08:57:34.083073 instream  :'16FEFF000000000000000000590200004D000000000000004DFEFF594CBBDE30E201D6DDA331312126C96AB806B1F82DFD0B965442162500000000201831327EED090BE69EF258221F505F630C09D471502256BB5586C59CA435A9600084010005FF0100010016FEFF000000000000000103C60B0003BA00010000000003BA0003B70003B4308203B030820298020900CB071441CAF5AECF300D06092A864886F70D0101050500308199310B3009060355040613024855310D300B06035504081304427564613111300F06035504071308427564617065737431193017060355040A13104572696373736F6E2048756E67617279310C300A060355040B1303544343311530130603550403130C456C656D6572204C656C696B3128302606092A864886F70D0109011619656C656D65722E6C656C696B406572696373736F6E2E636F6D301E170D3137303230323134343833385A170D3138303230323134343833385A308199310B3009060355040613024855310D300B06035504081304427564613111300F06035504071308427564617065737431193017060355040A13104572696373736F6E2048756E67617279310C300A060355040B1303544343311530130603550403130C456C656D6572204C656C696B3128302606092A864886F70D0109011619656C656D65722E6C656C696B406572696373736F6E2E636F6D30820122300D06092A864886F70D01010105000382010F003082010A0282010100E27A154CA149D7431FBAC54ACFE7ABC638F6115891A0D41165C66AFAEC80E6C652711B7FC7DBBA12A256FCBBDF7DA0DE0833B9E46EF14C0975551906855B1CE17174F23C8AF23414686F02A4DE8B5AE25CEFA388BC21FB494462843D64D3FB23670DE984A55832FC481D7AE375475018DA7E35D9D9F739AC8C0A99BCE87758801FC188848C6DA54A82985E13CA55906F270AA5B4FEAE62B3C45C06AC7D0F2F02E4D92747074B7BCFA7C4EE6BEE23B9E97295E382FFE50E7BD25AAB4164E7AD9C93C2D681DC870BED400218BC141839D098791E016349F2F629E843C632E999FD2D3BAA88FF078EB998CB269DE98209864A0DDC3A65A3DEEFC22037D049F5B4CD0203010001300D06092A864886F70D01010505000382010100A25AB4AE0D55C1A7C6BB339B89412BC850FCC0AEDB152348F9AF19A79E1FFE907E0B6BA5E2746730E172B3A8F9BADB73AC945CC418931C3EB7CBA36DB06D5AA7A7D3DBF3C4CB587840F0F17B7105D2CC6C46D60CAB777E8233CC2302C9BA56C4E384FAEE8C3AB6C3ECC6F235511066FF69E3B9EEEC4E87B1325164D77A4727DF4A4860D1C782E57F98A295C42165A794A9E8AF6676FAB6714D6A038B4C828632564C44064EBA3E775A8230411759961B661FE7181F72D247581FABA9570AFFEF4235E833EF616D34ED04ACAF003DACD3DD1E3F43D6368457594CEF507A0245F7C64ED3AA20A7BA4A4F11584F5A5D9E7BABEC35EDB97CC498BD31C4B56F2AE67016FEFF0000000000000002000C0E0000000002000000000000'O
08:57:34.083975 outstream   :'16FEFF0000000000000001010E1000010200010000000001020100E0D5D303E852CFBE308B8D16D697B80354CB3D8AF5210B90441E485B3D917D0890B07E4414739DABF7FB9977B4F8DE27CF6C3055524BB213B4C2A87F0D2D2C4AC92962F025F4075A24196026C66843064F998FC0F355747FAC1B7D40DE5D3C919DB1AE447365B701D89DF742BCB4445886B26BF1C398056FC00E174225100198BABCB4CBA8DAF10B3B71D801F16506290F6E3D8FF64439F5B56E6E8AAED5143C9B016F156E4B06490F93770570E1148EB91B801C08A63738C031DEA90901336EBCF8B8C7139ADCC1907ED8895C1D33670F602EEA34EE19C4DA1B09DD851E3AE85CEAF6A79F205E1FDCD8F1BF2E1B4A10125B634D76574084D9EEA65F386DC24314FEFF000000000000000200010116FEFF00010000000000000050C5E61B5FEEF25F55059EEA224439196D2E9BE7B2E8A8793414905877316F5A8F5BF9D54677731F7E77E0FBB03AE2F5753E4887503649591385D531FF70C7C2730CAEB79BBAB2EC32B5E92C7CBAB13E2B'O
08:57:34.084232 next round
08:57:34.084245 -------------------------------------
08:57:34.084274 Sent on p to mtc octetstring : '16FEFF0000000000000001010E1000010200010000000001020100E0D5D303E852CFBE308B8D16D697B80354CB3D8AF5210B90441E485B3D917D0890B07E4414739DABF7FB9977B4F8DE27CF6C3055524BB213B4C2A87F0D2D2C4AC92962F025F4075A24196026C66843064F998FC0F355747FAC1B7D40DE5D3C919DB1AE447365B701D89DF742BCB4445886B26BF1C398056FC00E174225100198BABCB4CBA8DAF10B3B71D801F16506290F6E3D8FF64439F5B56E6E8AAED5143C9B016F156E4B06490F93770570E1148EB91B801C08A63738C031DEA90901336EBCF8B8C7139ADCC1907ED8895C1D33670F602EEA34EE19C4DA1B09DD851E3AE85CEAF6A79F205E1FDCD8F1BF2E1B4A10125B634D76574084D9EEA65F386DC24314FEFF000000000000000200010116FEFF00010000000000000050C5E61B5FEEF25F55059EEA224439196D2E9BE7B2E8A8793414905877316F5A8F5BF9D54677731F7E77E0FBB03AE2F5753E4887503649591385D531FF70C7C2730CAEB79BBAB2EC32B5E92C7CBAB13E2B'O
08:57:34.084318 Result of subsequent handshake B :TLS_NEED_MORE_DATA (1)
08:57:34.084344 instream  :'16FEFF000000000000000000590200004D000000000000004DFEFF594CBBDE30E201D6DDA331312126C96AB806B1F82DFD0B965442162500000000201831327EED090BE69EF258221F505F630C09D471502256BB5586C59CA435A9600084010005FF0100010016FEFF000000000000000103C60B0003BA00010000000003BA0003B70003B4308203B030820298020900CB071441CAF5AECF300D06092A864886F70D0101050500308199310B3009060355040613024855310D300B06035504081304427564613111300F06035504071308427564617065737431193017060355040A13104572696373736F6E2048756E67617279310C300A060355040B1303544343311530130603550403130C456C656D6572204C656C696B3128302606092A864886F70D0109011619656C656D65722E6C656C696B406572696373736F6E2E636F6D301E170D3137303230323134343833385A170D3138303230323134343833385A308199310B3009060355040613024855310D300B06035504081304427564613111300F06035504071308427564617065737431193017060355040A13104572696373736F6E2048756E67617279310C300A060355040B1303544343311530130603550403130C456C656D6572204C656C696B3128302606092A864886F70D0109011619656C656D65722E6C656C696B406572696373736F6E2E636F6D30820122300D06092A864886F70D01010105000382010F003082010A0282010100E27A154CA149D7431FBAC54ACFE7ABC638F6115891A0D41165C66AFAEC80E6C652711B7FC7DBBA12A256FCBBDF7DA0DE0833B9E46EF14C0975551906855B1CE17174F23C8AF23414686F02A4DE8B5AE25CEFA388BC21FB494462843D64D3FB23670DE984A55832FC481D7AE375475018DA7E35D9D9F739AC8C0A99BCE87758801FC188848C6DA54A82985E13CA55906F270AA5B4FEAE62B3C45C06AC7D0F2F02E4D92747074B7BCFA7C4EE6BEE23B9E97295E382FFE50E7BD25AAB4164E7AD9C93C2D681DC870BED400218BC141839D098791E016349F2F629E843C632E999FD2D3BAA88FF078EB998CB269DE98209864A0DDC3A65A3DEEFC22037D049F5B4CD0203010001300D06092A864886F70D01010505000382010100A25AB4AE0D55C1A7C6BB339B89412BC850FCC0AEDB152348F9AF19A79E1FFE907E0B6BA5E2746730E172B3A8F9BADB73AC945CC418931C3EB7CBA36DB06D5AA7A7D3DBF3C4CB587840F0F17B7105D2CC6C46D60CAB777E8233CC2302C9BA56C4E384FAEE8C3AB6C3ECC6F235511066FF69E3B9EEEC4E87B1325164D77A4727DF4A4860D1C782E57F98A295C42165A794A9E8AF6676FAB6714D6A038B4C828632564C44064EBA3E775A8230411759961B661FE7181F72D247581FABA9570AFFEF4235E833EF616D34ED04ACAF003DACD3DD1E3F43D6368457594CEF507A0245F7C64ED3AA20A7BA4A4F11584F5A5D9E7BABEC35EDB97CC498BD31C4B56F2AE67016FEFF0000000000000002000C0E0000000002000000000000'O
08:57:34.085574 outstream   :''O
08:57:34.085601 next round
08:57:34.085618 -------------------------------------
08:57:34.091146 Message enqueued on p from mtc octetstring : '14FEFF000000000000000300010116FEFF000100000000000000503BE7D141C1E526040A117956F6EE56D591D19C2A8EAA332B801B8DF73CCC892164626B296A198A9D3C8E24DE03F45019E3246BF6DC5A168B4F55F44B5D4E98683922596998760C1890DC5F67E9E3014C'O id 2
08:57:34.091202 Receive operation on port p succeeded, message from mtc: octetstring : '14FEFF000000000000000300010116FEFF000100000000000000503BE7D141C1E526040A117956F6EE56D591D19C2A8EAA332B801B8DF73CCC892164626B296A198A9D3C8E24DE03F45019E3246BF6DC5A168B4F55F44B5D4E98683922596998760C1890DC5F67E9E3014C'O id 2
08:57:34.091228 Message with id 2 was extracted from the queue of p.
08:57:34.091563 Result of subsequent handshake B :TLS_OK (0)
08:57:34.091591 instream  :'14FEFF000000000000000300010116FEFF000100000000000000503BE7D141C1E526040A117956F6EE56D591D19C2A8EAA332B801B8DF73CCC892164626B296A198A9D3C8E24DE03F45019E3246BF6DC5A168B4F55F44B5D4E98683922596998760C1890DC5F67E9E3014C'O
08:57:34.091747 outstream   :''O
08:57:34.092064 Message enqueued on p from mtc octetstring : '17FEFF0001000000000001005020AD2735E4E8D8C7F5F5D458475B908D4B5C5935A8064BD6D4F184664688F4910412078EE5424FA3BB5D2EB91EE14BDF379D8CED3380B45C61B561F37E9EAC7440BF7F90FF4AA4C3343168ACF53F78E2'O id 3
08:57:34.092101 Receive operation on port p succeeded, message from mtc: octetstring : '17FEFF0001000000000001005020AD2735E4E8D8C7F5F5D458475B908D4B5C5935A8064BD6D4F184664688F4910412078EE5424FA3BB5D2EB91EE14BDF379D8CED3380B45C61B561F37E9EAC7440BF7F90FF4AA4C3343168ACF53F78E2'O id 3
08:57:34.092128 Message with id 3 was extracted from the queue of p.
08:57:34.092178 Result of read  :TLS_OK (0)
08:57:34.092200 received data  :'4F757220546974616E6963206F7665726C6F72647320617265206865726521'O ("Our Titanic overlords are here!")
08:57:34.092273 instream  :'17FEFF0001000000000001005020AD2735E4E8D8C7F5F5D458475B908D4B5C5935A8064BD6D4F184664688F4910412078EE5424FA3BB5D2EB91EE14BDF379D8CED3380B45C61B561F37E9EAC7440BF7F90FF4AA4C3343168ACF53F78E2'O
08:57:34.092355 outstream   :''O
08:57:34.092370 Function f_ParBehaviour finished. PTC terminates.
08:57:34.092384 Terminating component type proba.parCT.
08:57:34.092397 Removing unterminated connection between port p and mtc:p.
08:57:34.092440 Port p was stopped.
08:57:34.092458 Component type proba.parCT was shut down inside testcase TC1.
08:57:34.092482 Final verdict of PTC: none
08:57:34.092582 Disconnected from MC.
08:57:34.092608 TTCN-3 Parallel Test Component finished. 





The code archives are attached.

Next, we will move the communication over the kernel IP stack by connecting the two components over UDP.



Best regards

Elemer


[Updated on: Wed, 28 June 2017 07:13]

Report message to a moderator

Previous Topic:About compiling 3GPP and ETSI test suites
Next Topic:IoT-Testware project
Goto Forum:
  


Current Time: Wed Sep 26 15:37:15 GMT 2018

Powered by FUDForum. Page generated in 0.01532 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top