From: Klas Lindfors Date: Fri, 19 Apr 2013 09:33:32 +0000 (+0200) Subject: only yubiCloud scope for yubico otp X-Git-Tag: v1.13.0~23 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18526566cc9b2d6a3cb6f431b56f0de07fd459cd;p=yubikey-personalization only yubiCloud scope for yubico otp --- diff --git a/ykpers-json.c b/ykpers-json.c index 905bbaf..2a3790d 100644 --- a/ykpers-json.c +++ b/ykpers-json.c @@ -76,7 +76,8 @@ int _ykp_json_export_cfg(const YKP_CONFIG *cfg, char *json, size_t len) { char prefix[5] = {0}; json_object *scope; - if(ycfg.fixed[0] == 0x00 && ycfg.fixed[1] == 0x00) { + if(mode == MODE_OTP_YUBICO && + ycfg.fixed[0] == 0x00 && ycfg.fixed[1] == 0x00) { scope = json_object_new_string("yubiCloud"); } else { scope = json_object_new_string("privatePrefix");