diff options
author | Linus Nordberg <linus@nordu.net> | 2010-09-15 00:35:56 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2010-09-15 00:35:56 +0200 |
commit | c0b178a6ed8d0f539aabf3548ac620bde37db905 (patch) | |
tree | b201c0b78ec8e8614b280d3e410374d2d6f6a9b4 | |
parent | 9b2de1086cec920530e7eea51d56e459ffe0c5ff (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.h | 2 |
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; |