mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=189
This commit is contained in:
parent
a6929b2035
commit
ce23e8adda
|
@ -165,8 +165,9 @@ int handle_request(FILE* in, R_RSA_PUBLIC_KEY& key) {
|
|||
int get_key(R_RSA_PUBLIC_KEY& key) {
|
||||
FILE* f;
|
||||
int retval;
|
||||
|
||||
f = fopen(strcat(getenv("BOINC_KEY_DIR"), "/upload_public"), "r");
|
||||
char buf[256];
|
||||
sprintf(buf, "%s/upload_public", getenv("BOINC_KEY_DIR"));
|
||||
f = fopen(buf, "r");
|
||||
if (!f) return -1;
|
||||
retval = scan_key_hex(f, (KEY*)&key, sizeof(key));
|
||||
fclose(f);
|
||||
|
|
Loading…
Reference in New Issue