summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2010-09-15 00:35:56 +0200
committerLinus Nordberg <linus@nordu.net>2010-09-15 00:35:56 +0200
commitc0b178a6ed8d0f539aabf3548ac620bde37db905 (patch)
treeb201c0b78ec8e8614b280d3e410374d2d6f6a9b4
parent9b2de1086cec920530e7eea51d56e459ffe0c5ff (diff)
Add typedefs to use instead of enum to avoid ABI issues.
The size of an enum isn't well defined.
-rw-r--r--lib/libradsec.h2
1 files changed, 2 insertions, 0 deletions
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;