X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=mech_eap%2Futil_json.h;h=4ffecc83941d824d5cbbae2c6738dfcc1ea30576;hb=HEAD;hp=e2c5e2943ff7fc5de4ad836d91f2e8a6129aba3b;hpb=fa210a112d16848a282d662f16f9b8589dd371df;p=mech_eap.git diff --git a/mech_eap/util_json.h b/mech_eap/util_json.h index e2c5e29..4ffecc8 100644 --- a/mech_eap/util_json.h +++ b/mech_eap/util_json.h @@ -42,9 +42,11 @@ #include #include -#include +#ifdef HAVE_SHIBRESOLVER +#include using namespace shibsp; +#endif namespace gss_eap_util { class JSONObject; @@ -88,7 +90,9 @@ namespace gss_eap_util { static JSONObject object(void); static JSONObject array(void); static JSONObject null(void); +#ifdef HAVE_SHIBRESOLVER static JSONObject ddf(DDF &value); +#endif char *dump(size_t flags = 0) const; void dump(FILE *fp, size_t flags = JSON_INDENT(4)) const; @@ -123,7 +127,9 @@ namespace gss_eap_util { json_int_t integer(void) const; double real(void) const; double number(void) const; +#ifdef HAVE_SHIBRESOLVER DDF ddf(void) const; +#endif bool isObject(void) const; bool isArray(void) const;