]> err.no Git - yubikey-personalization/commitdiff
add scope for fixed output
authorKlas Lindfors <klas@yubico.com>
Fri, 12 Apr 2013 08:17:49 +0000 (10:17 +0200)
committerKlas Lindfors <klas@yubico.com>
Fri, 12 Apr 2013 08:17:49 +0000 (10:17 +0200)
ykpers-json.c

index 8b26eb865c34938c0a04c3e77e8496c07058e266..deb8e19efa2a2dbd4cc909b696246ba68109b0f2 100644 (file)
@@ -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;