Lines 62-85
Link Here
|
62 |
}; |
62 |
}; |
63 |
|
63 |
|
64 |
static int |
64 |
static int |
65 |
krb_get_int(void *f, u_int32_t *to, int size, int lsb) |
|
|
66 |
{ |
67 |
int i; |
68 |
unsigned char *from = (unsigned char *)f; |
69 |
|
70 |
*to = 0; |
71 |
if(lsb){ |
72 |
for(i = size-1; i >= 0; i--) |
73 |
*to = (*to << 8) | from[i]; |
74 |
}else{ |
75 |
for(i = 0; i < size; i++) |
76 |
*to = (*to << 8) | from[i]; |
77 |
} |
78 |
return size; |
79 |
} |
80 |
|
81 |
|
82 |
static int |
83 |
krb4_check_prot(void *app_data, int level) |
65 |
krb4_check_prot(void *app_data, int level) |
84 |
{ |
66 |
{ |
85 |
if(level == prot_confidential) |
67 |
if(level == prot_confidential) |