]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/smux/value2os.h
Error messages unified.
[stg.git] / projects / stargazer / plugins / other / smux / value2os.h
index 20e624059c99d0cc38611b2a91d5e59c3bbbd4c9..d17cb3574ba80579bd2d27351eaf5eb241c5f917 100644 (file)
@@ -50,4 +50,15 @@ asn_long2INTEGER(&simpleSyntax->choice.number, value);
 return true;
 }
 
+template <>
+inline
+bool ValueToOS<std::string>(const std::string & value, ObjectSyntax * objectSyntax)
+{
+objectSyntax->present = ObjectSyntax_PR_simple;
+SimpleSyntax_t * simpleSyntax = &objectSyntax->choice.simple;
+simpleSyntax->present = SimpleSyntax_PR_string;
+OCTET_STRING_fromBuf(&simpleSyntax->choice.string, value.c_str(), value.length());
+return true;
+}
+
 #endif