diff options
author | Linus Nordberg <linus@nordu.net> | 2012-01-31 13:15:20 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2012-01-31 13:15:20 +0100 |
commit | dcd224f1fdf864fba1e1c1dd0b3f521fe43e4013 (patch) | |
tree | a7e03caec791dfd3311520a5a985d5923f25ac90 /lib/include/radsec/radsec-impl.h | |
parent | 76e68c0c676a9e795c70cc86d4b8e27396863d14 (diff) |
Implement TLS-PSK.
Diffstat (limited to 'lib/include/radsec/radsec-impl.h')
-rw-r--r-- | lib/include/radsec/radsec-impl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/include/radsec/radsec-impl.h b/lib/include/radsec/radsec-impl.h index 01288d3..59cb8bf 100644 --- a/lib/include/radsec/radsec-impl.h +++ b/lib/include/radsec/radsec-impl.h @@ -23,6 +23,12 @@ enum rs_cred_type { }; typedef unsigned int rs_cred_type_t; +enum rs_key_encoding { + RS_KEY_ENCODING_UTF8 = 1, + RS_KEY_ENCODING_ASCII_HEX = 2, +}; +typedef unsigned int rs_key_encoding_t; + #if defined (__cplusplus) extern "C" { #endif @@ -31,6 +37,8 @@ struct rs_credentials { enum rs_cred_type type; char *identity; char *secret; + enum rs_key_encoding secret_encoding; + unsigned int secret_len; }; struct rs_error { |