Navigation


Changeset 820:0eb64b3a3632 in freeDiameter


Ignore:
Timestamp:
Sep 12, 2012, 3:51:18 AM (12 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Fix compilation with gnutls < 3.x

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/config.c

    r808 r820  
    398398               
    399399                CHECK_MALLOC( certs = calloc(cert_max, sizeof(gnutls_x509_crt_t)) );
    400                 CHECK_GNUTLS_DO( gnutls_x509_crt_list_import(certs, &cert_max, &certfile, GNUTLS_X509_FMT_PEM, GNUTLS_X509_CRT_LIST_FAIL_IF_UNSORTED),
     400                CHECK_GNUTLS_DO( gnutls_x509_crt_list_import(certs, &cert_max, &certfile, GNUTLS_X509_FMT_PEM,
     401                                #ifdef GNUTLS_VERSION_300
     402                                GNUTLS_X509_CRT_LIST_FAIL_IF_UNSORTED
     403                                #else /* GNUTLS_VERSION_300 */
     404                                0
     405                                #endif /* GNUTLS_VERSION_300 */
     406                                ),
    401407                        {
    402408                                TRACE_DEBUG(INFO, "Failed to import the data from file '%s'", fd_g_config->cnf_sec_data.cert_file);
Note: See TracChangeset for help on using the changeset viewer.