From dcd224f1fdf864fba1e1c1dd0b3f521fe43e4013 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Tue, 31 Jan 2012 13:15:20 +0100 Subject: Implement TLS-PSK. --- lib/include/radsec/radsec-impl.h | 8 ++++++++ lib/include/radsec/radsec.h | 1 + 2 files changed, 9 insertions(+) (limited to 'lib/include') 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 { diff --git a/lib/include/radsec/radsec.h b/lib/include/radsec/radsec.h index 2744cd2..abaa6e2 100644 --- a/lib/include/radsec/radsec.h +++ b/lib/include/radsec/radsec.h @@ -34,6 +34,7 @@ enum rs_error_code { RSE_TIMEOUT_IO = 18, /* I/O timeout. */ RSE_TIMEOUT = 19, /* High level timeout. */ RSE_DISCO = 20, + RSE_CRED = 21, /* Credentials. */ }; enum rs_conn_type { -- cgit v1.1