Fix dangling/unused bindings in `(gnutls)'.
[gnutls.git] / tests / simple.c
blobeeb83687c84ff2766cce4821c358fa75a4f77665
1 /*
2 * Copyright (C) 2004, 2005 Free Software Foundation
4 * Author: Simon Josefsson
6 * This file is part of GNUTLS.
8 * GNUTLS is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 3 of the License, or
11 * (at your option) any later version.
13 * GNUTLS is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with GNUTLS; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23 #ifdef HAVE_CONFIG_H
24 # include <config.h>
25 #endif
27 #include <stdio.h>
29 #include "utils.h"
31 void
32 doit (void)
34 if (debug)
36 printf ("GNUTLS header version %s.\n", LIBGNUTLS_VERSION);
37 printf ("GNUTLS library version %s.\n", gnutls_check_version (NULL));
40 if (gnutls_check_version (LIBGNUTLS_VERSION))
41 success ("gnutls_check_version OK\n");
42 else
43 fail ("gnutls_check_version ERROR\n");