aboutsummaryrefslogtreecommitdiffstats
path: root/src/asn1/asn1_tm.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-10-13 14:58:58 +0000
committerlloyd <[email protected]>2010-10-13 14:58:58 +0000
commit6e85766cf001183e160c8ca2c0ed3eb40f07125c (patch)
treedf11b301786829bc2f6f545038ec97c2269154d9 /src/asn1/asn1_tm.cpp
parentfcd3aba1ff6b8597b31165474573dbb339479c14 (diff)
parentbb53c6169463a67cc751625cb0a2c47df129a2ab (diff)
propagate from branch 'net.randombit.botan' (head 6581b789d58717bc6acee5c6a248e2d44c636e40)
to branch 'net.randombit.botan.c++0x' (head 227a989ae94da8f4379ea4b9b0fc0ee8dbdde0c7)
Diffstat (limited to 'src/asn1/asn1_tm.cpp')
-rw-r--r--src/asn1/asn1_tm.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/asn1/asn1_tm.cpp b/src/asn1/asn1_tm.cpp
index 65eb96646..6e6868972 100644
--- a/src/asn1/asn1_tm.cpp
+++ b/src/asn1/asn1_tm.cpp
@@ -62,7 +62,7 @@ void X509_Time::set_to(const std::string& time_str)
std::vector<std::string> params;
std::string current;
- for(u32bit j = 0; j != time_str.size(); ++j)
+ for(size_t j = 0; j != time_str.size(); ++j)
{
if(Charset::is_digit(time_str[j]))
current += time_str[j];
@@ -109,17 +109,17 @@ void X509_Time::set_to(const std::string& t_spec, ASN1_Tag spec_tag)
if(t_spec[t_spec.size()-1] != 'Z')
throw Invalid_Argument("Invalid time encoding: " + t_spec);
- const u32bit YEAR_SIZE = (spec_tag == UTC_TIME) ? 2 : 4;
+ const size_t YEAR_SIZE = (spec_tag == UTC_TIME) ? 2 : 4;
std::vector<std::string> params;
std::string current;
- for(u32bit j = 0; j != YEAR_SIZE; ++j)
+ for(size_t j = 0; j != YEAR_SIZE; ++j)
current += t_spec[j];
params.push_back(current);
current.clear();
- for(u32bit j = YEAR_SIZE; j != t_spec.size() - 1; ++j)
+ for(size_t j = YEAR_SIZE; j != t_spec.size() - 1; ++j)
{
current += t_spec[j];
if(current.size() == 2)