]> err.no Git - yubikey-personalization/commitdiff
only yubiCloud scope for yubico otp
authorKlas Lindfors <klas@yubico.com>
Fri, 19 Apr 2013 09:33:32 +0000 (11:33 +0200)
committerKlas Lindfors <klas@yubico.com>
Fri, 19 Apr 2013 09:33:32 +0000 (11:33 +0200)
ykpers-json.c

index 905bbaf97a623ee13ba7ab6b440b43b9b9bd96fd..2a3790dd8fcfa79b806ff61f47d6d2b4dcdab6af 100644 (file)
@@ -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");