select the signature algorithm - dummy in gpgme.c
[gpgme.git] / gpgmeplug / gpgmeplug.c
index d866b29..85dd2f2 100644 (file)
@@ -794,6 +794,8 @@ bool signMessage( const char*  cleartext,
       break;
   }
   gpgme_set_include_certs (ctx, sendCerts);
+  
+  gpgme_set_signature_algorithm( ctx, config.signatureAlgorithm );
 
   gpgme_data_new_from_mem (&data, cleartext,
                             1+strlen( cleartext ), 1 );