SGP32Definitions_Templates: add new set of templates to support rollback
This patch adds a number of templates that are needed to test profile
rollback.
Related: SYS#6563
Change-Id: I6db76afb102bf011655b7dbca9cff07b8116eb8d
diff --git a/library/euicc/SGP32Definitions_EncDec.cc b/library/euicc/SGP32Definitions_EncDec.cc
index 4dfcc6b..a457943 100644
--- a/library/euicc/SGP32Definitions_EncDec.cc
+++ b/library/euicc/SGP32Definitions_EncDec.cc
@@ -109,5 +109,39 @@
return msg;
}
+OCTETSTRING enc__ProfileRollbackRequest(const ProfileRollbackRequest &msg) {
+ TTCN_Buffer buf;
+
+ buf.clear();
+ msg.encode(ProfileRollbackRequest_descr_, buf, TTCN_EncDec::CT_BER, BER_ENCODE_DER);
+ return OCTETSTRING(buf.get_len(), buf.get_data());
+}
+
+ProfileRollbackRequest dec__ProfileRollbackRequest(const OCTETSTRING &stream) {
+ TTCN_Buffer buf;
+ ProfileRollbackRequest msg;
+ buf.put_os(stream);
+
+ msg.decode(ProfileRollbackRequest_descr_, buf, TTCN_EncDec::CT_BER, BER_ACCEPT_ALL);
+ return msg;
+}
+
+OCTETSTRING enc__ProfileRollbackResponse(const ProfileRollbackResponse &msg) {
+ TTCN_Buffer buf;
+
+ buf.clear();
+ msg.encode(ProfileRollbackResponse_descr_, buf, TTCN_EncDec::CT_BER, BER_ENCODE_DER);
+ return OCTETSTRING(buf.get_len(), buf.get_data());
+}
+
+ProfileRollbackResponse dec__ProfileRollbackResponse(const OCTETSTRING &stream) {
+ TTCN_Buffer buf;
+ ProfileRollbackResponse msg;
+ buf.put_os(stream);
+
+ msg.decode(ProfileRollbackResponse_descr_, buf, TTCN_EncDec::CT_BER, BER_ACCEPT_ALL);
+ return msg;
+}
+
}