/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/mandosclient.c

  • Committer: Björn Påhlsson
  • Date: 2008-07-21 03:58:36 UTC
  • mfrom: (17 mandos)
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: belorn@braxen-20080721035836-v7220bmolr608r61
Added getopt_long support for mandosclient and passprompt
Added support for --interface for mandosclient
Added support for --prefix for passprompt

Show diffs side-by-side

added added

removed removed

Lines of Context:
318
318
 
319
319
void empty_log(AvahiLogLevel level, const char *txt){}
320
320
 
321
 
int start_mandos_communication(char *ip, uint16_t port){
 
321
int start_mandos_communcation(char *ip, uint16_t port){
322
322
  int ret, tcp_sd;
323
323
  struct sockaddr_in6 to;
 
324
  struct in6_addr ip_addr;
324
325
  encrypted_session es;
325
326
  char *buffer = NULL;
326
327
  char *decrypted_buffer;
351
352
  
352
353
  memset(&to,0,sizeof(to));
353
354
  to.sin6_family = AF_INET6;
354
 
  ret = inet_pton(AF_INET6, ip, &to.sin6_addr);
 
355
  ret = inet_pton(AF_INET6, ip, &ip_addr);
355
356
  if (ret < 0 ){
356
357
    perror("inet_pton");
357
358
    return -1;
500
501
            if(debug){
501
502
              fprintf(stderr, "Mandos server found at %s on port %d\n", ip, port);
502
503
            }
503
 
            int ret = start_mandos_communication(ip, port);
 
504
            int ret = start_mandos_communcation(ip, port);
504
505
            if (ret == 0){
505
506
              exit(EXIT_SUCCESS);
506
507
            } else {