security: add dummy digest tester
[siplcs.git] / src / core / sip-sec-digest-tests.c
blobf8d3b762decbf07b418800f681002e2976436d03
1 /**
2 * @file sip-sec-digest-test.c
4 * pidgin-sipe
6 * Copyright (C) 2013 SIPE Project <http://sipe.sourceforge.net/>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 #include <stdlib.h>
25 #include <stdio.h>
26 #include <stdarg.h>
28 #include <glib.h>
30 #include "sipe-common.h"
31 #include "uuid.h"
33 #include "sip-sec-digest.c"
36 * Stubs
38 gboolean sipe_backend_debug_enabled(void)
40 return(TRUE);
43 void sipe_backend_debug_literal(sipe_debug_level level,
44 const gchar *msg)
46 printf("DEBUG(%d): %s\n", level, msg);
49 void sipe_backend_debug(sipe_debug_level level,
50 const gchar *format,
51 ...)
53 va_list ap;
54 gchar *newformat = g_strdup_printf("DEBUG(%d): %s\n", level, format);
56 va_start(ap, format);
57 vprintf(newformat, ap);
58 va_end(ap);
60 g_free(newformat);
63 const gchar *sipe_backend_network_ip_address(SIPE_UNUSED_PARAMETER struct sipe_core_public *sipe_public)
65 return(NULL);
68 char *generateUUIDfromEPID(SIPE_UNUSED_PARAMETER const gchar *epid)
70 return(NULL);
73 char *sipe_get_epid(SIPE_UNUSED_PARAMETER const char *self_sip_uri,
74 SIPE_UNUSED_PARAMETER const char *hostname,
75 SIPE_UNUSED_PARAMETER const char *ip_address)
77 return(NULL);
81 * Tester code
83 int main(SIPE_UNUSED_PARAMETER int argc, SIPE_UNUSED_PARAMETER char *argv[])
85 guint failed = 0;
87 return(failed);
91 Local Variables:
92 mode: c
93 c-file-style: "bsd"
94 indent-tabs-mode: t
95 tab-width: 8
96 End: