summaryrefslogtreecommitdiff
path: root/src/gnutls/globals.h
blob: b49e2404b3a202bbdc090c91d586dcfaab59546c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * XML Security Library
 *
 * globals.h: internal header only used during the compilation
 *
 * This is free software; see Copyright file in the source
 * distribution for preciese wording.
 *
 * Copyright (C) 2002-2003 Aleksey Sanin <aleksey@aleksey.com>
 */
#ifndef __XMLSEC_GLOBALS_H__
#define __XMLSEC_GLOBALS_H__

/**
 * Use autoconf defines if present.
 */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */

#define IN_XMLSEC_CRYPTO
#define XMLSEC_PRIVATE

#define XMLSEC_GNUTLS_GCRYPT_REPORT_ERROR(err)  \
        "error code=%d; error message='%s'",    \
        (int)err, xmlSecErrorsSafeString(gcry_strerror((err)))
#define XMLSEC_GNUTLS_REPORT_ERROR(err)         \
        "error code=%d; error message='%s'",    \
        (int)err, xmlSecErrorsSafeString(gnutls_strerror((err)))

#endif /* ! __XMLSEC_GLOBALS_H__ */