Skip to content

Commit

Permalink
find segv
Browse files Browse the repository at this point in the history
  • Loading branch information
lchenut committed Jul 9, 2024
1 parent d098749 commit 97578bd
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion webrtc/dtls/dtls_connection.nim
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,44 @@ proc dtlsHandshake*(
self.sendFuture = nil
echo "self: ", self.isNil()
if not self.isNil():
trace "debug: ", ssl = self.ctx.ssl
echo "private_conf*: ", self.ctx.ssl.private_conf.isNil()
echo "private_f_vrfy*: ", self.ctx.ssl.private_f_vrfy.isNil()
echo "private_p_vrfy*: ", self.ctx.ssl.private_p_vrfy.isNil()
echo "private_f_send*: ", self.ctx.ssl.private_f_send.isNil()
echo "private_f_recv*: ", self.ctx.ssl.private_f_recv.isNil()
echo "private_f_recv_timeout*: ", self.ctx.ssl.private_f_recv_timeout.isNil()
echo "private_p_bio*: ", self.ctx.ssl.private_p_bio.isNil()
echo "private_session_in*: ", self.ctx.ssl.private_session_in.isNil()
echo "private_session_out*: ", self.ctx.ssl.private_session_out.isNil()
echo "private_session*: ", self.ctx.ssl.private_session.isNil()
echo "private_session_negotiate*: ", self.ctx.ssl.private_session_negotiate.isNil()
echo "private_handshake*: ", self.ctx.ssl.private_handshake.isNil()
echo "private_transform_in*: ", self.ctx.ssl.private_transform_in.isNil()
echo "private_transform_out*: ", self.ctx.ssl.private_transform_out.isNil()
echo "private_transform*: ", self.ctx.ssl.private_transform.isNil()
echo "private_transform_negotiate*: ", self.ctx.ssl.private_transform_negotiate.isNil()
echo "private_p_timer*: ", self.ctx.ssl.private_p_timer.isNil()
echo "private_f_set_timer*: ", self.ctx.ssl.private_f_set_timer.isNil()
echo "private_f_get_timer*: ", self.ctx.ssl.private_f_get_timer.isNil()
echo "private_in_buf*: ", self.ctx.ssl.private_in_buf.isNil()
echo "private_in_ctr*: ", self.ctx.ssl.private_in_ctr.isNil()
echo "private_in_hdr*: ", self.ctx.ssl.private_in_hdr.isNil()
echo "private_in_cid*: ", self.ctx.ssl.private_in_cid.isNil()
echo "private_in_len*: ", self.ctx.ssl.private_in_len.isNil()
echo "private_in_iv*: ", self.ctx.ssl.private_in_iv.isNil()
echo "private_in_msg*: ", self.ctx.ssl.private_in_msg.isNil()
echo "private_in_offt*: ", self.ctx.ssl.private_in_offt.isNil()
echo "private_out_buf*: ", self.ctx.ssl.private_out_buf.isNil()
echo "private_out_ctr*: ", self.ctx.ssl.private_out_ctr.isNil()
echo "private_out_hdr*: ", self.ctx.ssl.private_out_hdr.isNil()
echo "private_out_cid*: ", self.ctx.ssl.private_out_cid.isNil()
echo "private_out_len*: ", self.ctx.ssl.private_out_len.isNil()
echo "private_out_iv*: ", self.ctx.ssl.private_out_iv.isNil()
echo "private_out_msg*: ", self.ctx.ssl.private_out_msg.isNil()
echo "private_cli_id*: ", self.ctx.ssl.private_cli_id.isNil()
echo "private_f_export_keys*: ", self.ctx.ssl.private_f_export_keys.isNil()
echo "private_p_export_keys*: ", self.ctx.ssl.private_p_export_keys.isNil()

let res = mb_ssl_handshake_step(self.ctx.ssl)
if not self.sendFuture.isNil():
await self.sendFuture
Expand Down

0 comments on commit 97578bd

Please sign in to comment.