xca/lib/base.h
2009-11-24 17:54:21 +01:00

37 lines
812 B
C

/* vi: set sw=4 ts=4:
*
* Copyright (C) 2001 - 2009 Christian Hohnstaedt.
*
* All rights reserved.
*/
#ifndef BASE_H
#define BASE_H
#define XCA_TITLE "X Certificate and Key management"
#include <qglobal.h>
#include "local.h"
#ifdef WIN32
#include <windows.h>
#endif
#include <openssl/opensslv.h>
#if OPENSSL_VERSION_NUMBER >= 0x00908000L
#define D2I_CLASH(f, a, PP, s) f(a,(const unsigned char **)PP,s)
#define D2I_CLASHT(f, t, a, PP, s) f(t,a,(const unsigned char **)PP,s)
#define HAS_SHA256
#else
#define D2I_CLASH(f, a, PP, s) f(a,(unsigned char **)PP,s)
#define D2I_CLASHT(f, t, a, PP, s) f(t,a,(unsigned char **)PP,s)
#endif
#define CCHAR(x) qPrintable(x)
#endif
#define TRACE printf("File: "__FILE__" Func: %s Line: %d\n",__func__, __LINE__);
#define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))