diff options
author | Jack Lloyd <[email protected]> | 2018-01-18 18:24:18 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-01-18 18:29:34 -0500 |
commit | 2b7000735fcb33abba0134b1eb5388d82a3ba1c4 (patch) | |
tree | 7fc71763e1db0d625f444ae628233d63fad54c20 /src/lib/pubkey/ec_group/ec_group.cpp | |
parent | afd537263a10f629b04e80d26aa2e7f60aea01fc (diff) | |
parent | 915e840bd0f77d8c2cd526a5d26a88621708f6ca (diff) |
Merge GH #1420 Changes to (eventually) allow making BER_Object members private
Diffstat (limited to 'src/lib/pubkey/ec_group/ec_group.cpp')
-rw-r--r-- | src/lib/pubkey/ec_group/ec_group.cpp | 6 |
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; |