aboutsummaryrefslogtreecommitdiffstats
path: root/library/euicc/PKIX1Implicit88_EncDec.cc
blob: 7ce2b1671a05b05c5c68d8571e956db421be863f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "PKIX1Implicit88.hh"

namespace PKIX1Implicit88__Types {

using namespace PKIX1Implicit88;

TTCN_Module PKIX1Implicit88__EncDec("PKIX1Implicit88_EncDec", __DATE__, __TIME__);

OCTETSTRING enc__SubjectKeyIdentifier(const SubjectKeyIdentifier &msg) {
	TTCN_Buffer buf;

	buf.clear();
	msg.encode(SubjectKeyIdentifier_descr_, buf, TTCN_EncDec::CT_BER, BER_ENCODE_DER);
	return OCTETSTRING(buf.get_len(), buf.get_data());
}

SubjectKeyIdentifier dec__SubjectKeyIdentifier(const OCTETSTRING &stream) {
	TTCN_Buffer buf;
	SubjectKeyIdentifier msg;
	buf.put_os(stream);

	msg.decode(SubjectKeyIdentifier_descr_, buf, TTCN_EncDec::CT_BER, BER_ACCEPT_ALL);
	return msg;
}

}