Commit b22e99c2 authored by David Anderson's avatar David Anderson

- GUI RPC: add master_url and local_revision to PROJECT_CONFIG struct.

    The former will allow the Manager to verify project URLs

svn path=/trunk/boinc/; revision=17271
parent 1d43d654
......@@ -1587,3 +1587,11 @@ David 13 Feb 2009
lib/
prefs.cpp,h
David 13 Feb 2009
- GUI RPC: add master_url and local_revision to PROJECT_CONFIG struct.
The former will allow the Manager to verify project URLs
lib/
gui_rpc_client_ops.cpp
gui_rpc_client.h
......@@ -475,6 +475,8 @@ struct PROJECT_INIT_STATUS {
struct PROJECT_CONFIG {
int error_num;
std::string name;
std::string master_url;
int local_revision; // SVN changeset# of server software
int min_passwd_length;
bool account_manager;
bool uses_username; // true for WCG
......
......@@ -900,6 +900,8 @@ int PROJECT_CONFIG::parse(MIOFILE& in) {
if (match_tag(buf, "</project_config>")) return 0;
if (parse_int(buf, "<error_num>", error_num)) continue;
if (parse_str(buf, "<name>", name)) continue;
if (parse_str(buf, "<master_url>", master_url)) continue;
if (parse_int(buf, "<local_revision>", local_revision)) continue;
if (parse_int(buf, "<min_passwd_length>", min_passwd_length)) continue;
if (parse_bool(buf, "account_manager", account_manager)) continue;
if (parse_bool(buf, "uses_username", uses_username)) continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment