/mandos/release

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

« back to all changes in this revision

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

Removed implemented TODO entry

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 * "browse_callback", and parts of "main".
10
10
 * 
11
11
 * Everything else is
12
 
 * Copyright © 2008-2012 Teddy Hogeborn
13
 
 * Copyright © 2008-2012 Björn Påhlsson
 
12
 * Copyright © 2008-2011 Teddy Hogeborn
 
13
 * Copyright © 2008-2011 Björn Påhlsson
14
14
 * 
15
15
 * This program is free software: you can redistribute it and/or
16
16
 * modify it under the terms of the GNU General Public License as
41
41
 
42
42
#include <stdio.h>              /* fprintf(), stderr, fwrite(),
43
43
                                   stdout, ferror(), remove() */
44
 
#include <stdint.h>             /* uint16_t, uint32_t, intptr_t */
 
44
#include <stdint.h>             /* uint16_t, uint32_t */
45
45
#include <stddef.h>             /* NULL, size_t, ssize_t */
46
46
#include <stdlib.h>             /* free(), EXIT_SUCCESS, srand(),
47
47
                                   strtof(), abort() */
821
821
    goto mandos_end;
822
822
  }
823
823
  
824
 
  /* This casting via intptr_t is to eliminate warning about casting
825
 
     an int to a pointer type.  This is exactly how the GnuTLS Guile
826
 
     function "set-session-transport-fd!" does it. */
827
 
  gnutls_transport_set_ptr(session,
828
 
                           (gnutls_transport_ptr_t)(intptr_t)tcp_sd);
 
824
  /* Spurious warning from -Wint-to-pointer-cast */
 
825
  gnutls_transport_set_ptr(session, (gnutls_transport_ptr_t) tcp_sd);
829
826
  
830
827
  if(quit_now){
831
828
    errno = EINTR;
1453
1450
          perror_plus("setenv");
1454
1451
          _exit(EX_OSERR);
1455
1452
        }
1456
 
        ret = setenv("VERBOSITY", debug ? "1" : "0", 1);
 
1453
        ret = setenv("VERBOSE", debug ? "1" : "0", 1);
1457
1454
        if(ret == -1){
1458
1455
          perror_plus("setenv");
1459
1456
          _exit(EX_OSERR);
1476
1473
          _exit(EX_OSERR);
1477
1474
        }
1478
1475
        free(delaystring);
1479
 
        if(connect_to != NULL){
1480
 
          ret = setenv("CONNECT", connect_to, 1);
1481
 
          if(ret == -1){
1482
 
            perror_plus("setenv");
1483
 
            _exit(EX_OSERR);
1484
 
          }
1485
 
        }
1486
1476
        if(execl(fullname, direntry->d_name, mode, NULL) == -1){
1487
1477
          perror_plus("execl");
1488
1478
          _exit(EXIT_FAILURE);
1611
1601
        .group = 2 },
1612
1602
      { .name = "retry", .key = 132,
1613
1603
        .arg = "SECONDS",
1614
 
        .doc = "Retry interval used when denied by the Mandos server",
 
1604
        .doc = "Retry interval used when denied by the mandos server",
1615
1605
        .group = 2 },
1616
1606
      { .name = "network-hook-dir", .key = 133,
1617
1607
        .arg = "DIR",