krb5 commit: Add test coverage for GSS context export/import

Greg Hudson ghudson at mit.edu
Thu Nov 5 12:25:54 EST 2015


https://github.com/krb5/krb5/commit/bee2d867248b24c627da4c2ef270c8de15fd96f9
commit bee2d867248b24c627da4c2ef270c8de15fd96f9
Author: Greg Hudson <ghudson at mit.edu>
Date:   Sun Nov 1 22:47:53 2015 -0500

    Add test coverage for GSS context export/import
    
    Pass the -export flag to gss-server in t_gss_sample.py, in order to
    test context export and import for each of the mechanisms.
    
    ticket: 8273

 src/appl/gss-sample/t_gss_sample.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/appl/gss-sample/t_gss_sample.py b/src/appl/gss-sample/t_gss_sample.py
index 964e3ba..8a6b030 100755
--- a/src/appl/gss-sample/t_gss_sample.py
+++ b/src/appl/gss-sample/t_gss_sample.py
@@ -33,7 +33,8 @@ gss_server = os.path.join(appdir, 'gss-server')
 # given by server_options.  Return the output of gss-client.
 def run_client_server(realm, options, server_options, expected_code=0):
     portstr = str(realm.server_port())
-    server_args = [gss_server, '-port', portstr] + server_options + ['host']
+    server_args = [gss_server, '-export', '-port', portstr]
+    server_args += server_options + ['host']
     server = realm.start_server(server_args, 'starting...')
     out = realm.run([gss_client, '-port', portstr] + options +
                     [hostname, 'host', 'testmsg'], expected_code=expected_code)


More information about the cvs-krb5 mailing list