cozybit / authsae

Simultaneous Authentication of Equals: Unofficial official clone of the now stale http://sourceforge.net/projects/authsae
31 stars 28 forks source link

Eliminate named function callbacks #87

Closed jcard0na closed 6 years ago

jcard0na commented 6 years ago

Cleanup hard-named symbols in libsae.

I believe libsae had two problems with callback symbols:

Before:

nm libsae.a | grep -w -e fin -e 'meshd.*' -e 'srv.*
                 U fin
                 U meshd_write_mgmt
0000000000000000 t srv_add_timeout
                 U srv_add_timeout_with_jitter
                 U srvctx
                 U srv_rem_timeout
0000000000000cfd T srv_add_exceptor
00000000000006ea T srv_add_input
0000000000000a3b T srv_add_output
0000000000000262 T srv_add_timeout_with_jitter
0000000000001691 T srv_cancel_main_loop
0000000000001520 T srv_create_context
0000000000000ee8 T srv_main_loop
00000000000008a6 T srv_rem_input
0000000000000bb0 T srv_rem_output
0000000000000586 T srv_rem_timeout
                 U srv_add_input
0000000000000000 t srv_add_timeout
                 U srv_add_timeout_with_jitter
                 U srv_rem_input
                 U srv_rem_timeout
                 U meshd_set_mesh_conf
                 U meshd_write_mgmt
0000000000000000 t srv_add_timeout
                 U srv_add_timeout_with_jitter
                 U srvctx

After:

nm libsae.a | grep -w -e fin -e 'meshd.*' -e 'srv.*'

Tested by running tests under /tests