int do_setusercryptopolicies(int nargs, char **args) { if (nargs != 2) { return -1; } if (!is_file_crypto()) { return 0; } return e4crypt_set_user_crypto_policies(args[1]); }
static int do_setusercryptopolicies(const std::vector<std::string>& args) { if (!is_file_crypto()) { return 0; } return e4crypt_set_user_crypto_policies(args[1].c_str()); }