@@ -357,7 +357,7 @@ static int tlshd_gnutls_priority_init_list(const unsigned int *ciphers,
357357 const char * errpos ;
358358 int ret , i ;
359359
360- pstring = strdup ("@SYSTEM: -COMP-ALL" );
360+ pstring = strdup ("-COMP-ALL" );
361361 if (!pstring )
362362 return - ENOMEM ;
363363
@@ -425,7 +425,8 @@ static int tlshd_gnutls_priority_init_list(const unsigned int *ciphers,
425425 }
426426
427427 tlshd_log_debug ("x.509 priority string: %s\n" , pstring );
428- ret = gnutls_priority_init (& tlshd_gnutls_priority_x509 , pstring , & errpos );
428+ ret = gnutls_priority_init2 (& tlshd_gnutls_priority_x509 , pstring , & errpos ,
429+ GNUTLS_PRIORITY_INIT_DEF_APPEND );
429430 if (ret != GNUTLS_E_SUCCESS ) {
430431 free (pstring_sha256 );
431432 free (pstring_sha384 );
@@ -442,7 +443,8 @@ static int tlshd_gnutls_priority_init_list(const unsigned int *ciphers,
442443 }
443444
444445 tlshd_log_debug ("PSK priority string: %s\n" , pstring );
445- ret = gnutls_priority_init (& tlshd_gnutls_priority_psk , pstring , & errpos );
446+ ret = gnutls_priority_init2 (& tlshd_gnutls_priority_psk , pstring , & errpos ,
447+ GNUTLS_PRIORITY_INIT_DEF_APPEND );
446448 if (ret != GNUTLS_E_SUCCESS ) {
447449 free (pstring_sha256 );
448450 free (pstring_sha384 );
@@ -461,8 +463,9 @@ static int tlshd_gnutls_priority_init_list(const unsigned int *ciphers,
461463 }
462464
463465 tlshd_log_debug ("PSK SHA256 priority string: %s\n" , pstring );
464- ret = gnutls_priority_init (& tlshd_gnutls_priority_psk_sha256 ,
465- pstring , & errpos );
466+ ret = gnutls_priority_init2 (& tlshd_gnutls_priority_psk_sha256 ,
467+ pstring , & errpos ,
468+ GNUTLS_PRIORITY_INIT_DEF_APPEND );
466469 if (ret != GNUTLS_E_SUCCESS ) {
467470 free (pstring );
468471 free (pstring_sha384 );
@@ -482,8 +485,9 @@ static int tlshd_gnutls_priority_init_list(const unsigned int *ciphers,
482485 }
483486
484487 tlshd_log_debug ("PSK SHA384 priority string: %s\n" , pstring );
485- ret = gnutls_priority_init (& tlshd_gnutls_priority_psk_sha384 ,
486- pstring , & errpos );
488+ ret = gnutls_priority_init2 (& tlshd_gnutls_priority_psk_sha384 ,
489+ pstring , & errpos ,
490+ GNUTLS_PRIORITY_INIT_DEF_APPEND );
487491 if (ret != GNUTLS_E_SUCCESS ) {
488492 free (pstring );
489493 gnutls_priority_deinit (tlshd_gnutls_priority_psk_sha256 );
0 commit comments