From daf3b235f4f04c21b2765f61db7ae56ff9cdb6ba Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 21 Mar 2014 20:45:16 +0100 Subject: implement global thread safe library initialization --- common/userpref.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'common') diff --git a/common/userpref.c b/common/userpref.c index 808c55c..5fb8458 100644 --- a/common/userpref.c +++ b/common/userpref.c @@ -609,8 +609,6 @@ userpref_error_t pair_record_generate_keys_and_certs(plist_t pair_record, key_da gnutls_x509_privkey_t host_privkey; gnutls_x509_crt_t host_cert; - gnutls_global_init(); - /* use less secure random to speed up key generation */ gcry_control(GCRYCTL_ENABLE_QUICK_RANDOM); @@ -770,8 +768,6 @@ userpref_error_t pair_record_generate_keys_and_certs(plist_t pair_record, key_da gnutls_free(exponent.data); gnutls_free(der_pub_key.data); - - gnutls_global_deinit(); #endif if (NULL != root_cert_pem.data && 0 != root_cert_pem.size && NULL != host_cert_pem.data && 0 != host_cert_pem.size) -- cgit v1.1-32-gdbae