Changeset 5


Ignore:
Timestamp:
May 13, 2016, 11:55:52 PM (9 years ago)
Author:
Paul Smedley
Message:

Use win32 codepath for password prompt to prevent password echoing - fixes #1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • heimdal/trunk/lib/hcrypto/ui.c

    r1 r5  
    4343#include <roken.h>
    4444
     45#ifdef __OS2__
     46#define HAVE_CONIO_H
     47#endif
     48
    4549#include <ui.h>
    4650#ifdef HAVE_CONIO_H
     
    7175    void (*oldsigintr)(int);
    7276
     77#ifndef __OS2__
    7378    _cprintf("%s%s", preprompt, prompt);
     79#else
     80    fprintf(stderr, "%s%s", preprompt, prompt);
     81    fflush(stderr);
     82#endif
    7483
    7584    oldsigintr = signal(SIGINT, intr);
     
    7786    p = buf;
    7887    while(intr_flag == 0){
     88#ifndef __OS2__
    7989        c = ((echo)? _getche(): _getch());
     90#else
     91        c = ((echo)? getche(): getch());
     92#endif
    8093        if(c == '\n' || c == '\r')
    8194            break;
Note: See TracChangeset for help on using the changeset viewer.