Navigation


Changeset 542:0b6cee362f5d in freeDiameter for freeDiameter/cnxctx.c


Ignore:
Timestamp:
Sep 13, 2010, 6:39:22 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Enforce validation of local certificate upon daemon start.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/cnxctx.c

    r455 r542  
    11761176                CHECK_GNUTLS_DO( gnutls_x509_crt_import (cert, &cert_list[i], GNUTLS_X509_FMT_DER), return EINVAL);
    11771177               
     1178                /* When gnutls 2.10.1 is around, we should use gnutls_certificate_set_verify_function */
     1179               
    11781180                GNUTLS_TRACE( deadline = gnutls_x509_crt_get_expiration_time(cert) );
    11791181                if ((deadline != (time_t)-1) && (deadline < now)) {
     
    12531255        {
    12541256                int ret;
     1257               
     1258                /* When gnutls 2.10.1 is around, we should use gnutls_certificate_set_verify_function */
     1259               
    12551260                CHECK_GNUTLS_DO( ret = gnutls_handshake(conn->cc_tls_para.session),
    12561261                        {
Note: See TracChangeset for help on using the changeset viewer.