aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-01-18 15:21:47 -0500
committerJack Lloyd <[email protected]>2018-01-18 15:21:47 -0500
commit915e840bd0f77d8c2cd526a5d26a88621708f6ca (patch)
treefa93421e12d31f92e55f50f115f3badd29960669 /src/lib/pubkey
parente7b9733171835e0a91155589318fdd08b1c68113 (diff)
Prepare for making BER_Object members private
Now there are usable accessors that allow the library to avoid using BER_Object members directly.
Diffstat (limited to 'src/lib/pubkey')
-rw-r--r--src/lib/pubkey/ec_group/ec_group.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/pubkey/ec_group/ec_group.cpp b/src/lib/pubkey/ec_group/ec_group.cpp
index 831c41e37..6ae8c16d8 100644
--- a/src/lib/pubkey/ec_group/ec_group.cpp
+++ b/src/lib/pubkey/ec_group/ec_group.cpp
@@ -52,15 +52,15 @@ EC_Group::EC_Group(const std::vector<uint8_t>& ber_data)
BER_Decoder ber(ber_data);
BER_Object obj = ber.get_next_object();
- if(obj.type_tag == NULL_TAG)
+ if(obj.type() == NULL_TAG)
throw Decoding_Error("Cannot handle ImplicitCA ECDSA parameters");
- else if(obj.type_tag == OBJECT_ID)
+ else if(obj.type() == OBJECT_ID)
{
OID dom_par_oid;
BER_Decoder(ber_data).decode(dom_par_oid);
*this = EC_Group(dom_par_oid);
}
- else if(obj.type_tag == SEQUENCE)
+ else if(obj.type() == SEQUENCE)
{
BigInt p, a, b;
std::vector<uint8_t> sv_base_point;