summaryrefslogtreecommitdiff
path: root/lib/algorithms.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-01-13 10:20:56 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-01-13 10:21:06 +0100
commit420c36563187773122de12d6822322794d2b8b17 (patch)
tree8f7c590a0a97b9443d7f8af45911c7b90705431a /lib/algorithms.h
parentfcc014e69775c6e369f6d902e31382328b3606ea (diff)
downloadgnutls-420c36563187773122de12d6822322794d2b8b17.tar.gz
Added certificate verification profiles.
Diffstat (limited to 'lib/algorithms.h')
-rw-r--r--lib/algorithms.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/algorithms.h b/lib/algorithms.h
index 8fff5104dd..0ab19a4afe 100644
--- a/lib/algorithms.h
+++ b/lib/algorithms.h
@@ -329,4 +329,14 @@ static inline int _gnutls_kx_is_ecc(gnutls_kx_algorithm_t kx)
return 0;
}
+static inline int _sig_is_ecdsa(gnutls_sign_algorithm_t sig)
+{
+ if (sig == GNUTLS_SIGN_ECDSA_SHA1 || sig == GNUTLS_SIGN_ECDSA_SHA224 ||
+ sig == GNUTLS_SIGN_ECDSA_SHA256 || sig == GNUTLS_SIGN_ECDSA_SHA384 ||
+ sig == GNUTLS_SIGN_ECDSA_SHA512)
+ return 1;
+
+ return 0;
+}
+
#endif