From: Mark Donnelly Date: Tue, 25 Nov 2014 16:11:37 +0000 (-0500) Subject: Inherit from GSSCommand publicly, rather than privately. X-Git-Url: http://www.project-moonshot.org/gitweb/?p=gssweb.git;a=commitdiff_plain;h=b15d7e8c8799da4c75c4664a011cf5de2b9e3055 Inherit from GSSCommand publicly, rather than privately. The code to process commands from the user interface relies on the inheritance from the GSSCommand interface, which doesn't work if that inheritance is private. --- diff --git a/json_gssapi/src/commands/GSSUnwrap.h b/json_gssapi/src/commands/GSSUnwrap.h index 93d09d9..997f403 100644 --- a/json_gssapi/src/commands/GSSUnwrap.h +++ b/json_gssapi/src/commands/GSSUnwrap.h @@ -48,7 +48,7 @@ typedef OM_uint32 (KRB5_CALLCONV *gss_unwrap_type) ( gss_qop_t *); /* qop_state */ -class GSSUnwrap : GSSCommand +class GSSUnwrap : public GSSCommand { public: GSSUnwrap( gss_unwrap_type fn = &gss_unwrap ) : function(fn) {}; diff --git a/json_gssapi/src/commands/GSSWrap.h b/json_gssapi/src/commands/GSSWrap.h index 08894cf..f7d9405 100644 --- a/json_gssapi/src/commands/GSSWrap.h +++ b/json_gssapi/src/commands/GSSWrap.h @@ -50,7 +50,7 @@ typedef OM_uint32 (KRB5_CALLCONV *gss_wrap_type) ( gss_buffer_t); /* output_message_buffer */ -class GSSWrap : GSSCommand +class GSSWrap : public GSSCommand { public: GSSWrap( gss_wrap_type fn = &gss_wrap ) : function(fn) {};