Lines 665-672
Link Here
|
665 |
the option parsing may need services of the libraries. */ |
665 |
the option parsing may need services of the libraries. */ |
666 |
|
666 |
|
667 |
/* Libgcrypt requires us to register the threading model first. |
667 |
/* Libgcrypt requires us to register the threading model first. |
668 |
Note that this will also do the pth_init. */ |
668 |
Note that this will also do the pth_init for libgcrypt < 1.6 */ |
669 |
|
669 |
|
|
|
670 |
#if GCRYPT_VERSION_NUMBER >= 0x010600 |
671 |
pth_init (); |
672 |
#endif |
670 |
/* Init Libgcrypt. */ |
673 |
/* Init Libgcrypt. */ |
671 |
rc = gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pth); |
674 |
rc = gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pth); |
672 |
if (rc) |
675 |
if (rc) |