~ubuntu-branches/ubuntu/raring/nss/raring-security

« back to all changes in this revision

Viewing changes to mozilla/security/nss/cmd/certutil/keystuff.c

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2010-03-25 13:46:06 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20100325134606-bl6liuok2w9l7snv
Tags: 3.12.6-0ubuntu1
* New upstream release 3.12.6 RTM (NSS_3_12_6_RTM)
  - fixes CVE-2009-3555 aka US-CERT VU#120541
* Adjust patches to changed upstream code base
  - update debian/patches/38_kbsd.patch
  - update debian/patches/38_mips64_build.patch
  - update debian/patches/85_security_load.patch
* Remove patches that are merged upstream
  - delete debian/patches/91_nonexec_stack.patch
  - update debian/patches/series
* Bump nspr dependency to 4.8
  - update debian/control
* Add new symbols for 3.12.6
  - update debian/libnss3-1d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
#if defined(XP_WIN) || defined (XP_PC)
49
49
#include <time.h>
 
50
#ifndef WINCE
50
51
#include <conio.h>
51
52
#endif
 
53
#endif
52
54
 
53
55
#if defined(__sun) && !defined(SVR4)
54
56
extern int fclose(FILE*);
112
114
    /* turn off echo on stdin & return on 1 char instead of NL */
113
115
    fd = fileno(stdin);
114
116
 
115
 
#if defined(XP_UNIX) && !defined(VMS)
 
117
#if defined(XP_UNIX)
116
118
    tcgetattr(fd, &tio);
117
119
    orig_lflag = tio.c_lflag;
118
120
    orig_cc_min = tio.c_cc[VMIN];
127
129
    /* Get random noise from keyboard strokes */
128
130
    count = 0;
129
131
    while (count < sizeof randbuf) {
130
 
#ifdef VMS
131
 
        c = GENERIC_GETCHAR_NOECHO();
132
 
#elif XP_UNIX
 
132
#if defined(XP_UNIX) || defined(WINCE)
133
133
        c = getc(stdin);
134
134
#else
135
135
        c = getch();
149
149
 
150
150
    FPS "\n\n");
151
151
    FPS "Finished.  Press enter to continue: ");
152
 
#if defined(VMS)
153
 
    while((c = GENERIC_GETCHAR_NO_ECHO()) != '\r' && c != EOF)
154
 
        ;
155
 
#else
156
152
    while ((c = getc(stdin)) != '\n' && c != EOF)
157
153
        ;
158
 
#endif
159
154
    if (c == EOF) 
160
155
        rv = -1;
161
156
    FPS "\n");
162
157
 
163
158
#undef FPS
164
159
 
165
 
#if defined(XP_UNIX) && !defined(VMS)
 
160
#if defined(XP_UNIX)
166
161
    /* set back termio the way it was */
167
162
    tio.c_lflag = orig_lflag;
168
163
    tio.c_cc[VMIN] = orig_cc_min;