aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-02-25 01:03:38 +0000
committerlloyd <[email protected]>2010-02-25 01:03:38 +0000
commit71d447e00d235fbedba1c1cac8eccda326c54967 (patch)
tree7128647767af5e3172033d85786510c224ec48e1
parent3b8f3498ece5ae04fb05580378b97c94cc7548fe (diff)
Make compression types an enum
-rw-r--r--src/math/gfpmath/point_gfp.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/math/gfpmath/point_gfp.h b/src/math/gfpmath/point_gfp.h
index 04a6cc3af..8f189ccd5 100644
--- a/src/math/gfpmath/point_gfp.h
+++ b/src/math/gfpmath/point_gfp.h
@@ -26,20 +26,11 @@ struct BOTAN_DLL Illegal_Point : public Exception
class BOTAN_DLL PointGFp
{
public:
- /**
- * uncompressed encoding byte value
- */
- static const int UNCOMPRESSED = 0;
-
- /**
- * compressed encoding byte value
- */
- static const int COMPRESSED = 1;
-
- /**
- * hybrid encoding byte value
- */
- static const int HYBRID = 2;
+ enum Compression_Type {
+ UNCOMPRESSED = 0,
+ COMPRESSED = 1,
+ HYBRID = 2
+ };
/**
* Construct the point O