aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/plugins/eap_tls/tls/tls_crypto.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-02-09 18:19:25 +0100
committerMartin Willi <martin@revosec.ch>2010-08-03 15:39:25 +0200
commit400df4ca7c659d2f371129d18c6dedf82840c2ea (patch)
treec345844c243c9ab49b7e07af9921cab0a67a5462 /src/charon/plugins/eap_tls/tls/tls_crypto.h
parent97abf95412026355bfc3158ce9bb917cd014e2d3 (diff)
downloadstrongswan-400df4ca7c659d2f371129d18c6dedf82840c2ea.tar.bz2
strongswan-400df4ca7c659d2f371129d18c6dedf82840c2ea.tar.xz
Implemented EAP-TLS server functionality
Diffstat (limited to 'src/charon/plugins/eap_tls/tls/tls_crypto.h')
-rw-r--r--src/charon/plugins/eap_tls/tls/tls_crypto.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/charon/plugins/eap_tls/tls/tls_crypto.h b/src/charon/plugins/eap_tls/tls/tls_crypto.h
index 49bc09c99..69b8da742 100644
--- a/src/charon/plugins/eap_tls/tls/tls_crypto.h
+++ b/src/charon/plugins/eap_tls/tls/tls_crypto.h
@@ -116,10 +116,21 @@ struct tls_crypto_t {
* Create a signature of the handshake data using a given private key.
*
* @param key private key to use for signature
- * @param sig allocated signature
+ * @param writer TLS writer to write signature to
* @return TRUE if signature create successfully
*/
- bool (*sign_handshake)(tls_crypto_t *this, private_key_t *key, chunk_t *sig);
+ bool (*sign_handshake)(tls_crypto_t *this, private_key_t *key,
+ tls_writer_t *writer);
+
+ /**
+ * Verify the signature over handshake data using a given public key.
+ *
+ * @param key public key to verify signature with
+ * @param reader TLS reader to read signature from
+ * @return TRUE if signature valid
+ */
+ bool (*verify_handshake)(tls_crypto_t *this, public_key_t *key,
+ tls_reader_t *reader);
/**
* Calculate the data of a TLS finished message.