#include <errno.h>
#include <time.h>
+#ifndef BUG_URL
+#define BUG_URL "http:://www.gnupg.org/aegypten/"
+#endif
+
#include "gpgme.h"
#ifndef GPGMEPLUG_PROTOCOL
#define GPGMEPLUG_PROTOCOL GPGME_PROTOCOL_OpenPGP
typedef struct {
+ const char* bugURL;
const char* signatureKeyCertificate;
SignatureAlgorithm signatureAlgorithm;
SendCertificates sendCertificates;
bool initialize()
{
- config.signatureKeyCertificate = "";
+ config.bugURL = malloc( strlen( BUG_URL ) + 1 );
+ strcpy( (char* )config.bugURL, BUG_URL );
+ config.signatureKeyCertificate = malloc( 1 );
+ strcpy( (char* )config.signatureKeyCertificate, "" );
config.signatureAlgorithm = SignAlg_SHA1;
config.sendCertificates = SendCert_SendChainWithRoot;
config.signEmail = SignEmail_SignAll;
}
+const char* bugURL(){ return config.bugURL; }
+
+
void unsafeStationery( void** pixmap, const char** menutext, char* accel,
const char** tooltip, const char** statusbartext ){}
void storeNewCharPtr( char** dest, const char* src )
{
- int sLen;
- if( *dest && src ) {
- sLen = strlen( src );
- *dest = malloc( sLen + 1 );
- strncpy( *dest, src, sLen );
- *dest[sLen] = '\0';
- }
+ int sLen = strlen( src );
+ *dest = malloc( sLen + 1 );
+ strncpy( *dest, src, sLen );
+ *dest[sLen] = '\0';
}