123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- #ifndef TLS_PROTECTION_H_
- #define TLS_PROTECTION_H_
- #include <library.h>
- typedef struct tls_protection_t tls_protection_t;
- #include "tls.h"
- #include "tls_aead.h"
- #include "tls_alert.h"
- #include "tls_compression.h"
- struct tls_protection_t {
-
- status_t (*process)(tls_protection_t *this,
- tls_content_type_t type, chunk_t data);
-
- status_t (*build)(tls_protection_t *this,
- tls_content_type_t *type, chunk_t *data);
-
- void (*set_cipher)(tls_protection_t *this, bool inbound, tls_aead_t *aead);
-
- void (*set_version)(tls_protection_t *this, tls_version_t version);
-
- void (*destroy)(tls_protection_t *this);
- };
- tls_protection_t *tls_protection_create(tls_compression_t *compression,
- tls_alert_t *alert);
- #endif
|