/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/password-request.c

  • Committer: Teddy Hogeborn
  • Date: 2008-08-11 20:16:35 UTC
  • mfrom: (24.1.45 mandos)
  • Revision ID: teddy@fukt.bsnet.se-20080811201635-1vor0gz43trtily1
Merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
865
865
                           " passwords from mandos server" };
866
866
      ret = argp_parse (&argp, argc, argv, 0, 0, NULL);
867
867
      if (ret == ARGP_ERR_UNKNOWN){
868
 
        fprintf(stderr, "Unkown error while parsing arguments\n");
 
868
        fprintf(stderr, "Unknown error while parsing arguments\n");
869
869
        exitcode = EXIT_FAILURE;
870
870
        goto end;
871
871
      }
881
881
    seckeyfile = combinepath(keydir, seckeyfile);
882
882
    if (seckeyfile == NULL){
883
883
      perror("combinepath");
 
884
      exitcode = EXIT_FAILURE;
884
885
      goto end;
885
886
    }
886
887
 
887
888
    ret = init_gnutls_global(&mc, pubkeyfile, seckeyfile);
888
889
    if (ret == -1){
889
 
      fprintf(stderr, "init_gnutls_global\n");
 
890
      fprintf(stderr, "init_gnutls_global failed\n");
 
891
      exitcode = EXIT_FAILURE;
890
892
      goto end;
891
893
    } else {
892
894
      gnutls_initalized = true;