aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtls/tls_handshake.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2011-12-30 18:29:11 +0100
committerMartin Willi <martin@revosec.ch>2011-12-31 13:14:49 +0100
commit4caa380625e583c9bad5b9333e65ef1f9486bb2a (patch)
treea2c1506149b99baae89b590f5f6fc4eab0d28948 /src/libtls/tls_handshake.h
parent7c0c2349a9e0e64a96695c369bccdb244c1b9344 (diff)
downloadstrongswan-4caa380625e583c9bad5b9333e65ef1f9486bb2a.tar.bz2
strongswan-4caa380625e583c9bad5b9333e65ef1f9486bb2a.tar.xz
Separated cipherspec checking and switching, allowing us to defer the second
Diffstat (limited to 'src/libtls/tls_handshake.h')
-rw-r--r--src/libtls/tls_handshake.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/libtls/tls_handshake.h b/src/libtls/tls_handshake.h
index 4f6af2a54..bea0024eb 100644
--- a/src/libtls/tls_handshake.h
+++ b/src/libtls/tls_handshake.h
@@ -62,18 +62,19 @@ struct tls_handshake_t {
tls_handshake_type_t *type, bio_writer_t *writer);
/**
- * Check if the cipher spec for outgoing messages has changed.
+ * Check if the cipher spec should be changed for outgoing messages.
*
- * @return TRUE if cipher spec changed
+ * @param inbound TRUE to check for inbound cipherspec change
+ * @return TRUE if cipher spec should be changed
*/
- bool (*cipherspec_changed)(tls_handshake_t *this);
+ bool (*cipherspec_changed)(tls_handshake_t *this, bool inbound);
/**
- * Change the cipher spec for incoming messages.
+ * Change the cipher for a direction.
*
- * @return TRUE if cipher spec changed
+ * @param inbound TRUE to change inbound cipherspec, FALSE for outbound
*/
- bool (*change_cipherspec)(tls_handshake_t *this);
+ void (*change_cipherspec)(tls_handshake_t *this, bool inbound);
/**
* Check if the finished message was decoded successfully.