]> git.ipfire.org Git - people/ms/strongswan.git/commit
unit-tests: Export ntru_drbg_create as testable function so no linking is required
authorTobias Brunner <tobias@strongswan.org>
Thu, 28 Nov 2013 17:06:09 +0000 (18:06 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 4 Dec 2013 19:32:59 +0000 (20:32 +0100)
commitd5a0abfa9201b73c2c2e42c852c60831aadf218a
treeb59b92590832691d01d56ca4202bf52026d0425d
parent4cea186b64c573a2030a66377c51857b401dbea0
unit-tests: Export ntru_drbg_create as testable function so no linking is required

This way the plugin does not have to be linked explicitly to the test
runner, which otherwise would require that the plugin is either always
enabled to build the tests or that ifdefs are added to the Makefile.
src/libstrongswan/plugins/ntru/ntru_drbg.c
src/libstrongswan/tests/Makefile.am
src/libstrongswan/tests/suites/test_ntru.c