view src/protocols/yahoo/yahoo_auth.h @ 11044:8bf376579177

[gaim-migrate @ 12958] Patch #1229320 from Bleeter "I couldn't get anyone to confirm that doing this is correct, however to me it would seem that I'm leaking on a couple of the privacy_checks inside the yahoo prpl. Here's a fix. This also includes privacy wrapper for the conference decline function, used in some booters." (00:37:39) Bleeter: ... we're returning out of the function, and those things are freed further down if the function isn't returned (00:38:18) Bleeter: so it makes sense to free them before the return. I'm just unsure because they'reprevious patches which were applied without these checks being picked up That makes sense to me. It looks good. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 30 Jun 2005 05:41:43 +0000
parents 0018b8118e77
children f4e58e94ced3
line wrap: on
line source

/*
 * yahoo_auth.h: Header for Yahoo Messenger authentication schemes.  Eew.
 *
 * Copyright(c) 2003 Cerulean Studios
 */


#ifndef _YAHOO_AUTH_H_
#define _YAHOO_AUTH_H_ 

#define NUM_TYPE_THREES 105
#define NUM_TYPE_FOURS 56
#define NUM_TYPE_FIVES 37

unsigned int yahoo_auth_finalCountdown(unsigned int challenge, int divisor, int inner_loop, int outer_loop);

/* We've defined the Yahoo authentication functions as having types 1-5; all take either 1 or 2 arguments.
 */

typedef struct _auth {
	int				type;
	int				var1; 
	int				var2;
} auth_function_t;

/* Type 3, 4 and 5 require lookups into ypager.exe's many static chunks of 256 bytes.  Store them here.
 */

struct buffer_t {
	unsigned int	buffer_start;
	unsigned char	buffer[257];
};


#endif /* _YAHOO_AUTH_H_ */