aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtls/tls_crypto.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-09-02 10:29:32 +0200
committerMartin Willi <martin@revosec.ch>2010-09-02 13:07:25 +0200
commitdbb7c0306cbb5e6276745f0cdfd9a46edd086fb1 (patch)
tree092c02d5557b8066c95f92c1695f769f0591cc9a /src/libtls/tls_crypto.h
parent99dcaea9bd31f5d8894b7607f0239ea8fa61d7ec (diff)
downloadstrongswan-dbb7c0306cbb5e6276745f0cdfd9a46edd086fb1.tar.bz2
strongswan-dbb7c0306cbb5e6276745f0cdfd9a46edd086fb1.tar.xz
Support different hash/sig algorithms in handshake signing, including ECDSA
Diffstat (limited to 'src/libtls/tls_crypto.h')
-rw-r--r--src/libtls/tls_crypto.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libtls/tls_crypto.h b/src/libtls/tls_crypto.h
index 4ae456f38..be4005dad 100644
--- a/src/libtls/tls_crypto.h
+++ b/src/libtls/tls_crypto.h
@@ -349,10 +349,11 @@ struct tls_crypto_t {
*
* @param key private key to use for signature
* @param writer TLS writer to write signature to
+ * @param hashsig list of TLS1.2 hash/sig algorithms to select from
* @return TRUE if signature create successfully
*/
bool (*sign_handshake)(tls_crypto_t *this, private_key_t *key,
- tls_writer_t *writer);
+ tls_writer_t *writer, chunk_t hashsig);
/**
* Verify the signature over handshake data using a given public key.