From c0b178a6ed8d0f539aabf3548ac620bde37db905 Mon Sep 17 00:00:00 2001
From: Linus Nordberg <linus@nordu.net>
Date: Wed, 15 Sep 2010 00:35:56 +0200
Subject: Add typedefs to use instead of enum to avoid ABI issues.

The size of an enum isn't well defined.
---
 lib/libradsec.h | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'lib')

diff --git a/lib/libradsec.h b/lib/libradsec.h
index b4543f8..81c8f4c 100644
--- a/lib/libradsec.h
+++ b/lib/libradsec.h
@@ -18,11 +18,13 @@ enum rs_conn_type {
     RS_CONN_TYPE_TLS,
     RS_CONN_TYPE_DTLS,
 };
+typedef unsigned int rs_conn_type_t;
 
 enum rs_cred_type {
     RS_CRED_NONE = 0,
     RS_CRED_TLS_PSK_RSA,	/* RFC 4279.  */
 };
+typedef unsigned int rs_cred_type_t;
 
 struct rs_credentials {
     enum rs_cred_type type;
-- 
cgit v1.1