xca/lib/base.h
Christian eefbf7efde Merge branch 'qmake'
Conflicts:

	lib/func.cpp
	lib/func.h
	lib/pki_base.h
	lib/pki_x509super.h
2007-04-29 23:57:57 +02:00

36 lines
778 B
C

/* vi: set sw=4 ts=4:
*
* Copyright (C) 2001 - 2007 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 TRACE