Navigation


Changeset 17:ab3c58d88be3 in freeDiameter for freeDiameter/main.c


Ignore:
Timestamp:
Oct 5, 2009, 2:03:05 PM (15 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added proper gcrypt initializer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/main.c

    r16 r17  
    3939#include <getopt.h>
    4040#include <locale.h>
    41 
    42 #ifdef GCRY_THREAD_OPTION_PTHREAD_IMPL
     41#include <gcrypt.h>
     42
    4343GCRY_THREAD_OPTION_PTHREAD_IMPL;
    44 #endif /* GCRY_THREAD_OPTION_PTHREAD_IMPL */
    45 
    4644
    4745/* forward declarations */
     
    8078       
    8179        /* Initialize gnutls */
     80        (void) gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
    8281        CHECK_GNUTLS_DO( gnutls_global_init(), return EINVAL );
    8382        if ( ! gnutls_check_version(GNUTLS_VERSION) ) {
Note: See TracChangeset for help on using the changeset viewer.