Back to index

opendkim  2.6.6
t-test133.c
Go to the documentation of this file.
00001 /*
00002 **  Copyright (c) 2005-2008 Sendmail, Inc. and its suppliers.
00003 **    All rights reserved.
00004 **
00005 **  Copyright (c) 2010, 2011, The OpenDKIM Project.  All rights reserved.
00006 */
00007 
00008 #ifndef lint
00009 static char t_test133_c_id[] = "@(#)$Id: t-test133.c,v 1.2 2010/03/03 02:58:05 grooverdan Exp $";
00010 #endif /* !lint */
00011 
00012 #include "build-config.h"
00013 
00014 /* system includes */
00015 #include <sys/types.h>
00016 #include <assert.h>
00017 #include <stdio.h>
00018 
00019 #ifdef USE_GNUTLS
00020 # include <gnutls/gnutls.h>
00021 #endif /* USE_GNUTLS */
00022 
00023 /* libopendkim includes */
00024 #include "../dkim.h"
00025 
00026 /*
00027 **  MAIN -- program mainline
00028 **
00029 **  Parameters:
00030 **     The usual.
00031 **
00032 **  Return value:
00033 **     Exit status.
00034 */
00035 
00036 int
00037 main(int argc, char **argv)
00038 {
00039        unsigned long libversion;
00040 
00041        printf("*** testing dkim_libversion()\n");
00042 
00043        libversion = dkim_libversion();
00044        assert(libversion == OPENDKIM_LIB_VERSION);
00045 
00046        return 0;
00047 }