39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
const char *zPw; /* The user password */
Blob pw; /* The nonce with user password appended */
Blob sig; /* The signature field */
zLogin = url_or_fossil_user();
blob_zero(pLogin);
if( zLogin==0 || fossil_strcmp(g.urlUser, "anonymous")==0 ||
url_ssh_use_http()==0 ){
return; /* If no login card for users "nobody" and "anonymous" */
}
blob_zero(&nonce);
blob_zero(&pw);
sha1sum_blob(pPayload, &nonce);
blob_copy(&pw, &nonce);
if( g.urlPasswd ){
|
|
|
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
const char *zPw; /* The user password */
Blob pw; /* The nonce with user password appended */
Blob sig; /* The signature field */
zLogin = url_or_fossil_user();
blob_zero(pLogin);
if( zLogin==0 || fossil_strcmp(g.urlUser, "anonymous")==0 ||
(g .urlIsSsh && url_ssh_use_http()==0 ) ){
return; /* If no login card for users "nobody" and "anonymous" */
}
blob_zero(&nonce);
blob_zero(&pw);
sha1sum_blob(pPayload, &nonce);
blob_copy(&pw, &nonce);
if( g.urlPasswd ){
|