Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame^] | 1 | #include "PKIX1Explicit88.hh" |
| 2 | |
| 3 | namespace PKIX1Explicit88__Types { |
| 4 | |
| 5 | using namespace PKIX1Explicit88; |
| 6 | |
| 7 | TTCN_Module PKIX1Explicit88__EncDec("PKIX1Explicit88_EncDec", __DATE__, __TIME__); |
| 8 | |
| 9 | OCTETSTRING enc__X520name(const X520name &msg) { |
| 10 | TTCN_Buffer buf; |
| 11 | |
| 12 | buf.clear(); |
| 13 | msg.encode(X520name_descr_, buf, TTCN_EncDec::CT_BER, BER_ENCODE_DER); |
| 14 | return OCTETSTRING(buf.get_len(), buf.get_data()); |
| 15 | } |
| 16 | |
| 17 | X520name dec__X520name(const OCTETSTRING &stream) { |
| 18 | TTCN_Buffer buf; |
| 19 | X520name msg; |
| 20 | buf.put_os(stream); |
| 21 | |
| 22 | msg.decode(X520name_descr_, buf, TTCN_EncDec::CT_BER, BER_ACCEPT_ALL); |
| 23 | return msg; |
| 24 | } |
| 25 | |
| 26 | OCTETSTRING enc__X520CommonName(const X520CommonName &msg) { |
| 27 | TTCN_Buffer buf; |
| 28 | |
| 29 | buf.clear(); |
| 30 | msg.encode(X520CommonName_descr_, buf, TTCN_EncDec::CT_BER, BER_ENCODE_DER); |
| 31 | return OCTETSTRING(buf.get_len(), buf.get_data()); |
| 32 | } |
| 33 | |
| 34 | X520CommonName dec__X520CommonName(const OCTETSTRING &stream) { |
| 35 | TTCN_Buffer buf; |
| 36 | X520CommonName msg; |
| 37 | buf.put_os(stream); |
| 38 | |
| 39 | msg.decode(X520CommonName_descr_, buf, TTCN_EncDec::CT_BER, BER_ACCEPT_ALL); |
| 40 | return msg; |
| 41 | } |
| 42 | |
| 43 | OCTETSTRING enc__X520LocalityName(const X520LocalityName &msg) { |
| 44 | TTCN_Buffer buf; |
| 45 | |
| 46 | buf.clear(); |
| 47 | msg.encode(X520LocalityName_descr_, buf, TTCN_EncDec::CT_BER, BER_ENCODE_DER); |
| 48 | return OCTETSTRING(buf.get_len(), buf.get_data()); |
| 49 | } |
| 50 | |
| 51 | X520LocalityName dec__X520LocalityName(const OCTETSTRING &stream) { |
| 52 | TTCN_Buffer buf; |
| 53 | X520LocalityName msg; |
| 54 | buf.put_os(stream); |
| 55 | |
| 56 | msg.decode(X520LocalityName_descr_, buf, TTCN_EncDec::CT_BER, BER_ACCEPT_ALL); |
| 57 | return msg; |
| 58 | } |
| 59 | |
| 60 | OCTETSTRING enc__X520StateOrProvinceName(const X520StateOrProvinceName &msg) { |
| 61 | TTCN_Buffer buf; |
| 62 | |
| 63 | buf.clear(); |
| 64 | msg.encode(X520StateOrProvinceName_descr_, buf, TTCN_EncDec::CT_BER, BER_ENCODE_DER); |
| 65 | return OCTETSTRING(buf.get_len(), buf.get_data()); |
| 66 | } |
| 67 | |
| 68 | X520StateOrProvinceName dec__X520StateOrProvinceName(const OCTETSTRING &stream) { |
| 69 | TTCN_Buffer buf; |
| 70 | X520StateOrProvinceName msg; |
| 71 | buf.put_os(stream); |
| 72 | |
| 73 | msg.decode(X520StateOrProvinceName_descr_, buf, TTCN_EncDec::CT_BER, BER_ACCEPT_ALL); |
| 74 | return msg; |
| 75 | } |
| 76 | |
| 77 | OCTETSTRING enc__X520OrganizationName(const X520OrganizationName &msg) { |
| 78 | TTCN_Buffer buf; |
| 79 | |
| 80 | buf.clear(); |
| 81 | msg.encode(X520OrganizationName_descr_, buf, TTCN_EncDec::CT_BER, BER_ENCODE_DER); |
| 82 | return OCTETSTRING(buf.get_len(), buf.get_data()); |
| 83 | } |
| 84 | |
| 85 | X520OrganizationName dec__X520OrganizationName(const OCTETSTRING &stream) { |
| 86 | TTCN_Buffer buf; |
| 87 | X520OrganizationName msg; |
| 88 | buf.put_os(stream); |
| 89 | |
| 90 | msg.decode(X520OrganizationName_descr_, buf, TTCN_EncDec::CT_BER, BER_ACCEPT_ALL); |
| 91 | return msg; |
| 92 | } |
| 93 | |
| 94 | OCTETSTRING enc__X520OrganizationalUnitName(const X520OrganizationalUnitName &msg) { |
| 95 | TTCN_Buffer buf; |
| 96 | |
| 97 | buf.clear(); |
| 98 | msg.encode(X520OrganizationalUnitName_descr_, buf, TTCN_EncDec::CT_BER, BER_ENCODE_DER); |
| 99 | return OCTETSTRING(buf.get_len(), buf.get_data()); |
| 100 | } |
| 101 | |
| 102 | X520OrganizationalUnitName dec__X520OrganizationalUnitName(const OCTETSTRING &stream) { |
| 103 | TTCN_Buffer buf; |
| 104 | X520OrganizationalUnitName msg; |
| 105 | buf.put_os(stream); |
| 106 | |
| 107 | msg.decode(X520OrganizationalUnitName_descr_, buf, TTCN_EncDec::CT_BER, BER_ACCEPT_ALL); |
| 108 | return msg; |
| 109 | } |
| 110 | |
| 111 | OCTETSTRING enc__X520Title(const X520Title &msg) { |
| 112 | TTCN_Buffer buf; |
| 113 | |
| 114 | buf.clear(); |
| 115 | msg.encode(X520Title_descr_, buf, TTCN_EncDec::CT_BER, BER_ENCODE_DER); |
| 116 | return OCTETSTRING(buf.get_len(), buf.get_data()); |
| 117 | } |
| 118 | |
| 119 | X520Title dec__X520Title(const OCTETSTRING &stream) { |
| 120 | TTCN_Buffer buf; |
| 121 | X520Title msg; |
| 122 | buf.put_os(stream); |
| 123 | |
| 124 | msg.decode(X520Title_descr_, buf, TTCN_EncDec::CT_BER, BER_ACCEPT_ALL); |
| 125 | return msg; |
| 126 | } |
| 127 | |
| 128 | OCTETSTRING enc__X520dnQualifier(const X520dnQualifier &msg) { |
| 129 | TTCN_Buffer buf; |
| 130 | |
| 131 | buf.clear(); |
| 132 | msg.encode(X520dnQualifier_descr_, buf, TTCN_EncDec::CT_BER, BER_ENCODE_DER); |
| 133 | return OCTETSTRING(buf.get_len(), buf.get_data()); |
| 134 | } |
| 135 | |
| 136 | X520dnQualifier dec__X520dnQualifier(const OCTETSTRING &stream) { |
| 137 | TTCN_Buffer buf; |
| 138 | X520dnQualifier msg; |
| 139 | buf.put_os(stream); |
| 140 | |
| 141 | msg.decode(X520dnQualifier_descr_, buf, TTCN_EncDec::CT_BER, BER_ACCEPT_ALL); |
| 142 | return msg; |
| 143 | } |
| 144 | |
| 145 | OCTETSTRING enc__X520countryName(const X520countryName &msg) { |
| 146 | TTCN_Buffer buf; |
| 147 | |
| 148 | buf.clear(); |
| 149 | msg.encode(X520countryName_descr_, buf, TTCN_EncDec::CT_BER, BER_ENCODE_DER); |
| 150 | return OCTETSTRING(buf.get_len(), buf.get_data()); |
| 151 | } |
| 152 | |
| 153 | X520countryName dec__X520countryName(const OCTETSTRING &stream) { |
| 154 | TTCN_Buffer buf; |
| 155 | X520countryName msg; |
| 156 | buf.put_os(stream); |
| 157 | |
| 158 | msg.decode(X520countryName_descr_, buf, TTCN_EncDec::CT_BER, BER_ACCEPT_ALL); |
| 159 | return msg; |
| 160 | } |
| 161 | |
| 162 | OCTETSTRING enc__X520SerialNumber(const X520SerialNumber &msg) { |
| 163 | TTCN_Buffer buf; |
| 164 | |
| 165 | buf.clear(); |
| 166 | msg.encode(X520SerialNumber_descr_, buf, TTCN_EncDec::CT_BER, BER_ENCODE_DER); |
| 167 | return OCTETSTRING(buf.get_len(), buf.get_data()); |
| 168 | } |
| 169 | |
| 170 | X520SerialNumber dec__X520SerialNumber(const OCTETSTRING &stream) { |
| 171 | TTCN_Buffer buf; |
| 172 | X520SerialNumber msg; |
| 173 | buf.put_os(stream); |
| 174 | |
| 175 | msg.decode(X520SerialNumber_descr_, buf, TTCN_EncDec::CT_BER, BER_ACCEPT_ALL); |
| 176 | return msg; |
| 177 | } |
| 178 | |
| 179 | OCTETSTRING enc__X520Pseudonym(const X520Pseudonym &msg) { |
| 180 | TTCN_Buffer buf; |
| 181 | |
| 182 | buf.clear(); |
| 183 | msg.encode(X520Pseudonym_descr_, buf, TTCN_EncDec::CT_BER, BER_ENCODE_DER); |
| 184 | return OCTETSTRING(buf.get_len(), buf.get_data()); |
| 185 | } |
| 186 | |
| 187 | X520Pseudonym dec__X520Pseudonym(const OCTETSTRING &stream) { |
| 188 | TTCN_Buffer buf; |
| 189 | X520Pseudonym msg; |
| 190 | buf.put_os(stream); |
| 191 | |
| 192 | msg.decode(X520Pseudonym_descr_, buf, TTCN_EncDec::CT_BER, BER_ACCEPT_ALL); |
| 193 | return msg; |
| 194 | } |
| 195 | |
| 196 | OCTETSTRING enc__Certificate(const Certificate &msg) { |
| 197 | TTCN_Buffer buf; |
| 198 | |
| 199 | buf.clear(); |
| 200 | msg.encode(Certificate_descr_, buf, TTCN_EncDec::CT_BER, BER_ENCODE_DER); |
| 201 | return OCTETSTRING(buf.get_len(), buf.get_data()); |
| 202 | } |
| 203 | |
| 204 | Certificate dec__Certificate(const OCTETSTRING &stream) { |
| 205 | TTCN_Buffer buf; |
| 206 | Certificate msg; |
| 207 | buf.put_os(stream); |
| 208 | |
| 209 | msg.decode(Certificate_descr_, buf, TTCN_EncDec::CT_BER, BER_ACCEPT_ALL); |
| 210 | return msg; |
| 211 | } |
| 212 | |
| 213 | } |