aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2002-02-28 07:29:08 +0000
committerWerner Koch <[email protected]>2002-02-28 07:29:08 +0000
commitfccdbcf2113152763388648430e364afa2cd375c (patch)
tree7e9010d700d577a4baa9c97ae7b2fbfd8b3782f4
parentselect the signature algorithm - dummy in gpgme.c (diff)
downloadgpgme-fccdbcf2113152763388648430e364afa2cd375c.tar.gz
gpgme-fccdbcf2113152763388648430e364afa2cd375c.zip
Removed the gpgme_set_signature_algorithm stuff. We can't add a
function to our API without discussion the consequences of. By design the signature algorithm is a property of the signer's key and can't be set arbitrary. The library is named GnuPG Made Easy so we should not burden the user with an API to select stuff which can only be done by the backend. Changes in gpgme require support by the backend. If we have the requirement to implement it, it will be done as a global configuration option for signers or as meta-data asscociated with a certificates for recipients. I habe not found this as a requirement of the Aegypten project.
-rw-r--r--gpgme/gpgme.c32
-rw-r--r--gpgme/gpgme.h6
2 files changed, 0 insertions, 38 deletions
diff --git a/gpgme/gpgme.c b/gpgme/gpgme.c
index c692526a..1de0dc78 100644
--- a/gpgme/gpgme.c
+++ b/gpgme/gpgme.c
@@ -314,38 +314,6 @@ gpgme_get_include_certs (GpgmeCtx ctx)
/**
- * gpgme_set_signature_algorithm
- * @ctx: the context
- * @algorithm: the algorithm to be used for signing a S/MIME
- * message. The default is 1 (SHA1); this is currently the only
- * supported algorithm.
- **/
-void
-gpgme_set_signature_algorithm( GpgmeCtx ctx, int algorithm )
-{
- /* PENDING(g10) Implement this */
-}
-
-
-/**
- * gpgme_get_signature_algorithm:
- * @ctx: the context
- *
- * Get the signature algorithm used for signing S/MIME messages
- *
- * Return value: the signature algorithm where 1 means SHA1
- **/
-int
-gpgme_get_signature_algorithm (GpgmeCtx ctx)
-{
- /* PENDING(g10) Implement this */
-}
-
-
-
-
-
-/**
* gpgme_set_keylist_mode:
* @ctx: the context
* @mode: listing mode
diff --git a/gpgme/gpgme.h b/gpgme/gpgme.h
index 26fb973c..fd09306a 100644
--- a/gpgme/gpgme.h
+++ b/gpgme/gpgme.h
@@ -235,12 +235,6 @@ void gpgme_set_include_certs (GpgmeCtx ctx, int nr_of_certs);
/* Return the number of certs to include in an S/MIME message. */
int gpgme_get_include_certs (GpgmeCtx ctx);
-/* Sets the algorithm to be used for signatures. */
-void gpgme_set_signature_algorithm( GpgmeCtx ctx, int signAlgo );
-
-/* Return the algorithm to be used for signatures. */
-int gpgme_get_signature_algorithm( GpgmeCtx ctx );
-
/* Set keylist mode in CTX to MODE. */
GpgmeError gpgme_set_keylist_mode (GpgmeCtx ctx, int mode);