summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-03-21 20:45:16 +0100
committerGravatar Nikias Bassen2014-03-21 20:45:16 +0100
commitdaf3b235f4f04c21b2765f61db7ae56ff9cdb6ba (patch)
treec0656607175cdeff238a7fe5e2dfe94302992a51 /common
parentd95dfaacb04448230a4ab6a3fb152d96d13e959f (diff)
downloadlibimobiledevice-daf3b235f4f04c21b2765f61db7ae56ff9cdb6ba.tar.gz
libimobiledevice-daf3b235f4f04c21b2765f61db7ae56ff9cdb6ba.tar.bz2
implement global thread safe library initialization
Diffstat (limited to 'common')
-rw-r--r--common/userpref.c4
1 files changed, 0 insertions, 4 deletions
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)