added generic TLS application data handler and specific EAP-TTLS instantiation

This commit is contained in:
Andreas Steffen
2010-08-12 23:58:54 +02:00
parent 123a84d3db
commit 1327839da8
14 changed files with 335 additions and 33 deletions
+5 -1
View File
@@ -33,6 +33,8 @@ typedef struct tls_t tls_t;
#include <library.h>
#include "tls_application.h"
/**
* TLS/SSL version numbers
*/
@@ -163,9 +165,11 @@ struct tls_t {
* @param server server identity
* @param peer peer identity
* @param msk_label ASCII string constant used as seed for MSK PRF
* @param application higher layer application or NULL if none
* @return TLS stack
*/
tls_t *tls_create(bool is_server, identification_t *server,
identification_t *peer, char *msk_label);
identification_t *peer, char *msk_label,
tls_application_t *application);
#endif /** TLS_H_ @}*/