/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-31 15:06:39 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080831150639-tqdkyea3b9p3rou7
* Makefile: Make all DocBook rules include legalnotice.xml as a
            dependency.

* legalnotice.xml: New file with just the <legalnotice> tag in it.

* mandos-clients.conf.xml (/refentry): Add XInclude namespace.
  (/refentry/refentryinfo/legalnotice): Replaced with an inclusion of
                                        "legalnotice.xml".
* mandos-keygen.xml (/refentry/refentryinfo/legalnotice): - '' -
* mandos-conf.xml (/refentry/refentryinfo/legalnotice): - '' -
* mandos.xml (/refentry/refentryinfo/legalnotice): - '' -

* overview.xml: Changed root node tag name in DOCTYPE declaration.

* plugin-runner.xml (/refentry): Add XInclude namespace.
  (/refentry/refentryinfo/legalnotice): Replaced with an inclusion of
                                        "legalnotice.xml".

* plugins.d/password-prompt.xml (/refentry): Add XInclude namespace.
  (/refentry/refentryinfo/legalnotice): Replaced with an inclusion of
                                        "legalnotice.xml".

* plugins.d/password-request.xml (/refentry): Add XInclude namespace.
  (/refentry/refentryinfo/legalnotice): Replaced with an inclusion of
                                        "legalnotice.xml".

Show diffs side-by-side

added added

removed removed

Lines of Context:
774
774
    const char *pubkeyname = "pubkey.txt";
775
775
    const char *seckeyname = "seckey.txt";
776
776
    mandos_context mc = { .simple_poll = NULL, .server = NULL,
777
 
                          .dh_bits = 1024, .priority = "SECURE256"
778
 
                          ":!CTYPE-X.509:+CTYPE-OPENPGP" };
 
777
                          .dh_bits = 1024, .priority = "SECURE256"};
779
778
    bool gnutls_initalized = false;
780
779
    
781
780
    {
818
817
        /* Get the INPUT argument from `argp_parse', which we know is
819
818
           a pointer to our plugin list pointer. */
820
819
        switch (key) {
821
 
        case 128:               /* --debug */
 
820
        case 128:
822
821
          debug = true;
823
822
          break;
824
 
        case 'c':               /* --connect */
 
823
        case 'c':
825
824
          connect_to = arg;
826
825
          break;
827
 
        case 'i':               /* --interface */
 
826
        case 'i':
828
827
          interface = arg;
829
828
          break;
830
 
        case 'd':               /* --keydir */
 
829
        case 'd':
831
830
          keydir = arg;
832
831
          break;
833
 
        case 's':               /* --seckey */
 
832
        case 's':
834
833
          seckeyname = arg;
835
834
          break;
836
 
        case 'p':               /* --pubkey */
 
835
        case 'p':
837
836
          pubkeyname = arg;
838
837
          break;
839
 
        case 129:               /* --dh-bits */
 
838
        case 129:
840
839
          errno = 0;
841
840
          mc.dh_bits = (unsigned int) strtol(arg, NULL, 10);
842
841
          if (errno){
844
843
            exit(EXIT_FAILURE);
845
844
          }
846
845
          break;
847
 
        case 130:               /* --priority */
 
846
        case 130:
848
847
          mc.priority = arg;
849
848
          break;
850
849
        case ARGP_KEY_ARG: