From 18526566cc9b2d6a3cb6f431b56f0de07fd459cd Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Fri, 19 Apr 2013 11:33:32 +0200 Subject: [PATCH] only yubiCloud scope for yubico otp --- ykpers-json.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); -- 2.39.5