tests: fix build with libpurple 3.x.x
[siplcs.git] / src / purple / tests.c
blob5c5847db5a9679315a023cd0f2cdaafc29a27a35
1 /**
2 * @file tests.c
4 * pidgin-sipe
6 * Copyright (C) 2011 SIPE Project <http://sipe.sourceforge.net/>
7 * Copyright (C) 2010 pier11 <pier11@operamail.com>
8 * Copyright (C) 2008 Novell, Inc.
10 * Implemented with reference to the follow documentation:
11 * - http://davenport.sourceforge.net/ntlm.html
12 * - MS-NLMP: http://msdn.microsoft.com/en-us/library/cc207842.aspx
13 * - MS-SIP : http://msdn.microsoft.com/en-us/library/cc246115.aspx
15 * Please use "make tests" to build & run them!
17 * This program is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License as published by
19 * the Free Software Foundation; either version 2 of the License, or
20 * (at your option) any later version.
22 * This program is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
27 * You should have received a copy of the GNU General Public License
28 * along with this program; if not, write to the Free Software
29 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32 #include <glib.h>
34 #include "version.h"
35 #if !PURPLE_VERSION_CHECK(3,0,0)
36 #include "cipher.h"
37 #endif
39 #include "debug.h"
40 #include "signals.h"
42 #include "sipe-common.h"
43 #include "sipe-core.h"
45 /* stub for purple-user.c */
46 void sipe_core_user_ask_cb(SIPE_UNUSED_PARAMETER gpointer key,
47 SIPE_UNUSED_PARAMETER gboolean accepted)
51 gboolean sip_sec_ntlm_tests(void);
53 int main()
55 /* Initialization that libpurple/core.c would normally do */
56 purple_signals_init();
57 purple_debug_init();
58 purple_debug_set_enabled(TRUE);
59 #if !PURPLE_VERSION_CHECK(3,0,0)
60 purple_ciphers_init();
61 #endif
63 /* Run tests */
64 return(sip_sec_ntlm_tests() ? 0 : 1);
68 Local Variables:
69 mode: c
70 c-file-style: "bsd"
71 indent-tabs-mode: t
72 tab-width: 8
73 End: