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) {
|
int get_key(R_RSA_PUBLIC_KEY& key) {
|
||||||
FILE* f;
|
FILE* f;
|
||||||
int retval;
|
int retval;
|
||||||
|
char buf[256];
|
||||||
f = fopen(strcat(getenv("BOINC_KEY_DIR"), "/upload_public"), "r");
|
sprintf(buf, "%s/upload_public", getenv("BOINC_KEY_DIR"));
|
||||||
|
f = fopen(buf, "r");
|
||||||
if (!f) return -1;
|
if (!f) return -1;
|
||||||
retval = scan_key_hex(f, (KEY*)&key, sizeof(key));
|
retval = scan_key_hex(f, (KEY*)&key, sizeof(key));
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|
Loading…
Reference in New Issue