aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Kalle Dalheimer <[email protected]>2002-04-18 19:26:03 +0000
committerMatthias Kalle Dalheimer <[email protected]>2002-04-18 19:26:03 +0000
commit2ee47693c0152193fb7751c250f5de11d6b0a37f (patch)
tree210f982893ec3dcb962b7bd6c7e6848f9840d3a6
parentAdditional parameter for returning the cert length (diff)
downloadgpgme-2ee47693c0152193fb7751c250f5de11d6b0a37f.tar.gz
gpgme-2ee47693c0152193fb7751c250f5de11d6b0a37f.zip
More fixes for certificate generation
Diffstat (limited to '')
-rw-r--r--gpgmeplug/gpgmeplug.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gpgmeplug/gpgmeplug.c b/gpgmeplug/gpgmeplug.c
index 63bd83e0..7c3c25e8 100644
--- a/gpgmeplug/gpgmeplug.c
+++ b/gpgmeplug/gpgmeplug.c
@@ -1535,22 +1535,26 @@ bool requestDecentralCertificate( const char* certparms,
{
GpgmeError err;
GpgmeCtx ctx;
- GpgmeData pub, result;
+ GpgmeData pub;
int len;
err = gpgme_data_new (&pub);
+ fprintf( stderr, "1: gpgme returned %d\n", err );
if( err != GPGME_No_Error )
return false;
err = gpgme_new (&ctx);
+ fprintf( stderr, "2: gpgme returned %d\n", err );
if( err != GPGME_No_Error ) {
gpgme_data_release( pub );
return false;
}
gpgme_set_protocol (ctx, GPGME_PROTOCOL_CMS);
- /* We want binary, so comment this: gpgme_set_armor (ctx, 1); */
+ // Don't ASCII-armor, the MUA will use base64 encoding
+ // gpgme_set_armor (ctx, 1);
err = gpgme_op_genkey (ctx, certparms, pub, NULL );
+ fprintf( stderr, "3: gpgme returned %d\n", err );
if( err != GPGME_No_Error ) {
gpgme_data_release( pub );
gpgme_release( ctx );
@@ -1563,6 +1567,7 @@ bool requestDecentralCertificate( const char* certparms,
/* The buffer generatedKey contains the LEN bytes you want */
// Caller is responsible for freeing
+ return true;
}
bool requestCentralCertificateAndPSE( const char* name,