Syslog debug TLS state while hs

This commit is contained in:
emanuel 2022-07-27 19:15:02 +01:00
parent 862da68014
commit 2a901e0c4d
1 changed files with 3 additions and 1 deletions

View File

@ -314,6 +314,8 @@ static int transport_indication(facilities_t *facilities, void* responder, void*
goto cleanup;
}
syslog_debug("[facilities] [tolling] tls n-msg:%d state:%d", tlsc->nmsg, tlsc->state);
// Forward to [transport]
if (srep->data->choice.tlsRecv.state != 1) {
tr = calloc(1, sizeof(TransportRequest_t));
@ -335,7 +337,7 @@ static int transport_indication(facilities_t *facilities, void* responder, void*
tpr->sourcePort = 7011;
if (facilities->tolling.protocol.p == TOLLING_PROTOCOL_TLS_GN ||
facilities->tolling.protocol.p == TOLLING_PROTOCOL_TLS_SHS) {
(facilities->tolling.protocol.p == TOLLING_PROTOCOL_TLS_SHS && tlsc->nmsg < 2)) {
tpr->gn = calloc(1, sizeof(GeonetworkingOutboundOptions_t));
tpr->gn->packetTransportType = PacketTransportType_shb;
tpr->gn->destinationAddress.buf = calloc(1, 6);