aboutsummaryrefslogtreecommitdiffstats
path: root/src/cert/cvc/asn1_eac_str.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cert/cvc/asn1_eac_str.cpp')
-rw-r--r--src/cert/cvc/asn1_eac_str.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cert/cvc/asn1_eac_str.cpp b/src/cert/cvc/asn1_eac_str.cpp
index a306ffb01..e617ba81f 100644
--- a/src/cert/cvc/asn1_eac_str.cpp
+++ b/src/cert/cvc/asn1_eac_str.cpp
@@ -103,14 +103,14 @@ void ASN1_EAC_String::decode_from(BER_Decoder& source)
bool ASN1_EAC_String::sanity_check() const
{
const byte* rep = reinterpret_cast<const byte*>(iso_8859_str.data());
- const u32bit rep_len = iso_8859_str.size();
- for (u32bit i=0; i<rep_len; i++)
+ const size_t rep_len = iso_8859_str.size();
+
+ for(size_t i = 0; i != rep_len; ++i)
{
- if ((rep[i] < 0x20) || ((rep[i] >= 0x7F) && (rep[i] < 0xA0)))
- {
+ if((rep[i] < 0x20) || ((rep[i] >= 0x7F) && (rep[i] < 0xA0)))
return false;
- }
}
+
return true;
}