diff options
author | lloyd <[email protected]> | 2010-12-13 21:56:41 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-12-13 21:56:41 +0000 |
commit | 64272438aad858bdf4fc93cd94e0a20093c0191f (patch) | |
tree | 534ec5c19df5104de7d62aab024c48007b37799e /src/cert/cvc | |
parent | d5af39b6306086baa4159a18ad833b1c3e1e573b (diff) |
Fix some VC warnings under 64 bit compiles
Diffstat (limited to 'src/cert/cvc')
-rw-r--r-- | src/cert/cvc/asn1_eac_str.cpp | 10 | ||||
-rw-r--r-- | src/cert/cvc/ecdsa_sig.cpp | 2 |
2 files changed, 6 insertions, 6 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; } diff --git a/src/cert/cvc/ecdsa_sig.cpp b/src/cert/cvc/ecdsa_sig.cpp index 1b3940250..e8fd7f051 100644 --- a/src/cert/cvc/ecdsa_sig.cpp +++ b/src/cert/cvc/ecdsa_sig.cpp @@ -48,7 +48,7 @@ ECDSA_Signature decode_concatenation(const MemoryRegion<byte>& concat) if(concat.size() % 2 != 0) throw Invalid_Argument("Erroneous length of signature"); - const u32bit rs_len = concat.size() / 2; + const size_t rs_len = concat.size() / 2; BigInt r = BigInt::decode(&concat[0], rs_len); BigInt s = BigInt::decode(&concat[rs_len], rs_len); |