Project

General

Profile

0001-Fix-finding-of-ca-bundle.crt-on-Windows.patch

rhabacker, 04/17/2021 08:57 PM

Download (1.76 KB)

View differences:

src/sio/syncio_tls.c
504 504

  
505 505
  /* find default trust file if none is selected */
506 506
  if (lflags & GWEN_SYNCIO_TLS_FLAGS_ADD_TRUSTED_CAS) {
507
    int trustFileSet=0;
508

  
507 509
#if GWEN_TLS_USE_SYSTEM_CERTIFICATES
508 510
    /* disable setting of default trust file as discussed on aqbanking-users.
509 511
     * The rationale is that without this file being set gnutls should behave
......
512 514
     * distribution. On Windows the default CA store should be used (if given
513 515
     * "--with-default-trust-store-file" to "./configure" of GNUTLS).
514 516
     */
515
    int trustFileSet=0;
516

  
517

  
518 517
    if (trustFileSet==0) {
519 518
      /* Adds the system's default trusted CAs in order to verify client or server certificates. */
520 519
      rv=gnutls_certificate_set_x509_system_trust(xio->credentials);
......
526 525
        trustFileSet=1;
527 526
      }
528 527
    }
528
#endif
529 529

  
530 530
    /* try to find OpenSSL certificates */
531 531
# ifdef OS_WIN32
......
633 633
    if (trustFileSet==0) {
634 634
      DBG_WARN(GWEN_LOGDOMAIN, "No default bundle file found");
635 635
    }
636
#endif
637 636
  }
638 637

  
639 638
  /* possibly set trust file */
640
-