summaryrefslogtreecommitdiff
path: root/lib/libkeynote
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-23 21:15:59 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-23 21:15:59 +0000
commit35799ce956899231e95a6a6d3adf8bbd17bb796c (patch)
tree599ca2fd032a72c9505bd7136c57aa5f3c1531d5 /lib/libkeynote
parentfd3e1f633219077bdc470b92669ba6f94c96ac3c (diff)
Remove the rest of the scaffolding for nonexistent ElGamal support,
which has been disabled for sixteen years. ok millert@, tb@, sthen@
Diffstat (limited to 'lib/libkeynote')
-rw-r--r--lib/libkeynote/signature.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/lib/libkeynote/signature.c b/lib/libkeynote/signature.c
index 47857e82f24..5c19e7eebbf 100644
--- a/lib/libkeynote/signature.c
+++ b/lib/libkeynote/signature.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: signature.c,v 1.24 2015/12/23 21:07:37 mmcc Exp $ */
+/* $OpenBSD: signature.c,v 1.25 2015/12/23 21:15:58 mmcc Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu)
*
@@ -306,22 +306,6 @@ keynote_get_key_algorithm(char *key, int *encoding, int *internalencoding)
return KEYNOTE_ALGORITHM_X509;
}
-#if 0 /* Not supported yet */
- if (!strncasecmp(ELGAMAL_HEX, key, ELGAMAL_HEX_LEN))
- {
- *internalencoding = INTERNAL_ENC_ASN1;
- *encoding = ENCODING_HEX;
- return KEYNOTE_ALGORITHM_ELGAMAL;
- }
-
- if (!strncasecmp(ELGAMAL_BASE64, key, ELGAMAL_BASE64_LEN))
- {
- *internalencoding = INTERNAL_ENC_ASN1;
- *encoding = ENCODING_BASE64;
- return KEYNOTE_ALGORITHM_ELGAMAL;
- }
-#endif /* 0 */
-
if (!strncasecmp(BINARY_HEX, key, BINARY_HEX_LEN))
{
*internalencoding = INTERNAL_ENC_NONE;