summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2016-08-07 11:41:47 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-08-08 08:25:18 +0200
commit183ddf5b0a5a483c4c5890cf8a5cbe07e5008554 (patch)
treeac3bf9396d9a9ee8d1324d472c2fc3bc1d49f5dd /lib
parent1ba1fb46e228197ad18be1fac26c450c7ecf6479 (diff)
downloadgnutls-183ddf5b0a5a483c4c5890cf8a5cbe07e5008554.tar.gz
gnutls.h: moved all compatibility defines outside the enum
Diffstat (limited to 'lib')
-rw-r--r--lib/includes/gnutls/gnutls.h.in19
1 files changed, 11 insertions, 8 deletions
diff --git a/lib/includes/gnutls/gnutls.h.in b/lib/includes/gnutls/gnutls.h.in
index b28e9010ce..73ac461cd7 100644
--- a/lib/includes/gnutls/gnutls.h.in
+++ b/lib/includes/gnutls/gnutls.h.in
@@ -363,25 +363,28 @@ typedef enum {
*/
typedef enum {
GNUTLS_SERVER = 1,
-#define GNUTLS_SERVER (1)
GNUTLS_CLIENT = (1<<1),
-#define GNUTLS_CLIENT (1<<1)
GNUTLS_DATAGRAM = (1<<2),
-#define GNUTLS_DATAGRAM (1<<2)
GNUTLS_NONBLOCK = (1<<3),
-#define GNUTLS_NONBLOCK (1<<3)
GNUTLS_NO_EXTENSIONS = (1<<4),
-#define GNUTLS_NO_EXTENSIONS (1<<4)
GNUTLS_NO_REPLAY_PROTECTION = (1<<5),
-#define GNUTLS_NO_REPLAY_PROTECTION (1<<5)
GNUTLS_NO_SIGNAL = (1<<6),
-#define GNUTLS_NO_SIGNAL (1<<6)
GNUTLS_ALLOW_ID_CHANGE = (1<<7),
-#define GNUTLS_ALLOW_ID_CHANGE (1<<7)
GNUTLS_ENABLE_FALSE_START = (1<<8),
GNUTLS_FORCE_CLIENT_CERT = (1<<9)
} gnutls_init_flags_t;
+/* compatibility defines (previous versions of gnutls
+ * used defines instead of enumerated values). */
+#define GNUTLS_SERVER (1)
+#define GNUTLS_CLIENT (1<<1)
+#define GNUTLS_DATAGRAM (1<<2)
+#define GNUTLS_NONBLOCK (1<<3)
+#define GNUTLS_NO_EXTENSIONS (1<<4)
+#define GNUTLS_NO_REPLAY_PROTECTION (1<<5)
+#define GNUTLS_NO_SIGNAL (1<<6)
+#define GNUTLS_ALLOW_ID_CHANGE (1<<7)
+
/**
* gnutls_alert_level_t:
* @GNUTLS_AL_WARNING: Alert of warning severity.