~ubuntu-branches/ubuntu/jaunty/nss/jaunty-proposed

« back to all changes in this revision

Viewing changes to mozilla/security/nss/cmd/vfyserv/vfyserv.c

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack, Fabien Tassin, Alexander Sack
  • Date: 2009-01-11 15:06:17 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090111150617-iz4lw05qgy2odorl
Tags: 3.12.2~rc1-0ubuntu1
* New upstream snapshot: 3.12.2 RC1

[ Fabien Tassin <fta@ubuntu.com> ]
* Remove patch applied upstream:
  - drop debian/patches/80_security_tools.patch
  - update debian/patches/series
* Update diverged patches:
  - update debian/patches/38_kbsd.patch
  - update debian/patches/38_mips64_build.patch
* Add new symbols to symbols file
  - update debian/libnss3-1d.symbols

[ Alexander Sack <asac@ubuntu.com> ]
* disable soname patch to become binary compatible with upstream
  - update debian/patches/series
* flip links: libnss3.so <- libnss3.so.1d (before: libnss3.so ->
  libnss3.so.1d); same link flipping was done for all other previously
  soname patched libs: libnssutil3.so, libsmime3.so.1d, libssl3.so.1d
  - update debian/libnss3-1d.links
  - update debian/libnss3-1d.symbols
* properly transition links in preinst and postrm; also cover abort-
  cases in the other maintainer scripts
  - add debian/libnss3-1d.postinst
  - add debian/libnss3-1d.postrm
  - add debian/libnss3-1d.preinst
  - add debian/libnss3-1d.prerm
* remove hack from debian/rules that debian uses to recreate
  libsoftokn3.so with a versioned SONAME
  - update debian/rules
* install the unversioned .so binaries
  - update debian/rules
* only install the 4 main libraries into /usr/lib; all the others
  go to pkglibdir
  - update debian/rules
* higher bar for libnspr4 Build-Depend to >= 4.7.3~, which is
  the version where the soname droppage is going to happen
  - update debian/control
* explitily pass libraries to be used for dpkg-gensymbols run of
  dh_makeshlibs
  - update debian/rules
* fix lintian complain about no-shlibs-control-file
  - update debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
GlobalThreadMgr threadMGR;
81
81
char *certNickname = NULL;
82
82
char *hostName = NULL;
83
 
char *password = NULL;
 
83
secuPWData  pwdata          = { PW_NONE, 0 };
84
84
unsigned short port = 0;
85
85
PRBool dumpChain;
86
86
 
92
92
    pr_stderr = PR_STDERR;
93
93
 
94
94
    PR_fprintf(pr_stderr, "Usage:\n"
95
 
               "   %s  [-c ] [-o] [-p port] [-d dbdir] [-w password]\n"
 
95
               "   %s  [-c ] [-o] [-p port] [-d dbdir] [-w password] [-f pwfile]\n"
96
96
               "   \t\t[-C cipher(s)]  [-l <url> -t <nickname> ] hostname",
97
97
               progName);
98
98
    PR_fprintf (pr_stderr, "\nWhere:\n");
112
112
                "  %-13s key database password\n",
113
113
                "-w password");
114
114
    PR_fprintf (pr_stderr,
 
115
                "  %-13s token password file\n",
 
116
                "-f pwfile");
 
117
    PR_fprintf (pr_stderr,
115
118
                "  %-13s communication cipher list\n",
116
119
                "-C cipher(s)");
117
120
    PR_fprintf (pr_stderr,
289
292
                return SECFailure;
290
293
        }
291
294
 
292
 
        secStatus = SSL_SetPKCS11PinArg(sslSocket, password);
 
295
        secStatus = SSL_SetPKCS11PinArg(sslSocket, &pwdata);
293
296
        if (secStatus != SECSuccess) {
294
297
                errWarn("SSL_SetPKCS11PinArg");
295
298
                return secStatus;
436
439
        progName = PORT_Strdup(argv[0]);
437
440
 
438
441
        hostName = NULL;
439
 
        optstate = PL_CreateOptState(argc, argv, "C:cd:l:n:p:ot:w:");
 
442
        optstate = PL_CreateOptState(argc, argv, "C:cd:f:l:n:p:ot:w:");
440
443
        while ((status = PL_GetNextOpt(optstate)) == PL_OPT_OK) {
441
444
                switch(optstate->option) {
442
445
                case 'C' : cipherString = PL_strdup(optstate->value); break;
446
449
                case 'p' : port = PORT_Atoi(optstate->value);         break;
447
450
                case 'o' : doOcspCheck = PR_TRUE;                     break;
448
451
                case 't' : respCertName = PL_strdup(optstate->value); break;
449
 
                case 'w' : password = PL_strdup(optstate->value);     break;
 
452
                case 'w':
 
453
                           pwdata.source = PW_PLAINTEXT;
 
454
                           pwdata.data = PORT_Strdup(optstate->value);
 
455
                           break;
 
456
 
 
457
                case 'f':
 
458
                           pwdata.source = PW_FROMFILE;
 
459
                           pwdata.data = PORT_Strdup(optstate->value);
 
460
                           break;
450
461
                case '\0': hostName = PL_strdup(optstate->value);     break;
451
462
                default  : Usage(progName);
452
463
                }
467
478
            Usage(progName);
468
479
        }
469
480
    
470
 
        /* Set our password function callback. */
471
 
        PK11_SetPasswordFunc(myPasswd);
 
481
        PK11_SetPasswordFunc(SECU_GetModulePassword);
472
482
 
473
483
        /* Initialize the NSS libraries. */
474
484
        if (certDir) {