encoding: In OID, make toString, operator== and operator!= const. Refs #1091.
diff --git a/src/encoding/oid.cpp b/src/encoding/oid.cpp
index db1fbc3..633d1cf 100644
--- a/src/encoding/oid.cpp
+++ b/src/encoding/oid.cpp
@@ -34,11 +34,11 @@
   }
 }
 
-string OID::toString()
+string OID::toString() const
 {
   ostringstream convert;
   
-  vector<int>::iterator it = oid_.begin();
+  vector<int>::const_iterator it = oid_.begin();
   for(; it < oid_.end(); it++){
     if(it != oid_.begin())
       convert << ".";
@@ -48,7 +48,7 @@
   return convert.str();
 }
 
-bool OID::equal(const OID& oid)
+bool OID::equal(const OID& oid) const
 {
   vector<int>::const_iterator i = oid_.begin();
   vector<int>::const_iterator j = oid.oid_.begin();