lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

500-gnutls_3.4.patch (803B)


      1 --- aiccu/common/common.c
      2 +++ aiccu/common/common.c
      3 @@ -271,8 +271,6 @@
      4  TLSSOCKET sock_alloc(void)
      5  {
      6  #ifdef AICCU_GNUTLS
      7 -	/* Allow connections to servers that have OpenPGP keys as well */
      8 -	const int	cert_type_priority[3] = { GNUTLS_CRT_X509, GNUTLS_CRT_OPENPGP, 0 };
      9  	int		ret;
     10  #endif /* AICCU_GNUTLS*/
     11  
     12 @@ -300,7 +298,8 @@
     13  	gnutls_set_default_priority(sock->session);
     14  	/* XXX: Return value is not documented in GNUTLS documentation! */
     15  
     16 -	gnutls_certificate_type_set_priority(sock->session, cert_type_priority);
     17 +	/* Allow connections to servers that have OpenPGP keys as well */
     18 +	gnutls_priority_set_direct(sock->session, "NORMAL:+CTYPE-OPENPGP", NULL);
     19  	/* XXX: Return value is not documented in GNUTLS documentation! */
     20  
     21  	/* Configure the x509 credentials for the current session */
     22