view libgaim/protocols/qq/crypt.h @ 15253:7dd8192b1a5c

[gaim-migrate @ 18042] Only prompt to resend a non-acked packet when the result of that packet being dropped would probably be significant. In that case, give a user-friendly notification. committer: Tailor Script <tailor@pidgin.im>
author Mark Huetsch <markhuetsch>
date Fri, 22 Dec 2006 05:31:54 +0000
parents c039c920e11c
children
line wrap: on
line source

/**
 * @file crypt.h
 *
 * gaim
 *
 * Gaim is the legal property of its developers, whose names are too numerous
 * to list here.  Please refer to the COPYRIGHT file distributed with this
 * source distribution.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef _QQ_CRYPT_H_
#define _QQ_CRYPT_H_

#include <glib.h>

#define DECRYPT 0x00
#define ENCRYPT 0x01

gint qq_crypt(gint flag,
	     const guint8 *const instr, gint instrlen, 
	     const guint8 *const key, 
	     guint8 *outstr, gint *outstrlen_ptr);

#endif