projects
/
libradsec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b2de10
)
Add typedefs to use instead of enum to avoid ABI issues.
author
Linus Nordberg
<linus@nordu.net>
Tue, 14 Sep 2010 22:35:56 +0000
(
00:35
+0200)
committer
Linus Nordberg
<linus@nordu.net>
Tue, 14 Sep 2010 22:35:56 +0000
(
00:35
+0200)
The size of an enum isn't well defined.
lib/libradsec.h
patch
|
blob
|
history
diff --git
a/lib/libradsec.h
b/lib/libradsec.h
index
b4543f8
..
81c8f4c
100644
(file)
--- 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;