unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tom Lynch <dimitrisdad@gmail.com>
To: Daiki Ueno <ueno@unixuser.org>
Cc: emacs-devel@gnu.org
Subject: Re: interjecting a custom epa passphrase prompt
Date: Sun, 22 May 2011 19:09:20 -0400	[thread overview]
Message-ID: <BANLkTi=3U4Cjo8KBUTduQ5asbH+FewXidA@mail.gmail.com> (raw)
In-Reply-To: <BANLkTi=pGBW-XuHsJ6iAXGDvYh1Lk428yQ@mail.gmail.com>

Ok, all in the local directory now.

I compiled gpgme with:

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

Note:

 # /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;
     }else{
       std::cout << "engines available: ";
       do{
         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;
       }while(infop);
       std::cout << std::endl;
     }

I compiled, it does this:

g++ -c baz.cc -g -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1
`/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


note:
- 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	other threads:[~2011-05-22 23:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-02  2:04 interjecting a custom epa passphrase prompt ken manheimer
2010-12-02  2:26 ` Daiki Ueno
2010-12-05 17:51   ` ken manheimer
2011-05-20  3:43     ` Thomas Lynch
2011-05-20  6:35       ` Daiki Ueno
2011-05-21 15:30         ` Tom Lynch
2011-05-22  0:41           ` Daiki Ueno
2011-05-22 23:07             ` Tom Lynch
2011-05-22 23:09               ` Tom Lynch [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='BANLkTi=3U4Cjo8KBUTduQ5asbH+FewXidA@mail.gmail.com' \
    --to=dimitrisdad@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=ueno@unixuser.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).