summaryrefslogtreecommitdiffstats
path: root/src/tests/gssapi/common.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix GSSAPI krb5 cred ccache importGreg Hudson2013-10-141-0/+14
| | | | | | | | | | | | | | json_to_ccache was incorrectly indexing the JSON array when restoring a memory ccache. Fix it. Add test coverage for a multi-cred ccache by exporting/importing the synthesized S4U2Proxy delegated cred in t_s4u2proxy_krb5.c; move export_import_cred from t_export_cred.c to common.c to facilitate this. Make a note in t_export_cred.py that this case is covered in t_s4u.py. ticket: 7706 target_version: 1.11.4
* Factor out context establishment in GSS testsGreg Hudson2013-09-061-0/+40
| | | | | | Add a new helper to common.c which runs gss_init_sec_context and gss_accept_sec_context in a loop, and use it in test programs instead of the open-coded one-token or two-token exchanges.
* Fix various warningsGreg Hudson2013-06-071-3/+3
|
* Add tests for gss_inquire_mechs_for_nameGreg Hudson2012-09-171-1/+3
|
* Tidy up GSSAPI test programsGreg Hudson2012-09-131-0/+211
Factor out some common functions used by multiple test programs. Use a common argument format for importing names (p:princname, h:hostbasedname, or u:username) and adjust the Python tests to match it. Use more consistent conventions in test programs and fix some coding style issues. Normalize how the test programs are built.