[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: interjecting a custom epa passphrase prompt

From: Tom Lynch
Subject: Re: interjecting a custom epa passphrase prompt
Date: Sun, 22 May 2011 19:09:20 -0400

Ok, all in the local directory now.

I compiled gpgme with:

 # ./configure --prefix=/usr/local --with-gpg=/usr/local/bin/gpg


 # /usr/local/bin/gpg --version
gpg (GnuPG) 1.4.11
Copyright (C) 2010 Free Software Foundation, Inc.

I added this code to my program to print out the engine info:

    gpgme_engine_info_t infop;
     if(gpgme_get_engine_info (&infop) != GPG_ERR_NO_ERROR || !infop){
       std::cout << "could not determine engine info" << std::endl;
       std::cout << "engines available: ";
         std::cout << std::endl;
         if(infop->file_name)   std::cout << "file:"        <<
infop->file_name    << " ";
         if(infop->home_dir)    std::cout << "home:"        <<
infop->home_dir     << " ";
         if(infop->version)     std::cout << "version:"     <<
infop->version      << " ";
         if(infop->req_version) std::cout << "req_version:" <<
infop->req_version  << " ";
       infop = infop->next;
       std::cout << std::endl;

I compiled, it does this:

`/usr/local/bin/gpgme-config --cflags`
g++ -o baz baz.o `/usr/local/bin/gpgme-config --libs`

and run the program and get:

> ./baz
using gpgme lib version: 1.3.0
engines available:
file:/usr/bin/gpg2 version:2.0.16 req_version:2.0.10
<************* why, how???
file:/usr/bin/gpgsm version:2.0.16 req_version:2.0.10
file:/usr/bin/gpgconf version:2.0.16 req_version:2.0.10
file:/tmp/gpg-4q60GX/S.gpg-agent home:!GPG_AGENT version:1.0 req_version:1.0

- Hide quoted text -
> /usr/local/bin/gpgme-config --libs
-L/usr/local/lib -lgpgme -lassuan -lgpg-error -lgpg-error
> /usr/local/bin/gpgme-config --libs
-L/usr/local/lib -lgpgme -lassuan -lgpg-error -lgpg-error

reply via email to

[Prev in Thread] Current Thread [Next in Thread]