Is the header file gpgme.h complete?

2017-03-10 Thread Marcel Wagner
I try to generate a language binding for the gpgme library from the 
gpgme.h header file.


The generator creates a binding from the header file, but it seems that 
some functions are missing. For example the context functions are 
missing. I checked the gpgme.h file and with my old C/C++ know how, it 
seems there are forward declarations, for example gpgme_context, but the 
struct is never defined? I looked at the source code of the gpgme lib 
and find this struct in a context.h header file, but this is not 
included in gpgme.h? My question is now, is the gpgme.h file complete? 
Or is there something missing?


Thanks for your help.

Regards,

Marcel Wagner


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


RE: Problems with GPGME returning "Not Implemented" or "Configuration error"

2017-03-10 Thread Jeffrey Stedfast
Aha! This makes a lot of sense.

Thanks Werner!

Jeff

> -Original Message-
> From: Werner Koch [mailto:w...@gnupg.org]
> Sent: Friday, March 10, 2017 4:33 AM
> To: Jeffrey Stedfast 
> Cc: gnupg-users@gnupg.org
> Subject: Re: Problems with GPGME returning "Not Implemented" or
> "Configuration error"
> 
> On Wed,  8 Mar 2017 00:57, jeste...@microsoft.com said:
> 
> > I spotted the fact that I was (incorrectly) using
> > gpgme_op_decrypt_verify() when I think I should be using
> > gpgme_op_decrypt(), so I fixed that but I still get “Not Implemented”.
> 
> The reason why it shows "Not implemented" is that you used
> gpgme_set_passphrase_cb () with GPGME_PROTOCOL_CMS.  gpgsm does
> not support a passphrase callback in the same way as gpg does.  In particular
> gpgme sets up a command line edit handler to push the passphrase via the
> callback to to gpg.  gpgsm has no --command-fd option but only a --
> passphrase-fd option which can be used with --pinentry-mode=loopback.
> 
> Right, this should be fixed.  I think we already have a feature request for 
> this.
> 
> As a workaround, you should
> 
>   gpgme_set_passphrase_cb (ctx, NULL, NULL);
> 
> after switching to GPGME_PROTOCOL_CMS.  This will then use the pinentry
> and thus you need to provide a dummy pinentry for your test suite (or use
> no passphrase at all).
> 
> 
> Shalom-Salam,
> 
>Werner
> 
> --
> Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Help Needed: I am able to decrypt file when I run package manually but when I run through sql sever agent, it is not decrypting.

2017-03-10 Thread Pankaj Kumar. Chaurasia
Hello Gnupg Users,

I am writing this mail regarding the issue facing to decrypt file through my 
SSIS Package.

Below is the command I am using:

gpg2.exe --batch --yes --status-fd 2 --passphrase-fd 0 --armor --output 
E:\File.csv --decrypt E:\File.pgp

When I run my SSIS package manually through visual studio it is decrypting the 
file properly. When I deploying the package on the same machine it is not 
decrypting. After spending to much time I come to know that the reason behind 
this is, I have imported the public key using command line, so it is imported 
for my user as I login on that machine with my windows user. But SQL Server 
agent job runs with MSSQL Agent Service account so I need to import the key for 
that service account.

Could you guys please let me know how to import the public key for that account 
as I cannot login with that Service account.

Thanks in Advance.

Thanks & Regards,

Pankaj K Chaurasia
Sr. Database Developer
Smart Utility Systems
0120-4208528 (O)  |  +91- 8109510013 (M) |  +91- 9406929510 (M)
pankaj.chaura...@smartusys.com  | 
www.smartusys.com

[https://www.smartusys.com/emails/ISGW/signature/ISGW_EmailBanner.png]

[facebook][linkedin]
 [twitter]   [google] 


This message may contain confidential and/or privileged information. If you are 
not the addressee or authorized to receive this for the addressee, you must not 
use, copy, disclose or take any action based on this message or any information 
herein. If you have received this message in error, please advise the sender 
immediately by reply e-mail and delete this message. Thank you for your 
cooperation.
P Please consider the environment before printing this email.

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Error searching key from keyserver in gpg 2.1.19

2017-03-10 Thread Alexander Strobel
I have installed GnuPG 2.1.19 on my Windows 8.1 (x64) machine. When I
search for a key on a keyserver it shows this error:

  gpg: error searching keyserver: Input/output error
  gpg: Suche auf dem Schlüsselserver fehlgeschlagen: Input/output error

My commandline:

  gpg --keyserver hkp://subset.pool.sks-keyservers.net --search-keys
0xF3102BE7

When I do this with GnuPG 1.4.21 everything is ok.
What's the problem here?


Best regards
 Alex Strobel
 www.gpg4o.com

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Problems with GPGME returning "Not Implemented" or "Configuration error"

2017-03-10 Thread Werner Koch
On Wed,  8 Mar 2017 00:57, jeste...@microsoft.com said:

> I spotted the fact that I was (incorrectly) using
> gpgme_op_decrypt_verify() when I think I should be using
> gpgme_op_decrypt(), so I fixed that but I still get “Not Implemented”.

The reason why it shows "Not implemented" is that you used
gpgme_set_passphrase_cb () with GPGME_PROTOCOL_CMS.  gpgsm does not
support a passphrase callback in the same way as gpg does.  In
particular gpgme sets up a command line edit handler to push the
passphrase via the callback to to gpg.  gpgsm has no --command-fd option
but only a --passphrase-fd option which can be used with
--pinentry-mode=loopback.

Right, this should be fixed.  I think we already have a feature request
for this.

As a workaround, you should 

  gpgme_set_passphrase_cb (ctx, NULL, NULL);

after switching to GPGME_PROTOCOL_CMS.  This will then use the pinentry
and thus you need to provide a dummy pinentry for your test suite (or
use no passphrase at all).


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


pgpLn70BETCGh.pgp
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users