From: Klas Lindfors Date: Fri, 12 Apr 2013 08:17:49 +0000 (+0200) Subject: add scope for fixed output X-Git-Tag: v1.13.0~54 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70b3bd79608050b04ea7f1b52bf55fa36f7215e0;p=yubikey-personalization add scope for fixed output --- diff --git a/ykpers-json.c b/ykpers-json.c index 8b26eb8..deb8e19 100644 --- a/ykpers-json.c +++ b/ykpers-json.c @@ -75,6 +75,9 @@ int ykp_json_export_cfg(const YKP_CONFIG *cfg, char *json, size_t len) { json_object *jPrefix; char prefix[5] = {0}; + json_object *scope = json_object_new_string("privatePrefix"); + json_object_object_add(yprod_json, "scope", scope); + yubikey_modhex_encode(prefix, (const char*)ycfg.fixed, 2); if(mode == MODE_OATH_HOTP) { int flag = ycfg.cfgFlags & CFGFLAG_OATH_FIXED_MODHEX;