]> err.no Git - yubikey-personalization/commitdiff
use yk_write_command instead of yk_write_config
authorKlas Lindfors <klas@yubico.com>
Tue, 27 Mar 2012 08:18:02 +0000 (10:18 +0200)
committerKlas Lindfors <klas@yubico.com>
Tue, 27 Mar 2012 08:18:02 +0000 (10:18 +0200)
ykpersonalize.c

index 57490e9c989bc942c82bd6da7b2814912e2682b3..c60e82688504b9bc97312caa6112d167e4fdcd59 100644 (file)
@@ -215,9 +215,9 @@ int main(int argc, char **argv)
 
                        if (verbose)
                                printf("Attempting to write configuration to the yubikey...");
-                       if (!yk_write_config(yk,
-                                            ykp_core_config(cfg), ykp_config_num(cfg),
-                                            use_access_code ? access_code : NULL)) {
+                       if (!yk_write_command(yk,
+                                            ykp_core_config(cfg), ykp_command(cfg),
+                                                use_access_code ? access_code : NULL)) {
                                if (verbose)
                                        printf(" failure\n");
                                goto err;