diff options
author | Jack Lloyd <[email protected]> | 2016-03-05 13:01:23 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-03-05 13:01:23 -0500 |
commit | c3540ae668a523c0155677c4ee4c9099910110bc (patch) | |
tree | be4b952913d2684d012f115acdc81d26b36b2873 /src/lib | |
parent | fbdc39de29a0efbcd13ad169c844189168d2110d (diff) |
Remove explicit from DL_Group, EC_Group constructors taking std::string
I think we maybe want these to be converting constructors, and adding
explicit here breaks code like ECDSA_PrivateKey(rng, "secp256r1")
which seems like a reasonable thing to support IMO
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/pubkey/dl_group/dl_group.h | 2 | ||||
-rw-r--r-- | src/lib/pubkey/ec_group/ec_group.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pubkey/dl_group/dl_group.h b/src/lib/pubkey/dl_group/dl_group.h index 1b26d07c8..8bdd205da 100644 --- a/src/lib/pubkey/dl_group/dl_group.h +++ b/src/lib/pubkey/dl_group/dl_group.h @@ -108,7 +108,7 @@ class BOTAN_DLL DL_Group * the default values from the file policy.cpp will be used. For instance, * use "modp/ietf/768" as name. */ - explicit DL_Group(const std::string& name); + DL_Group(const std::string& name); /** * Create a new group randomly. diff --git a/src/lib/pubkey/ec_group/ec_group.h b/src/lib/pubkey/ec_group/ec_group.h index 3f2a389a5..a03b97a68 100644 --- a/src/lib/pubkey/ec_group/ec_group.h +++ b/src/lib/pubkey/ec_group/ec_group.h @@ -67,7 +67,7 @@ class BOTAN_DLL EC_Group * from an OID name (eg "secp256r1", or "1.2.840.10045.3.1.7") * @param pem_or_oid PEM-encoded data, or an OID */ - explicit EC_Group(const std::string& pem_or_oid = ""); + EC_Group(const std::string& pem_or_oid = ""); /** * Create the DER encoding of this domain |