GPGME-if gpg is necessary

2016-07-19 Thread yuriping
Hi, SirI'm using GPGME now to perform singnature and verifying.I have installed gpg on my Ubuntu, and I want to invoke GPGME in my C-program. What I want to know is if gpg is necessary when I invoke GPGME in a C-program, or my program can run independently with "gpg".Best Regards! --

GPGME signing failed: Bad passphrase

2016-07-19 Thread yuriping
Hi, all,    We're using GPGME now.I encountered one problem When running ./gpgme-1.6.0/tests/run-sign demo, as following:root@YRP-ES-QD:/opt/TestCell# ./run-sign --key 5FEC9A32 filerun-sign: signing failed: Bad passphrase    Does this mean I should use gpg-agent, or I should assign the passphra

GPGME signing failed: Bad passphrase

2016-07-16 Thread yuriping
Hi, all,    We're using GPGME now.    Follow is my key-list:root@YRP-ES-QD:/opt/TestCell# gpg --list-key/root/.gnupg/pubring.gpgpub   2048R/6F9DDC7B 2016-06-12uid      yuriping (No) <yurip...@sohu.com>sub   2048R/1FFB24D9 2016-06-12pub   204

Where Can I get sign and verify demo for GPGME

2016-07-15 Thread yuriping
Hi, all,    We're using GPGME now and are going to perform signing and verifying process.    Could you tell me where can I get demos of GPGME for signing and verifying using C program.    Best Regards! -- 搜狐邮箱积分商城积分大派兑,来晚就没了~ ___

How to invoke gpg command in C-program

2016-07-05 Thread yuriping
Hi ALL:    I'm using gpg 1.4.10 to perform sign-verify processing.    In general, two gpg commands will be used as following:    0. gpg --detach-sign file    1. gpg --verify file.sig file    I notice that in the executing process of command 0, a passphrase will be required to be typed manually

invoke gpg with popen but cannot get output from the pipe

2016-07-04 Thread yuriping
f the buf = %d\n", len, strlen(buf));    printf("%s\n", buf);    pclose(fpout);    exit (0);}The result didn't appear normal:gpg: Signature made Mon 04 Jul 2016 06:14:44 PM CST using RSA key ID 5FEC9A32gpg: Good

keytyping never end when gen-key, and importing key warning

2016-06-16 Thread yuriping
oblem 2.    gpg: Signature made Thu Jun 16 10:56:45 2016 CST using RSA key ID 86111D4F    gpg: Good signature from "yuriping (0002) <yurip...@sohu.com>"    gpg: WARNING: This key is not certified with a trusted signature!    gpg:  There is no indication that the signature belong