/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to plugins.d/mandos-client.c

  • Committer: Teddy Hogeborn
  • Date: 2016-07-03 03:32:28 UTC
  • Revision ID: teddy@recompile.se-20160703033228-cafpnnfs53kdg52g
Change all http:// URLs to https:// wherever possible.

* INSTALL (Prerequisites/Libraries/Mandos Server): Change "http://" to
  "https://" wherever possible.
* Makefile (FORTIFY): - '' -
* mandos.xml (SEE ALSO): - '' -
* plugin-runner.c (main): - '' -
* plugins.d/mandos-client.c (start_mandos_communication): - '' -
* plugins.d/mandos-client.xml (SEE ALSO): - '' -

Show diffs side-by-side

added added

removed removed

Lines of Context:
1237
1237
           with an explicit route added with the server's address.
1238
1238
           
1239
1239
           Avahi bug reference:
1240
 
           http://lists.freedesktop.org/archives/avahi/2010-February/001833.html
 
1240
           https://lists.freedesktop.org/archives/avahi/2010-February/001833.html
1241
1241
           https://bugs.debian.org/587961
1242
1242
        */
1243
1243
        if(debug){
1423
1423
                                               &decrypted_buffer, mc);
1424
1424
    if(decrypted_buffer_size >= 0){
1425
1425
      
 
1426
      clearerr(stdout);
1426
1427
      written = 0;
1427
1428
      while(written < (size_t) decrypted_buffer_size){
1428
1429
        if(quit_now){
1444
1445
        }
1445
1446
        written += (size_t)ret;
1446
1447
      }
 
1448
      ret = fflush(stdout);
 
1449
      if(ret != 0){
 
1450
        int e = errno;
 
1451
        if(debug){
 
1452
          fprintf_plus(stderr, "Error writing encrypted data: %s\n",
 
1453
                       strerror(errno));
 
1454
        }
 
1455
        errno = e;
 
1456
        goto mandos_end;
 
1457
      }
1447
1458
      retval = 0;
1448
1459
    }
1449
1460
  }
2485
2496
  
2486
2497
  {
2487
2498
    /* Work around Debian bug #633582:
2488
 
       <http://bugs.debian.org/633582> */
 
2499
       <https://bugs.debian.org/633582> */
2489
2500
    
2490
2501
    /* Re-raise privileges */
2491
2502
    ret = raise_privileges();