summaryrefslogtreecommitdiffstats
path: root/proxy/tests
Commit message (Collapse)AuthorAgeFilesLines
* Coverity fixes.Simo Sorce2013-06-271-3/+1
| | | | | | | | | | | Fix a 4 coverity issues, ranging from memory leaks, to uninitialized variables, to potential NULL derefernce. Also a TOCTOU report that is in one of the accessory test scripts. The bug itself is not reallya TOCTOU, but the check done in the script is unecessary, so I just removed it. Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Günther Deschner <gdeschner@redhat.com>
* Disable gss_export_name_composite() for now.Günther Deschner2013-05-161-2/+3
| | | | | | | | | | We first need to fix our tests and implementation. Temporary workaround for: https://fedorahosted.org/gss-proxy/ticket/81 Signed-off-by: Günther Deschner <gdeschner@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
* Add dlopen script to check for unresolved symbols.Günther Deschner2013-05-151-0/+76
| | | | | | | | Vendors can call "make test_proxymech" from their specfile to make sure proxymech.so can be properly loaded by the GSSAPI. Signed-off-by: Günther Deschner <gdeschner@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
* Add --all option to interposetestGünther Deschner2013-04-231-1/+14
| | | | | | | test all possible proxy mode combinations only when --all is given. Signed-off-by: Günther Deschner <gdeschner@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
* Fix uninizialized variables found by CoveritySimo Sorce2013-04-032-2/+2
| | | | Signed-off-by: Simo Sorce <simo@redhat.com>
* Fix locally dead code error found by coveritySimo Sorce2013-04-031-4/+3
| | | | | | | By setting closewait to 0 after waitpid we would loop forever not the max 10 times we intended to. Signed-off-by: Simo Sorce <simo@redhat.com>
* Test all possible proxy mode combinations.Günther Deschner2013-03-271-3/+16
| | | | | Signed-off-by: Günther Deschner <gdeschner@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
* Make it easier to test gssproxy behavior settings.Günther Deschner2013-03-271-40/+95
| | | | | | | | | Adds options to set a sepcific proxy behavior for both the client and the server subprocesses by setting the GSSPROXY_BEHAVIOR environment variable after forking. Signed-off-by: Günther Deschner <gdeschner@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
* interpostest: improve debug output when gss_context_time() fails.Günther Deschner2013-03-141-2/+5
| | | | Signed-off-by: Simo Sorce <simo@redhat.com>
* interposetest: add more debug statements.Günther Deschner2012-10-251-0/+13
|
* interposetest: add test for gss_export_name_composite()Günther Deschner2012-10-251-0/+11
|
* interposetest: test gss_wrap_size_limit().Günther Deschner2012-10-251-0/+16
|
* interposetest: test gss_wrap_iov/gss_unwrap_iov.Günther Deschner2012-10-251-0/+99
| | | | Acked-by: Simo Sorce <simo@redhat.com>
* interposetest: add test for gss_export_name().Günther Deschner2012-10-251-0/+10
| | | | Acked-by: Simo Sorce <simo@redhat.com>
* Add context related testsSimo Sorce2012-10-251-4/+98
|
* Add get/verify mic testsSimo Sorce2012-10-251-4/+53
|
* Use a debug macro in interposer testSimo Sorce2012-10-251-20/+30
|
* Add interposer tests for wrap/unwrapSimo Sorce2012-10-251-0/+41
|
* New test program to exercise the mechglue pluginSimo Sorce2012-10-251-0/+532
|
* Add name handle wrapperSimo Sorce2012-10-251-5/+5
|
* Add context handle wrapperSimo Sorce2012-10-251-7/+7
|
* Add cred handle wrapperSimo Sorce2012-10-251-3/+3
|
* cli_srv_comm: Add and use a DEBUG macro.Günther Deschner2012-10-251-28/+35
|
* Add testcode for gpm_wrap_size_limit().Günther Deschner2012-09-141-0/+13
|
* Add testcode for gpm_unwrap().Günther Deschner2012-09-141-0/+29
|
* Add testcode for add gpm_wrap().Günther Deschner2012-09-141-0/+27
|
* Add test code for gpm_(get|verify)_mic.Günther Deschner2012-09-141-0/+60
|
* Move client lib files in their own directorySimo Sorce2012-08-311-1/+1
| | | | | | | Make space for the actual mechglue plugin interface. The mechglue interface will use the client library to communicate with the gss-proxy but will reimplement all GSSAPI SPI as wrappers in order to properly handle fallbacks to local mechanism and other input/output transformations.
* Test init_sec_contextSimo Sorce2012-02-091-22/+25
|
* There is no need anymore to load the server config in the client test program.Simo Sorce2012-02-091-13/+1
|
* Retrieve the buffer when needed, right before accept_sec_contextSimo Sorce2012-02-091-6/+6
|
* Remove useless connection to the proxySimo Sorce2012-02-091-37/+0
| | | | Connecting to the proxy is handled internally by the client mechglue library.
* Rename test program.Simo Sorce2012-02-091-0/+0
| | | | | The test program is now testing almost all functions so change name to reflect reaility.
* Add import_and_canon_name function family testsSimo Sorce2012-02-071-8/+45
|
* Add tests for indicate_mechs functionsSimo Sorce2012-02-051-0/+79
|
* Add gpm_indicate_mechs to test programSimo Sorce2012-02-031-1/+9
|
* Modify accept_context test to use acquire_credSimo Sorce2012-02-011-3/+17
|
* Convert tests to use mechglueSimo Sorce2012-01-301-31/+35
|
* Split gp_utils.h into proxy headers and commonly useful headersSimo Sorce2012-01-291-1/+1
|
* Improve test programSimo Sorce2012-01-251-76/+191
| | | | | | | Split it into a lcient and a server thread. Properly implement gss_init_sec_context loop for the client part. Still relies on kerberos being used and gss_accept_sec_context beeing finished in one roundtrip.
* Add test program to exercise accept_sec_contextSimo Sorce2012-01-251-0/+345