/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: 2013-10-22 19:24:01 UTC
  • Revision ID: teddy@recompile.se-20131022192401-op6mwsb7f7gygjyh
* mandos (priority): Bug fix: Add even more magic to make the old
                     DSA/ELG 2048-bit keys work with GnuTLS.
* mandos-keygen (KEYCOMMENT): Changed default to "".
* mandos-keygen (OPTIONS): Document new default value of "--comment".
* mandos-options.xml (priority): Document new default value.
* mandos.conf (priority): - '' -

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-2013 Teddy Hogeborn
 
13
 * Copyright © 2008-2013 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
187
187
  
188
188
  TEMP_FAILURE_RETRY(fprintf(stream, "Mandos plugin %s: ",
189
189
                             program_invocation_short_name));
190
 
  return TEMP_FAILURE_RETRY(vfprintf(stream, format, ap));
 
190
  return (int)TEMP_FAILURE_RETRY(vfprintf(stream, format, ap));
191
191
}
192
192
 
193
193
/*
659
659
    return -1;
660
660
  }
661
661
  
 
662
  /* If the interface is specified and we have a list of interfaces */
662
663
  if(if_index != AVAHI_IF_UNSPEC and mc->interfaces != NULL){
663
664
    /* Check if the interface is one of the interfaces we are using */
664
665
    bool match = false;
673
674
      }
674
675
    }
675
676
    if(not match){
 
677
      /* This interface does not match any in the list, so we don't
 
678
         connect to the server */
676
679
      if(debug){
677
680
        char interface[IF_NAMESIZE];
678
681
        if(if_indextoname((unsigned int)if_index, interface) == NULL){
2181
2184
    }
2182
2185
  }
2183
2186
  
2184
 
  /* Bring up interfaces which are down */
 
2187
  /* Bring up interfaces which are down, and remove any "none"s */
2185
2188
  {
2186
2189
    char *interface = NULL;
2187
2190
    while((interface = argz_next(mc.interfaces, mc.interfaces_size,
2328
2331
        fprintf_plus(stderr, "Retrying in %d seconds\n",
2329
2332
                     (int)retry_interval);
2330
2333
      }
2331
 
      sleep((int)retry_interval);
 
2334
      sleep((unsigned int)retry_interval);
2332
2335
    }
2333
2336
    
2334
2337
    if (not quit_now){