[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: yahoo_rewrite: kdenetwork/kopete/protocols/yahoo/libkyahoo (silent)
From: Matt Rogers <matt () matt ! rogers ! name>
Date: 2004-09-23 17:44:48
Message-ID: 20040923174448.A8B56126DC () office ! kde ! org
[Download RAW message or body]
CVS commit by mattr:
CVS_SILENT formatting nitpicks
M +59 -56 challengeresponsev10.cpp 1.2.2.2
--- kdenetwork/kopete/protocols/yahoo/libkyahoo/challengeresponsev10.cpp \
#1.2.2.1:1.2.2.2 @@ -85,5 +85,6 @@ unsigned int ChallengeResponseV10::authF
hash *= 0x9e3779b1;
- if (outer_loop > 1) {
+ if (outer_loop > 1)
+ {
auth_function_t *ft;
@@ -99,8 +100,8 @@ unsigned int ChallengeResponseV10::authF
ft = &main_function_list[inner_loop][remainder];
- if (ft) {
-
- switch (ft->type) {
-
+ if (ft)
+ {
+ switch (ft->type)
+ {
case 0:
return challenge;
@@ -134,10 +132,12 @@ unsigned char ChallengeResponseV10::auth
return 0;
- for (i = 0; i < NUM_TYPE_FOURS; i++) {
+ for (i = 0; i < NUM_TYPE_FOURS; i++ )
+ {
if (type_four_list[i].buffer_start == buffer)
return type_four_list[i].buffer[offset] ^ (buffer & 0xff);
}
- for (i = 0; i < NUM_TYPE_FIVES; i++) {
+ for (i = 0; i < NUM_TYPE_FIVES; i++)
+ {
if (type_five_list[i].buffer_start == buffer)
return type_five_list[i].buffer[offset] ^ (buffer & 0xff);
@@ -154,5 +154,6 @@ unsigned char ChallengeResponseV10::auth
return 0;
- for (i = 0; i < NUM_TYPE_THREES; i++) {
+ for (i = 0; i < NUM_TYPE_THREES; i++)
+ {
if (type_three_list[i].buffer_start == buffer)
return type_three_list[i].buffer[offset] ^ (buffer & 0xff);
@@ -173,7 +174,9 @@ unsigned int ChallengeResponseV10::authT
for (i = 0; i < 32; i++)
{
- unsigned char buffer = authRead45(initial, i); /* \
Find the location in the challenge to put the 1/0 bit */
- int mask = ~(1 << buffer); \
/* so that we can do a replace of our current value. */
- int new_value = (challenge >> i) & 1; \
/* Is this bit 1 or 0? */ + /* Find the location in the challenge to \
put the 1/0 bit + so that we can do a replace of our current value. \
*/ + unsigned char buffer = authRead45(initial, i);
+ int mask = ~(1 << buffer);
+ int new_value = (challenge >> i) & 1; // Is this bit 1 or 0?
final_value = (final_value & mask) | (new_value << buffer);
@@ -212,8 +215,8 @@ int ChallengeResponseV10::authFinalCount
ft = &main_function_list[inner_loop][remainder];
- if (ft) {
-
- switch(ft->type) {
-
+ if (ft)
+ {
+ switch(ft->type)
+ {
case 0:
break;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic