Handshake TLS packets with ID

This commit is contained in:
emanuel 2022-04-21 13:00:24 +01:00
parent 305e94b66e
commit ae6480f109
1 changed files with 3 additions and 1 deletions

View File

@ -300,6 +300,8 @@ static int transport_indication(facilities_t *facilities, void* responder, void*
tpr->gn->destinationAddress.buf = calloc(1, 6); tpr->gn->destinationAddress.buf = calloc(1, 6);
tpr->gn->destinationAddress.size = 6; tpr->gn->destinationAddress.size = 6;
tpr->id = rand() + 1;
buf[0] = 4; buf[0] = 4;
enc = oer_encode_to_buffer(&asn_DEF_TransportRequest, NULL, tr, buf+1, buf_len-1); enc = oer_encode_to_buffer(&asn_DEF_TransportRequest, NULL, tr, buf+1, buf_len-1);
if (enc.encoded == -1) { if (enc.encoded == -1) {
@ -308,7 +310,7 @@ static int transport_indication(facilities_t *facilities, void* responder, void*
goto cleanup; 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 { } else {
if (facilities->tolling.enabled && srep->data->choice.tlsRecv.data.size) { if (facilities->tolling.enabled && srep->data->choice.tlsRecv.data.size) {