Handshake TLS packets with ID
This commit is contained in:
parent
305e94b66e
commit
ae6480f109
|
|
@ -300,6 +300,8 @@ static int transport_indication(facilities_t *facilities, void* responder, void*
|
|||
tpr->gn->destinationAddress.buf = calloc(1, 6);
|
||||
tpr->gn->destinationAddress.size = 6;
|
||||
|
||||
tpr->id = rand() + 1;
|
||||
|
||||
buf[0] = 4;
|
||||
enc = oer_encode_to_buffer(&asn_DEF_TransportRequest, NULL, tr, buf+1, buf_len-1);
|
||||
if (enc.encoded == -1) {
|
||||
|
|
@ -308,7 +310,7 @@ static int transport_indication(facilities_t *facilities, void* responder, void*
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
it2s_tender_queue_send(facilities->tx_queue, buf, enc.encoded+1, ITSS_TRANSPORT, id, "TR.packet.tcp");
|
||||
it2s_tender_queue_send(facilities->tx_queue, buf, enc.encoded+1, ITSS_TRANSPORT, tpr->id, "TR.packet.tcp");
|
||||
} else {
|
||||
|
||||
if (facilities->tolling.enabled && srep->data->choice.tlsRecv.data.size) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue