aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/ec_group
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-06-05 16:43:58 +0000
committerlloyd <[email protected]>2012-06-05 16:43:58 +0000
commit4d1378782d83fda342afc3e200f38ef6964ae6e2 (patch)
tree873e7742441cfd3e7701b211429277635811eb90 /src/pubkey/ec_group
parentb90c6b3654ff1bff53632f4083ae440d8bd9fd99 (diff)
Modify DL_Group::PEM_decode and BER_decode to take values instead of
DataSource&. Remove spurious DataSource_Memory from ec_group.cpp Some indent fixes
Diffstat (limited to 'src/pubkey/ec_group')
-rw-r--r--src/pubkey/ec_group/ec_group.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pubkey/ec_group/ec_group.cpp b/src/pubkey/ec_group/ec_group.cpp
index 88c4616a4..9620122de 100644
--- a/src/pubkey/ec_group/ec_group.cpp
+++ b/src/pubkey/ec_group/ec_group.cpp
@@ -35,10 +35,8 @@ EC_Group::EC_Group(const std::string& str)
try
{
- DataSource_Memory input(str);
-
std::vector<byte> ber =
- unlock(PEM_Code::decode_check_label(input, "EC PARAMETERS"));
+ unlock(PEM_Code::decode_check_label(str, "EC PARAMETERS"));
*this = EC_Group(ber);
}