Hi Florin, I tried dtls proto with my custom crypto engine, and got error with dtls_connect. Vpp bracn is 21.06-rc2, h ere is the debug log:
> > Breakpoint 1, dtls_connect (tep=0x7fffb8c13b80) at > /home/dev/code/net-base/.vpp-21.06-rc2/src/vnet/tls/tls.c:1224 > 1224 return ctx_handle; > (gdb) bt 3 > #0 dtls_connect (tep=0x7fffb8c13b80) at > /home/dev/code/net-base/.vpp-21.06-rc2/src/vnet/tls/tls.c:1224 > #1 0x00007ffff73c0065 in transport_connect (tp=TRANSPORT_PROTO_DTLS, > tep=0x7fffb8c13b80) at > /home/dev/code/net-base/.vpp-21.06-rc2/src/vnet/session/transport.c:317 > #2 0x00007ffff737c4e1 in session_open_vc (rmt=0x7fffb8c13b80, > rsh=0x7fffb8c13bf8) at > /home/dev/code/net-base/.vpp-21.06-rc2/src/vnet/session/session.c:1343 > (More stack frames follow...) > (gdb) p ctx_handle > $4 = 2684354560 > (gdb) p (int)ctx_handle > $5 = -1610612736 > (gdb) p engine_type > $6 = 5 > (gdb) c > Continuing. > > Breakpoint 2, session_open_vc (rmt=0x7fffb8c13b80, rsh=0x7fffb8c13bf8) at > /home/dev/code/net-base/.vpp-21.06-rc2/src/vnet/session/session.c:1347 > 1347 return rv; > (gdb) p rv > $7 = -1610612736 > (gdb) > > Value of ctx_handle was treated as a error value by session_open_vc. Maybe TLS_ENGINE_TYPE_SHIFT should be changed from 29 to 28.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19586): https://lists.fd.io/g/vpp-dev/message/19586 Mute This Topic: https://lists.fd.io/mt/83597241/21656 Mute #vpp-dev:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp-dev Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-