TLS efforts
This commit is contained in:
parent
85f0cfe04b
commit
05778dae7c
|
|
@ -259,8 +259,8 @@ static int transport_indication(facilities_t *facilities, void* responder, void*
|
|||
|
||||
syslog_debug("[facilities]->[security] SecurityRequest.tlsRecv (%ldB)", enc.encoded+1);
|
||||
zmq_send(security_socket, b_sdu, enc.encoded+1, 0);
|
||||
int32_t rl = zmq_recv(security_socket, b_sdu, enc.encoded, 0);
|
||||
syslog_debug("[facilities]<-[security] SecurityReply.tlsRecv (%ldB)", enc.encoded);
|
||||
int32_t rl = zmq_recv(security_socket, b_sdu, 2048, 0);
|
||||
syslog_debug("[facilities]<-[security] SecurityReply.tlsRecv (%dB)", rl);
|
||||
|
||||
if (oer_decode(NULL, &asn_DEF_SecurityReply, (void**) &srep, b_sdu, rl).code) {
|
||||
syslog_err("[facilities] SecurityReply.tlsRecv decode failure");
|
||||
|
|
@ -282,6 +282,7 @@ static int transport_indication(facilities_t *facilities, void* responder, void*
|
|||
fflush(stdout);
|
||||
|
||||
// Forward to [transport]
|
||||
if (srep->data->choice.tlsRecv.initializing) {
|
||||
tr = calloc(1, sizeof(TransportRequest_t));
|
||||
tr->present = TransportRequest_PR_packet;
|
||||
tr->choice.packet.present = TransportPacketRequest_PR_tcp;
|
||||
|
|
@ -314,6 +315,7 @@ static int transport_indication(facilities_t *facilities, void* responder, void*
|
|||
}
|
||||
|
||||
it2s_tender_queue_send(facilities->tx_queue, buf, enc.encoded+1, ITSS_TRANSPORT, id, "TR.packet.tcp");
|
||||
}
|
||||
|
||||
break;
|
||||
case TransportPacketIndication_PR_udp:
|
||||
|
|
|
|||
Loading…
Reference in New Issue