summaryrefslogtreecommitdiff
path: root/lib/gnutls_algorithms.c
diff options
context:
space:
mode:
authorJonathan Bastien-Filiatrault <joe@x2a.org>2009-08-01 12:29:18 -0400
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-06-03 19:32:19 +0200
commit9c8631c68a728584b46b7d2ceff2e872ae8a59dd (patch)
tree956cc1fa01148326ef13103b300b5b21e0af7a9c /lib/gnutls_algorithms.c
parent11e32e847614d1f0736584d83360efeb0d11e459 (diff)
downloadgnutls-9c8631c68a728584b46b7d2ceff2e872ae8a59dd.tar.gz
Add version check function for selectable signature/hash certificate algorithms.
Diffstat (limited to 'lib/gnutls_algorithms.c')
-rw-r--r--lib/gnutls_algorithms.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/gnutls_algorithms.c b/lib/gnutls_algorithms.c
index ab59a5e5ff..f8f908749b 100644
--- a/lib/gnutls_algorithms.c
+++ b/lib/gnutls_algorithms.c
@@ -1287,6 +1287,14 @@ _gnutls_version_has_selectable_sighash (gnutls_protocol_t version)
return version == GNUTLS_TLS1_2;
}
+/* This function determines if the version specified has selectable
+ signature/hash functions for certificate authentification. */
+int
+_gnutls_version_has_selectable_sighash (gnutls_protocol_t version)
+{
+ return version >= GNUTLS_TLS1_2;
+}
+
/* This function determines if the version specified has support for
TLS extensions. */
int