mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
aiccu: enable GnuTLS support
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
--- aiccu/common/common.c
|
||||
+++ aiccu/common/common.c
|
||||
@@ -271,8 +271,6 @@
|
||||
TLSSOCKET sock_alloc(void)
|
||||
{
|
||||
#ifdef AICCU_GNUTLS
|
||||
- /* Allow connections to servers that have OpenPGP keys as well */
|
||||
- const int cert_type_priority[3] = { GNUTLS_CRT_X509, GNUTLS_CRT_OPENPGP, 0 };
|
||||
int ret;
|
||||
#endif /* AICCU_GNUTLS*/
|
||||
|
||||
@@ -300,7 +298,8 @@
|
||||
gnutls_set_default_priority(sock->session);
|
||||
/* XXX: Return value is not documented in GNUTLS documentation! */
|
||||
|
||||
- gnutls_certificate_type_set_priority(sock->session, cert_type_priority);
|
||||
+ /* Allow connections to servers that have OpenPGP keys as well */
|
||||
+ gnutls_priority_set_direct(sock->session, "NORMAL:+CTYPE-OPENPGP", NULL);
|
||||
/* XXX: Return value is not documented in GNUTLS documentation! */
|
||||
|
||||
/* Configure the x509 credentials for the current session */
|
||||
|
||||
Reference in New Issue
Block a user