Commit b2cc748b authored by Heikki Linnakangas's avatar Heikki Linnakangas

Remove dead stuff from pgcrypto.

pgp-pubkey-DISABLED test has been unused since 2006, when support for
built-in bignum math was added (commit 1abf76e8). pgp-encrypt-DISABLED has
been unused forever, AFAICS.

Also remove a couple of unused error codes.
parent 41e2b84c
...@@ -67,12 +67,8 @@ static const struct error_desc px_err_list[] = { ...@@ -67,12 +67,8 @@ static const struct error_desc px_err_list[] = {
{PXE_PGP_COMPRESSION_ERROR, "Compression error"}, {PXE_PGP_COMPRESSION_ERROR, "Compression error"},
{PXE_PGP_NOT_TEXT, "Not text data"}, {PXE_PGP_NOT_TEXT, "Not text data"},
{PXE_PGP_UNEXPECTED_PKT, "Unexpected packet in key data"}, {PXE_PGP_UNEXPECTED_PKT, "Unexpected packet in key data"},
{PXE_PGP_NO_BIGNUM,
"public-key functions disabled - "
"pgcrypto needs OpenSSL for bignums"},
{PXE_PGP_MATH_FAILED, "Math operation failed"}, {PXE_PGP_MATH_FAILED, "Math operation failed"},
{PXE_PGP_SHORT_ELGAMAL_KEY, "Elgamal keys must be at least 1024 bits long"}, {PXE_PGP_SHORT_ELGAMAL_KEY, "Elgamal keys must be at least 1024 bits long"},
{PXE_PGP_RSA_UNSUPPORTED, "pgcrypto does not support RSA keys"},
{PXE_PGP_UNKNOWN_PUBALGO, "Unknown public-key encryption algorithm"}, {PXE_PGP_UNKNOWN_PUBALGO, "Unknown public-key encryption algorithm"},
{PXE_PGP_WRONG_KEY, "Wrong key"}, {PXE_PGP_WRONG_KEY, "Wrong key"},
{PXE_PGP_MULTIPLE_KEYS, {PXE_PGP_MULTIPLE_KEYS,
......
...@@ -88,10 +88,10 @@ void px_free(void *p); ...@@ -88,10 +88,10 @@ void px_free(void *p);
#define PXE_PGP_COMPRESSION_ERROR -105 #define PXE_PGP_COMPRESSION_ERROR -105
#define PXE_PGP_NOT_TEXT -106 #define PXE_PGP_NOT_TEXT -106
#define PXE_PGP_UNEXPECTED_PKT -107 #define PXE_PGP_UNEXPECTED_PKT -107
#define PXE_PGP_NO_BIGNUM -108 /* -108 is unused */
#define PXE_PGP_MATH_FAILED -109 #define PXE_PGP_MATH_FAILED -109
#define PXE_PGP_SHORT_ELGAMAL_KEY -110 #define PXE_PGP_SHORT_ELGAMAL_KEY -110
#define PXE_PGP_RSA_UNSUPPORTED -111 /* -111 is unused */
#define PXE_PGP_UNKNOWN_PUBALGO -112 #define PXE_PGP_UNKNOWN_PUBALGO -112
#define PXE_PGP_WRONG_KEY -113 #define PXE_PGP_WRONG_KEY -113
#define PXE_PGP_MULTIPLE_KEYS -114 #define PXE_PGP_MULTIPLE_KEYS -114
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment