tags:

views:

143

answers:

1

I am using ruby gpgme gem (1.0.8). My passphrase callback isn't called:

def passfunc(*args)
  fd = args.last
  io = IO.for_fd(fd, 'w')
  io.puts "mypassphrase"
  io.flush
end

opts = {
  :passphrase_callback => method(:passfunc)
}
GPGME.decrypt(input,output, opts)

Does someone have working example of passphrase callback?

A: 

Could you finally solve that? I'm having the same issue. Any advice? Thanks!

jcastro
I removed passphrase from the key, works for me.
edbond