aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/asn1
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-30 11:28:02 -0400
committerJack Lloyd <[email protected]>2017-09-30 11:28:02 -0400
commitf6dc3db8bb7e31569ed1a6042771e3f529aefab8 (patch)
tree9604495c046e1e52cc1d8e552879f04fe8599631 /src/lib/asn1
parente6dfcaa00d82a2fff5973bd2721dc09562d64199 (diff)
Use class instead of struct for objects with member functions
Flagged by Sonar and quite reasonable
Diffstat (limited to 'src/lib/asn1')
-rw-r--r--src/lib/asn1/asn1_obj.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/asn1/asn1_obj.h b/src/lib/asn1/asn1_obj.h
index 65a4919fd..63c7dc2e3 100644
--- a/src/lib/asn1/asn1_obj.h
+++ b/src/lib/asn1/asn1_obj.h
@@ -115,18 +115,20 @@ bool maybe_BER(DataSource& src);
/**
* General BER Decoding Error Exception
*/
-struct BOTAN_PUBLIC_API(2,0) BER_Decoding_Error : public Decoding_Error
+class BOTAN_PUBLIC_API(2,0) BER_Decoding_Error : public Decoding_Error
{
- explicit BER_Decoding_Error(const std::string&);
+ public:
+ explicit BER_Decoding_Error(const std::string&);
};
/**
* Exception For Incorrect BER Taggings
*/
-struct BOTAN_PUBLIC_API(2,0) BER_Bad_Tag final : public BER_Decoding_Error
+class BOTAN_PUBLIC_API(2,0) BER_Bad_Tag final : public BER_Decoding_Error
{
- BER_Bad_Tag(const std::string& msg, ASN1_Tag tag);
- BER_Bad_Tag(const std::string& msg, ASN1_Tag tag1, ASN1_Tag tag2);
+ public:
+ BER_Bad_Tag(const std::string& msg, ASN1_Tag tag);
+ BER_Bad_Tag(const std::string& msg, ASN1_Tag tag1, ASN1_Tag tag2);
};
}