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

  • Committer: Björn Påhlsson
  • Date: 2008-07-21 19:15:06 UTC
  • mfrom: (19 mandos)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: belorn@braxen-20080721191506-f4av11wlu2cmmeid
merge

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