2901 while((location = assistant_getoptcfg("Location"))) { |
2901 while((location = assistant_getoptcfg("Location"))) { |
2902 locations = ucx_list_append(locations, location); |
2902 locations = ucx_list_append(locations, location); |
2903 } |
2903 } |
2904 |
2904 |
2905 int ret = 1; |
2905 int ret = 1; |
2906 if(user && password) { |
2906 if(user && password) { |
2907 pwdstore_put_index(secrets, id, locations); |
2907 pwdstore_put_index(secrets, id, locations); |
2908 pwdstore_put(secrets, id, user, password); |
2908 pwdstore_put(secrets, id, user, password); |
2909 ret = pwdstore_save(secrets); |
2909 ret = pwdstore_save(secrets); |
2910 if(ret) { |
2910 if(ret) { |
2911 fprintf(stderr, "Error: saving srcrets store failed.\n"); |
2911 fprintf(stderr, "Error: saving srcrets store failed.\n"); |