Changeset 1235:e53f5bf8f19b in roaraudio


Ignore:
Timestamp:
02/25/09 22:17:28 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed some bugs...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/pinentry.c

    r1234 r1235  
    9696     _exit(1); 
    9797 
    98     execlp(ROAR_HAVE_BIN_PINENTRY, "--display", display, "--ttytype", term, "--ttyname", tty, NULL); 
     98    execlp(ROAR_HAVE_BIN_PINENTRY, "RoarAudio", "--display", display, "--ttytype", term, "--ttyname", tty, NULL); 
    9999 
    100100    _exit(1); 
     
    109109 
    110110 pe->fin = fdopen(in[0], "r"); 
     111 
     112 roar_pinentry_recv(pe, NULL, NULL); 
    111113 
    112114 return 0; 
     
    185187 tp = realbuf + strlen(realbuf) - 1; 
    186188 
    187  for (; *tp != '\r' && *tp != '\n'; tp--) 
     189 for (; *tp == '\r' || *tp == '\n'; tp--) 
    188190  *tp = 0; 
    189191 
     
    249251 
    250252int roar_pinentry_set_yes  (struct roar_pinentry * pe, char * yes) { 
    251  return roar_pinentry_set(pe, "YES", yes); 
     253 return roar_pinentry_set(pe, "OK", yes); 
    252254} 
    253255 
    254256int roar_pinentry_set_no   (struct roar_pinentry * pe, char * no) { 
    255  return roar_pinentry_set(pe, "NO", no); 
     257 return roar_pinentry_set(pe, "CANCEL", no); 
    256258} 
    257259 
     
    289291   return -1; 
    290292 
    291  return roar_pinentry_req(pe, "GETPIN", NULL, NULL, pw); 
     293 if ( roar_pinentry_req(pe, "GETPIN", NULL, NULL, pw) == -1 ) 
     294  return -1; 
     295 
     296 return 0; 
    292297} 
    293298 
Note: See TracChangeset for help on using the changeset viewer.