diff options
author | relyea%netscape.com <devnull@localhost> | 2000-06-20 17:44:42 +0000 |
---|---|---|
committer | relyea%netscape.com <devnull@localhost> | 2000-06-20 17:44:42 +0000 |
commit | 808225c329f738ccbc7e84de8a0a29096d278886 (patch) | |
tree | 39b49d701106d7f176c5660aba61dd4f0e9c7272 | |
parent | 6f744f6a66a62cddb74e5852b26f1a111fde76d2 (diff) | |
download | nss-hg-808225c329f738ccbc7e84de8a0a29096d278886.tar.gz |
Allow us to use file redirection to input new cert extentions (remove the input flushes)
-rw-r--r-- | security/nss/cmd/certutil/certutil.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/security/nss/cmd/certutil/certutil.c b/security/nss/cmd/certutil/certutil.c index 637926461..113892283 100644 --- a/security/nss/cmd/certutil/certutil.c +++ b/security/nss/cmd/certutil/certutil.c @@ -100,7 +100,7 @@ GetGeneralName (PRArenaPool *arena) PORT_Assert (arena); mark = PORT_ArenaMark (arena); do { - fflush (stdin); + /*fflush (stdin);*/ puts ("\nSelect one of the following general name type: \n"); puts ("\t1 - instance of other name\n\t2 - rfc822Name\n\t3 - dnsName\n"); puts ("\t4 - x400Address\n\t5 - directoryName\n\t6 - ediPartyName\n"); @@ -123,7 +123,7 @@ GetGeneralName (PRArenaPool *arena) } current->type = intValue; puts ("\nEnter data:"); - fflush (stdin); + /*fflush (stdin); */ fflush (stdout); gets (buffer); switch (current->type) { @@ -198,7 +198,7 @@ GetString(PRArenaPool *arena, char *prompt, SECItem *value) value->len = 0; puts (prompt); - fflush (stdin); + /*fflush (stdin);*/ gets (buffer); if (strlen (buffer) > 0) { value->data = PORT_ArenaAlloc (arena, strlen (buffer)); @@ -1521,7 +1521,7 @@ AddBasicConstraint(void *extHandle) do { basicConstraint.pathLenConstraint = CERT_UNLIMITED_PATH_CONSTRAINT; puts ("Is this a CA certificate [y/n]?"); - fflush (stdin); + /*fflush (stdin);*/ gets (buffer); basicConstraint.isCA = (buffer[0] == 'Y' || buffer[0] == 'y') ? PR_TRUE : PR_FALSE; @@ -1654,7 +1654,7 @@ AddAuthKeyID (void *extHandle) GEN_BREAK (SECFailure); } - fflush (stdin); + /*fflush (stdin);*/ rv = GetString (arena, "Enter value for the key identifier fields, enter to omit:", &authKeyID->keyID); if (rv != SECSuccess) @@ -1706,7 +1706,7 @@ AddCrlDistPoint(void *extHandle) GEN_BREAK (SECFailure); } - fflush (stdin); + /*fflush (stdin);*/ /* Get the distributionPointName fields - this field is optional */ puts ("Enter the type of the distribution point name:\n"); puts ("\t1 - Full Name\n\t2 - Relative Name\n\tOther - omit\n\t\tChoice: "); @@ -1725,7 +1725,7 @@ AddCrlDistPoint(void *extHandle) current->distPointType = intValue; puts ("Enter the relative name: "); fflush (stdout); - fflush (stdin); + /*fflush (stdin);*/ gets (buffer); /* For simplicity, use CERT_AsciiToName to converse from a string to NAME, but we only interest in the first RDN */ @@ -1792,7 +1792,7 @@ AddCrlDistPoint(void *extHandle) } while (1); if (rv == SECSuccess) { - fflush (stdin); + /*fflush (stdin);*/ buffer[0] = 'n'; puts ("Is this a critical extension [y/n]? "); gets (buffer); |