| 
 Posted by Toby Inkster on 05/07/06 16:54 
Alan Little wrote: 
 
> I'm trying to operate gpg through proc_open. I can encrypt this way, just  
> fine, but when I try to decrypt I get: 
>  
>   gpg: cannot open `/dev/tty': Device not configured 
 
GPG doesn't read the pass phrase from STDIN -- it reads it from the 
terminal. It might seem like a minor difference, but the effect is that 
you can't pass the passphrase in via STDIN. 
 
You could try including the options "--no-tty --passphrase-fd 0". 
 
--  
Toby A Inkster BSc (Hons) ARCS 
Contact Me  ~ http://tobyinkster.co.uk/contact
 
  
Navigation:
[Reply to this message] 
 |