aboutsummaryrefslogtreecommitdiffstats
path: root/src/asn1/asn1_str.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/asn1/asn1_str.cpp')
-rw-r--r--src/asn1/asn1_str.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/asn1/asn1_str.cpp b/src/asn1/asn1_str.cpp
index 892a44472..5faf9546d 100644
--- a/src/asn1/asn1_str.cpp
+++ b/src/asn1/asn1_str.cpp
@@ -5,7 +5,7 @@
* Distributed under the terms of the Botan license
*/
-#include <botan/asn1_obj.h>
+#include <botan/asn1_str.h>
#include <botan/der_enc.h>
#include <botan/ber_dec.h>
#include <botan/charset.h>
@@ -45,9 +45,9 @@ ASN1_Tag choose_encoding(const std::string& str,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00 };
- for(u32bit j = 0; j != str.size(); ++j)
+ for(size_t i = 0; i != str.size(); ++i)
{
- if(!IS_PRINTABLE[static_cast<byte>(str[j])])
+ if(!IS_PRINTABLE[static_cast<byte>(str[i])])
{
if(type == "utf8") return UTF8_STRING;
if(type == "latin1") return T61_STRING;