]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
gnutls.h: define elements of gnutls_init_flags_t
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 20 Jul 2016 11:23:16 +0000 (13:23 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 20 Jul 2016 11:31:26 +0000 (13:31 +0200)
That is, define all the elements that were available prior
the move from #define to enum, to allow code relying on

lib/includes/gnutls/gnutls.h.in

index dfeff2b2467d6947e7cf7d8fb12f9ebb54ca3666..db00bb278ad91d77cb37d846ad5120bf7f8ee097 100644 (file)
@@ -363,13 +363,21 @@ 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;