summaryrefslogtreecommitdiff
path: root/lib/libkeynote
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-18 22:55:05 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-18 22:55:05 +0000
commit066aa23b94aba263e8ccbb996f28894a47538cf4 (patch)
tree1b2e9f11e9cb0b2dee096786163ecdcafe26b7b8 /lib/libkeynote
parent60a9efc9b3a17509ea061052aaa06d7ce4751d34 (diff)
Remove code for unimplemented ElGamel support that's been disabled for
sixteen years. ok millert@, tb@, sthen@
Diffstat (limited to 'lib/libkeynote')
-rw-r--r--lib/libkeynote/signature.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/lib/libkeynote/signature.c b/lib/libkeynote/signature.c
index 3a0d3e8d8f9..6fe50fb0a14 100644
--- a/lib/libkeynote/signature.c
+++ b/lib/libkeynote/signature.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: signature.c,v 1.20 2015/12/14 03:35:40 mmcc Exp $ */
+/* $OpenBSD: signature.c,v 1.21 2015/12/18 22:55:04 mmcc Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu)
*
@@ -249,25 +249,6 @@ keynote_get_sig_algorithm(char *sig, int *hash, int *enc, int *internal)
return KEYNOTE_ALGORITHM_X509;
}
-#if 0 /* Not supported yet */
- if (!strncasecmp(SIG_ELGAMAL_SHA1_HEX, sig, SIG_ELGAMAL_SHA1_HEX_LEN))
- {
- *hash = KEYNOTE_HASH_SHA1;
- *enc = ENCODING_HEX;
- *internal = INTERNAL_ENC_ASN1;
- return KEYNOTE_ALGORITHM_ELGAMAL;
- }
-
- if (!strncasecmp(SIG_ELGAMAL_SHA1_BASE64, sig,
- SIG_ELGAMAL_SHA1_BASE64_LEN))
- {
- *hash = KEYNOTE_HASH_SHA1;
- *enc = ENCODING_BASE64;
- *internal = INTERNAL_ENC_ASN1;
- return KEYNOTE_ALGORITHM_ELGAMAL;
- }
-#endif /* 0 */
-
*hash = KEYNOTE_HASH_NONE;
*enc = ENCODING_NONE;
*internal = INTERNAL_ENC_NONE;