diff options
Diffstat (limited to 'common/userpref.c')
| -rw-r--r-- | common/userpref.c | 4 |
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 | |||
| 609 | gnutls_x509_privkey_t host_privkey; | 609 | gnutls_x509_privkey_t host_privkey; |
| 610 | gnutls_x509_crt_t host_cert; | 610 | gnutls_x509_crt_t host_cert; |
| 611 | 611 | ||
| 612 | gnutls_global_init(); | ||
| 613 | |||
| 614 | /* use less secure random to speed up key generation */ | 612 | /* use less secure random to speed up key generation */ |
| 615 | gcry_control(GCRYCTL_ENABLE_QUICK_RANDOM); | 613 | gcry_control(GCRYCTL_ENABLE_QUICK_RANDOM); |
| 616 | 614 | ||
| @@ -770,8 +768,6 @@ userpref_error_t pair_record_generate_keys_and_certs(plist_t pair_record, key_da | |||
| 770 | gnutls_free(exponent.data); | 768 | gnutls_free(exponent.data); |
| 771 | 769 | ||
| 772 | gnutls_free(der_pub_key.data); | 770 | gnutls_free(der_pub_key.data); |
| 773 | |||
| 774 | gnutls_global_deinit(); | ||
| 775 | #endif | 771 | #endif |
| 776 | if (NULL != root_cert_pem.data && 0 != root_cert_pem.size && | 772 | if (NULL != root_cert_pem.data && 0 != root_cert_pem.size && |
| 777 | NULL != host_cert_pem.data && 0 != host_cert_pem.size) | 773 | NULL != host_cert_pem.data && 0 != host_cert_pem.size) |
