| 511 */ |
511 */ |
| 512 #define msim_put32(buf, data) ( \ |
512 #define msim_put32(buf, data) ( \ |
| 513 (*((buf)) = (unsigned char)((data)>>24)&0xff), \ |
513 (*((buf)) = (unsigned char)((data)>>24)&0xff), \ |
| 514 (*((buf)+1) = (unsigned char)((data)>>16)&0xff), \ |
514 (*((buf)+1) = (unsigned char)((data)>>16)&0xff), \ |
| 515 (*((buf)+2) = (unsigned char)((data)>>8)&0xff), \ |
515 (*((buf)+2) = (unsigned char)((data)>>8)&0xff), \ |
| 516 (*((buf)+3) = (unsigned char)(data)&0xff), \ |
516 (*((buf)+3) = (unsigned char)(data)&0xff)) |
| 517 4) |
|
| 518 |
517 |
| 519 /** |
518 /** |
| 520 * Compute the base64'd login challenge response based on username, password, nonce, and IPs. |
519 * Compute the base64'd login challenge response based on username, password, nonce, and IPs. |
| 521 * |
520 * |
| 522 * @param nonce The base64 encoded nonce ('nc') field from the server. |
521 * @param nonce The base64 encoded nonce ('nc') field from the server. |