mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
The agent does now work and read the secret keys from the directory
~/.gnupg-test/private-keys-v1.d/<keygrip-as-20-byte-hex-number>. I will post a sample key to gpa-dev.
This commit is contained in:
parent
8cf367848a
commit
0e36c4c6a7
7 changed files with 668 additions and 45 deletions
18
sm/gpgsm.h
18
sm/gpgsm.h
|
@ -18,8 +18,8 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
|
||||
#ifndef GNUPG_H
|
||||
#define GNUPG_H
|
||||
#ifndef GPGSM_H
|
||||
#define GPGSM_H
|
||||
|
||||
#include <ksba.h>
|
||||
#include "../common/util.h"
|
||||
|
@ -72,12 +72,14 @@ struct {
|
|||
#define DBG_CACHE_VALUE 64 /* debug the caching */
|
||||
#define DBG_MEMSTAT_VALUE 128 /* show memory statistics */
|
||||
#define DBG_HASHING_VALUE 512 /* debug hashing operations */
|
||||
#define DBG_AGENT_VALUE 1024 /* debug communication with the agent */
|
||||
|
||||
#define DBG_X509 (opt.debug & DBG_X509_VALUE)
|
||||
#define DBG_CRYPTO (opt.debug & DBG_CRYPTO_VALUE)
|
||||
#define DBG_MEMORY (opt.debug & DBG_MEMORY_VALUE)
|
||||
#define DBG_CACHE (opt.debug & DBG_CACHE_VALUE)
|
||||
#define DBG_HASHING (opt.debug & DBG_HASHING_VALUE)
|
||||
#define DBG_AGENT (opt.debug & DBG_AGENT_VALUE)
|
||||
|
||||
struct server_local_s;
|
||||
|
||||
|
@ -134,9 +136,11 @@ int gpgsm_verify (CTRL ctrl, int in_fd, int data_fd);
|
|||
int gpgsm_sign (CTRL ctrl, int data_fd, int detached, FILE *out_fp);
|
||||
|
||||
|
||||
/*-- call-agent.c --*/
|
||||
int gpgsm_agent_pksign (const char *keygrip,
|
||||
unsigned char *digest,
|
||||
size_t digestlen,
|
||||
int digestalgo,
|
||||
char **r_buf, size_t *r_buflen);
|
||||
|
||||
/*-- errors.c (built) --*/
|
||||
const char *gnupg_strerror (int err);
|
||||
|
||||
|
||||
#endif /*GNUPG_H*/
|
||||
#endif /*GPGSM_H*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue