summaryrefslogtreecommitdiff
path: root/lib/algorithms.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-07-25 14:01:48 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-08-03 11:57:52 +0200
commit86da29a32b34bd2f84f914f5749c260d9ff11add (patch)
tree5468a1161ab3cc1d7cb97b1ff885465338c2357d /lib/algorithms.h
parente8b944e870a7247e0a8e541405b9e32b310ea8eb (diff)
downloadgnutls-86da29a32b34bd2f84f914f5749c260d9ff11add.tar.gz
*set_spki(): return error on incompatible algorithms
In addition update the public key algorithm field in the respective structure. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/algorithms.h')
-rw-r--r--lib/algorithms.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/algorithms.h b/lib/algorithms.h
index 46f411e685..30508e4e02 100644
--- a/lib/algorithms.h
+++ b/lib/algorithms.h
@@ -403,4 +403,6 @@ static inline int _sig_is_ecdsa(gnutls_sign_algorithm_t sig)
return 0;
}
+bool _gnutls_pk_are_compat(gnutls_pk_algorithm_t pk1, gnutls_pk_algorithm_t pk2);
+
#endif