ua_secureLayer.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485
  1. #include <stdio.h>
  2. #include <memory.h> // memcpy
  3. #include "opcua.h"
  4. #include "ua_transportLayer.h"
  5. #include "ua_secureLayer.h"
  6. #include "ua_stackInternalTypes.h"
  7. #include "ua_statuscodes.h"
  8. #include "ua_services.h"
  9. #define SIZE_SECURECHANNEL_HEADER 12
  10. #define SIZE_SEQHEADER_HEADER 8
  11. UA_Int32 SL_send(UA_SL_Channel* channel, UA_ByteString const * responseMessage, UA_Int32 type) {
  12. UA_UInt32 sequenceNumber;
  13. UA_UInt32 requestId;
  14. UA_Int32 pos;
  15. UA_ByteString responsePacket;
  16. UA_Int32 packetSize;
  17. UA_Int32 sizePadding;
  18. UA_Int32 sizeSignature;
  19. // FIXME: this is a to dumb method to determine asymmetric algorithm setting
  20. UA_Int32 isAsym = (type == 449);
  21. pos = 0;
  22. //sequence header
  23. sequenceNumber = channel->sequenceHeader.sequenceNumber;
  24. requestId = channel->sequenceHeader.requestId;
  25. sizePadding = 0;
  26. sizeSignature = 0;
  27. packetSize = SIZE_SECURECHANNEL_HEADER + SIZE_SEQHEADER_HEADER
  28. + (isAsym ?
  29. UA_AsymmetricAlgorithmSecurityHeader_calcSize(
  30. &(channel->localAsymAlgSettings)) :
  31. UA_SymmetricAlgorithmSecurityHeader_calcSize(
  32. &(channel->securityToken.tokenId)))
  33. + responseMessage->length + sizePadding + sizeSignature;
  34. //get memory for response
  35. UA_alloc((void**)&(responsePacket.data), packetSize);
  36. responsePacket.length = packetSize;
  37. /*---encode Secure Conversation Message Header ---*/
  38. if (isAsym) {
  39. //encode MessageType - OPN message
  40. responsePacket.data[0] = 'O';
  41. responsePacket.data[1] = 'P';
  42. responsePacket.data[2] = 'N';
  43. } else {
  44. //encode MessageType - MSG message
  45. responsePacket.data[0] = 'M';
  46. responsePacket.data[1] = 'S';
  47. responsePacket.data[2] = 'G';
  48. }
  49. pos += 3;
  50. responsePacket.data[3] = 'F';
  51. pos += 1;
  52. UA_Int32_encodeBinary(&packetSize, &pos, &responsePacket);
  53. UA_UInt32_encodeBinary(&(channel->securityToken.secureChannelId),
  54. &pos, &responsePacket);
  55. /*---encode Algorithm Security Header ---*/
  56. if (isAsym) {
  57. UA_AsymmetricAlgorithmSecurityHeader_encodeBinary(
  58. &(channel->localAsymAlgSettings), &pos,
  59. &responsePacket);
  60. } else {
  61. UA_SymmetricAlgorithmSecurityHeader_encodeBinary(
  62. &(channel->securityToken.tokenId), &pos,
  63. &responsePacket);
  64. }
  65. /*---encode Sequence Header ---*/
  66. UA_UInt32_encodeBinary(&sequenceNumber, &pos, &responsePacket);
  67. UA_UInt32_encodeBinary(&requestId, &pos, &responsePacket);
  68. /*---add encoded Message ---*/
  69. UA_memcpy(&(responsePacket.data[pos]), responseMessage->data,
  70. responseMessage->length);
  71. /* sign Data*/
  72. /* encrypt Data*/
  73. /* send Data */
  74. TL_send(channel->tlConnection, &responsePacket);
  75. UA_ByteString_deleteMembers(&responsePacket);
  76. return UA_SUCCESS;
  77. }
  78. UA_Int32 SL_check(UA_SL_Channel* channel, UA_ByteString* msg) {
  79. return UA_NO_ERROR;
  80. }
  81. UA_Int32 SL_createSecurityToken(UA_SL_Channel* channel, UA_Int32 lifeTime) {
  82. return UA_NO_ERROR;
  83. }
  84. #define START_HANDLER(TYPE) \
  85. UA_Int32 UA_SL_handle##TYPE##Request(UA_SL_Channel *channel, void const* request, void* response) { \
  86. UA_Int32 retval = UA_SUCCESS; \
  87. printf("UA_SL_handle%sRequest\n",#TYPE ); \
  88. UA_##TYPE##Request* p = (UA_##TYPE##Request*) request; \
  89. UA_##TYPE##Response* r = (UA_##TYPE##Response*) response; \
  90. #define END_HANDLER \
  91. return retval; \
  92. } \
  93. START_HANDLER(GetEndpoints)
  94. UA_String_printx("endpointUrl=", &(p->endpointUrl));
  95. r->endpointsSize = 1;
  96. UA_Array_new((void**) &(r->endpoints),r->endpointsSize,UA_ENDPOINTDESCRIPTION);
  97. UA_String_copy(&(channel->tlConnection->localEndpointUrl),&(r->endpoints[0]->endpointUrl));
  98. UA_String_copycstring("http://open62541.info/product/release",&(r->endpoints[0]->server.productUri));
  99. // FIXME: This information should be provided by the application, preferably in the address space
  100. UA_String_copycstring("http://open62541.info/applications/4711",&(r->endpoints[0]->server.applicationUri));
  101. UA_LocalizedText_copycstring("The open62541 application",&(r->endpoints[0]->server.applicationName));
  102. // FIXME: This should be a feature of the application and an enum
  103. r->endpoints[0]->server.applicationType = 0; // Server
  104. // all the other strings are empty by initialization
  105. END_HANDLER
  106. START_HANDLER(CreateSession)
  107. service_createsession(channel, p, r);
  108. END_HANDLER
  109. START_HANDLER(ActivateSession)
  110. service_activatesession(channel, p, r);
  111. END_HANDLER
  112. START_HANDLER(CloseSession)
  113. service_closesession(channel, p, r);
  114. END_HANDLER
  115. START_HANDLER(Browse)
  116. #pragma GCC diagnostic ignored "-Wunused-variable"
  117. UA_NodeId_printf("BrowseService - view=",&(p->view.viewId));
  118. UA_Int32 i = 0;
  119. for (i=0;p->nodesToBrowseSize > 0 && i<p->nodesToBrowseSize;i++) {
  120. UA_NodeId_printf("BrowseService - nodesToBrowse=", &(p->nodesToBrowse[i]->nodeId));
  121. }
  122. END_HANDLER
  123. START_HANDLER(Read)
  124. // FIXME: Check if session is active
  125. service_read(channel->session->application, p, r);
  126. END_HANDLER
  127. START_HANDLER(CreateSubscription)
  128. // FIXME: Subscription
  129. #pragma GCC diagnostic ignored "-Wunused-variable"
  130. END_HANDLER
  131. START_HANDLER(CreateMonitoredItems)
  132. UA_Int32 i;
  133. if (p->itemsToCreateSize > 0) {
  134. r->resultsSize = p->itemsToCreateSize;
  135. UA_Array_new((void**)&(r->results),r->resultsSize,UA_MONITOREDITEMCREATERESULT);
  136. for (i=0;p->itemsToCreateSize > 0 && i < p->itemsToCreateSize;i++) {
  137. UA_NodeId_printf("CreateMonitoredItems - itemToCreate=",&(p->itemsToCreate[i]->itemToMonitor.nodeId));
  138. //FIXME: search the object in the namespace
  139. if (p->itemsToCreate[i]->itemToMonitor.nodeId.identifier.numeric == 2253) { // server
  140. r->results[i]->statusCode = UA_STATUSCODE_GOOD;
  141. r->results[i]->monitoredItemId = 1024;
  142. } else {
  143. // r->results[i]->statusCode = UA_STATUSCODE_BAD_NODEIDUNKNOWN;
  144. r->results[i]->statusCode = -1;
  145. }
  146. }
  147. }
  148. END_HANDLER
  149. START_HANDLER(SetPublishingMode)
  150. // FIXME: SetPublishingMode
  151. #pragma GCC diagnostic ignored "-Wunused-variable"
  152. END_HANDLER
  153. START_HANDLER(Publish)
  154. // FIXME: Publish
  155. #pragma GCC diagnostic ignored "-Wunused-variable"
  156. UA_Int32 i;
  157. for (i = 0; p->subscriptionAcknowledgementsSize >0 && i < p->subscriptionAcknowledgementsSize; i++) {
  158. printf("UA_handlePublishRequest - subsAck[%d]={sequence=%d,is=%d}\n", i,
  159. p->subscriptionAcknowledgements[i]->sequenceNumber,
  160. p->subscriptionAcknowledgements[i]->subscriptionId);
  161. }
  162. END_HANDLER
  163. UA_Int32 UA_SL_handleCloseSecureChannelRequest(UA_SL_Channel *channel, void const * request, void* response) {
  164. UA_Int32 retval = UA_SUCCESS;
  165. // 62451 Part 6 Chapter 7.1.4 - The server does not send a CloseSecureChannel response
  166. channel->connectionState = connectionState_CLOSE;
  167. return retval;
  168. }
  169. START_HANDLER(OpenSecureChannel)
  170. if (p->clientProtocolVersion != channel->tlConnection->remoteConf.protocolVersion) {
  171. printf("SL_processMessage - error protocol version \n");
  172. //TODO ERROR_Bad_ProtocolVersionUnsupported
  173. }
  174. switch (p->requestType) {
  175. case UA_SECURITYTOKEN_ISSUE:
  176. if (channel->connectionState == connectionState_ESTABLISHED) {
  177. printf("SL_processMessage - multiple security token request");
  178. //TODO return ERROR
  179. retval = UA_ERROR;
  180. break;
  181. }
  182. printf("SL_processMessage - TODO: create new token for a new SecureChannel\n");
  183. // SL_createNewToken(connection);
  184. break;
  185. case UA_SECURITYTOKEN_RENEW:
  186. if (channel->connectionState == connectionState_CLOSED) {
  187. printf("SL_processMessage - renew token request received, but no secureChannel was established before");
  188. //TODO return ERROR
  189. retval = UA_ERROR;
  190. break;
  191. }
  192. printf("TODO: create new token for an existing SecureChannel\n");
  193. break;
  194. }
  195. switch (p->securityMode) {
  196. case UA_SECURITYMODE_INVALID:
  197. channel->remoteNonce.data = UA_NULL;
  198. channel->remoteNonce.length = -1;
  199. printf("SL_processMessage - client demands no security \n");
  200. break;
  201. case UA_SECURITYMODE_SIGN:
  202. printf("SL_processMessage - client demands signed \n");
  203. //TODO check if senderCertificate and ReceiverCertificateThumbprint are present
  204. break;
  205. case UA_SECURITYMODE_SIGNANDENCRYPT:
  206. printf("SL_processMessage - client demands signed & encrypted \n");
  207. //TODO check if senderCertificate and ReceiverCertificateThumbprint are present
  208. break;
  209. }
  210. channel->connectionState = connectionState_ESTABLISHED;
  211. if (p->requestHeader.returnDiagnostics != 0) {
  212. printf("SL_openSecureChannel - diagnostics demanded by the client\n");
  213. printf("SL_openSecureChannel - retrieving diagnostics not implemented!\n");
  214. //TODO fill with demanded information part 4, 7.8 - Table 123
  215. r->responseHeader.serviceDiagnostics.encodingMask = 0;
  216. } else {
  217. r->responseHeader.serviceDiagnostics.encodingMask = 0;
  218. }
  219. r->serverProtocolVersion = channel->tlConnection->localConf.protocolVersion;
  220. r->securityToken.channelId = channel->securityToken.secureChannelId;
  221. r->securityToken.tokenId = channel->securityToken.tokenId;
  222. r->securityToken.revisedLifetime = channel->securityToken.revisedLifetime;
  223. UA_ByteString_copy(&(channel->localNonce), &(r->serverNonce));
  224. END_HANDLER
  225. typedef struct T_UA_SL_handleRequestTableEntry {
  226. UA_Int32 requestNodeId;
  227. UA_Int32 requestDataTypeId;
  228. UA_Int32 responseNodeId;
  229. UA_Int32 responseDataTypeId;
  230. UA_Int32 (*handleRequest)(UA_SL_Channel*,void const*,void*);
  231. } UA_SL_handleRequestTableEntry;
  232. UA_SL_handleRequestTableEntry hrt[] = {
  233. {452, UA_CLOSESECURECHANNELREQUEST, 0, 0 , UA_SL_handleCloseSecureChannelRequest},
  234. {446, UA_OPENSECURECHANNELREQUEST , 449, UA_OPENSECURECHANNELRESPONSE , UA_SL_handleOpenSecureChannelRequest},
  235. {428, UA_GETENDPOINTSREQUEST , 431, UA_GETENDPOINTSRESPONSE , UA_SL_handleGetEndpointsRequest},
  236. {461, UA_CREATESESSIONREQUEST , 464, UA_CREATESESSIONRESPONSE , UA_SL_handleCreateSessionRequest},
  237. {467, UA_ACTIVATESESSIONREQUEST , 470, UA_ACTIVATESESSIONRESPONSE , UA_SL_handleActivateSessionRequest},
  238. {473, UA_CLOSESESSIONREQUEST , 476, UA_CLOSESESSIONRESPONSE , UA_SL_handleCloseSessionRequest},
  239. {527, UA_BROWSEREQUEST , 530, UA_BROWSERESPONSE , UA_SL_handleBrowseRequest},
  240. {631, UA_READREQUEST , 634, UA_READRESPONSE , UA_SL_handleReadRequest},
  241. {787, UA_CREATESUBSCRIPTIONREQUEST, 790, UA_CREATESUBSCRIPTIONRESPONSE, UA_SL_handleCreateSubscriptionRequest},
  242. {751, UA_CREATEMONITOREDITEMSREQUEST,754,UA_CREATEMONITOREDITEMSRESPONSE, UA_SL_handleCreateMonitoredItemsRequest},
  243. {799, UA_SETPUBLISHINGMODEREQUEST , 802, UA_SETPUBLISHINGMODERESPONSE , UA_SL_handleSetPublishingModeRequest},
  244. {826, UA_PUBLISHREQUEST , 829, UA_PUBLISHRESPONSE , UA_SL_handlePublishRequest}
  245. };
  246. UA_SL_handleRequestTableEntry* getHRTEntry(UA_Int32 methodNodeId) {
  247. UA_UInt32 i = 0;
  248. for (i=0;i< sizeof(hrt)/sizeof(UA_SL_handleRequestTableEntry);i++) {
  249. if (methodNodeId == hrt[i].requestNodeId) {
  250. return &hrt[i];
  251. }
  252. }
  253. return UA_NULL;
  254. }
  255. UA_Int32 UA_ResponseHeader_initFromRequest(UA_RequestHeader const * p, UA_ResponseHeader * r) {
  256. r->requestHandle = p->requestHandle;
  257. r->serviceResult = UA_STATUSCODE_GOOD;
  258. r->stringTableSize = 0;
  259. r->timestamp = UA_DateTime_now();
  260. return UA_SUCCESS;
  261. }
  262. /** this function manages all the generic stuff for the request-response game */
  263. UA_Int32 UA_SL_handleRequest(UA_SL_Channel *channel, UA_ByteString* msg) {
  264. UA_Int32 retval = UA_SUCCESS;
  265. UA_Int32 pos = 0;
  266. // Every Message starts with a NodeID which names the serviceRequestType
  267. UA_NodeId serviceRequestType;
  268. UA_NodeId_decodeBinary(msg, &pos, &serviceRequestType);
  269. UA_NodeId_printf("SL_processMessage - serviceRequestType=", &serviceRequestType);
  270. UA_SL_handleRequestTableEntry* hrte = getHRTEntry(serviceRequestType.identifier.numeric);
  271. if (hrte == UA_NULL) {
  272. printf("SL_processMessage - unknown request, namespace=%d, request=%d\n",
  273. serviceRequestType.namespace,serviceRequestType.identifier.numeric);
  274. retval = UA_ERROR;
  275. } else {
  276. void * requestObj = UA_NULL;
  277. void * responseObj = UA_NULL;
  278. UA_[hrte->requestDataTypeId].new(&requestObj);
  279. UA_[hrte->requestDataTypeId].decodeBinary(msg, &pos, requestObj);
  280. if (hrte->responseDataTypeId > 0) {
  281. UA_[hrte->responseDataTypeId].new(&responseObj);
  282. UA_ResponseHeader_initFromRequest((UA_RequestHeader*)requestObj, (UA_ResponseHeader*)responseObj);
  283. }
  284. if ((retval = hrte->handleRequest(channel, requestObj, responseObj)) == UA_SUCCESS) {
  285. if (hrte->responseDataTypeId > 0) {
  286. UA_NodeId responseType;
  287. responseType.encodingByte = UA_NODEIDTYPE_FOURBYTE;
  288. responseType.namespace = 0;
  289. responseType.identifier.numeric = hrte->responseNodeId;
  290. UA_ByteString response;
  291. UA_ByteString_newMembers(&response, UA_NodeId_calcSize(&responseType) + UA_[hrte->responseDataTypeId].calcSize(responseObj));
  292. UA_Int32 pos = 0;
  293. UA_NodeId_encodeBinary(&responseType, &pos, &response);
  294. UA_[hrte->responseDataTypeId].encodeBinary(responseObj, &pos, &response);
  295. SL_send(channel, &response, responseType.identifier.numeric);
  296. UA_NodeId_deleteMembers(&responseType);
  297. UA_ByteString_deleteMembers(&response);
  298. }
  299. } else {
  300. // FIXME: send error message
  301. }
  302. // finally
  303. retval |= UA_[hrte->requestDataTypeId].delete(requestObj);
  304. if (hrte->responseDataTypeId > 0) {
  305. UA_[hrte->responseDataTypeId].delete(responseObj);
  306. }
  307. }
  308. return retval;
  309. }
  310. // FIXME: we need to associate secure channels with the connection
  311. UA_SL_Channel slc;
  312. /* inits a connection object for secure channel layer */
  313. UA_Int32 UA_SL_Channel_init(UA_SL_Channel *channel) {
  314. UA_AsymmetricAlgorithmSecurityHeader_init(
  315. &(channel->localAsymAlgSettings));
  316. UA_ByteString_copy(&UA_ByteString_securityPoliceNone,
  317. &(channel->localAsymAlgSettings.securityPolicyUri));
  318. UA_alloc((void**)&(channel->localNonce.data),
  319. sizeof(UA_Byte));
  320. channel->localNonce.length = 1;
  321. channel->connectionState = connectionState_CLOSED;
  322. channel->sequenceHeader.requestId = 0;
  323. channel->sequenceHeader.sequenceNumber = 1;
  324. UA_String_init(&(channel->secureChannelId));
  325. channel->securityMode = UA_SECURITYMODE_INVALID;
  326. //TODO set a valid start secureChannelId number
  327. channel->securityToken.secureChannelId = 25;
  328. //TODO set a valid start TokenId
  329. channel->securityToken.tokenId = 1;
  330. return UA_SUCCESS;
  331. }
  332. UA_Int32 UA_SL_Channel_new(UA_TL_connection *connection, UA_ByteString* msg, UA_Int32* pos) {
  333. UA_Int32 retval = UA_SUCCESS;
  334. UA_SecureConversationMessageHeader secureConvHeader;
  335. DBG_VERBOSE(printf("UA_SL_Channel_new - entered\n"));
  336. // FIXME: generate new secure channel
  337. UA_SL_Channel_init(&slc);
  338. connection->secureChannel = &slc;
  339. connection->secureChannel->tlConnection = connection;
  340. UA_SecureConversationMessageHeader_decodeBinary(msg, pos, &secureConvHeader);
  341. // connection->secureChannel->secureChannelId = secureConvHeader.secureChannelId;
  342. UA_AsymmetricAlgorithmSecurityHeader_decodeBinary(msg, pos, &(connection->secureChannel->remoteAsymAlgSettings));
  343. //TODO check that the sequence number is smaller than MaxUInt32 - 1024
  344. UA_SequenceHeader_decodeBinary(msg, pos, &(connection->secureChannel->sequenceHeader));
  345. connection->secureChannel->securityToken.tokenId = 4711;
  346. UA_ByteString_printf("SL_receive - AAS_Header.ReceiverThumbprint=",
  347. &(connection->secureChannel->remoteAsymAlgSettings.receiverCertificateThumbprint));
  348. UA_ByteString_printf("SL_receive - AAS_Header.SecurityPolicyUri=",
  349. &(connection->secureChannel->remoteAsymAlgSettings.securityPolicyUri));
  350. UA_ByteString_printf("SL_receive - AAS_Header.SenderCertificate=",
  351. &(connection->secureChannel->remoteAsymAlgSettings.senderCertificate));
  352. printf("UA_SL_Channel_new - SequenceHeader.RequestId=%d\n",connection->secureChannel->sequenceHeader.requestId);
  353. printf("UA_SL_Channel_new - SequenceHeader.SequenceNr=%d\n",connection->secureChannel->sequenceHeader.sequenceNumber);
  354. printf("UA_SL_Channel_new - SecurityToken.tokenID=%d\n",connection->secureChannel->securityToken.tokenId);
  355. // FIXME: reject
  356. // if (secureConvHeader.secureChannelId != 0) {
  357. // UA_Int32 iTmp = UA_ByteString_compare(
  358. // &(connection->secureLayer.remoteAsymAlgSettings.senderCertificate),
  359. // &(asymAlgSecHeader.senderCertificate));
  360. // if (iTmp != UA_EQUAL) {
  361. // printf("SL_receive - UA_ERROR_BadSecureChannelUnknown \n");
  362. // //TODO return UA_ERROR_BadSecureChannelUnknown
  363. // }
  364. // } else {
  365. // //TODO invalid securechannelId
  366. // }
  367. UA_ByteString slMessage;
  368. slMessage.data = &(msg->data[*pos]);
  369. slMessage.length = msg->length - *pos;
  370. retval |= UA_SL_handleRequest(connection->secureChannel, &slMessage);
  371. return retval;
  372. }
  373. /**
  374. * process the rest of the header. TL already processed
  375. * MessageType (OPN,MSG,...), isFinal and MessageSize.
  376. * UA_SL_process cares for secureChannelId, XASHeader and sequenceHeader
  377. *
  378. * */
  379. UA_Int32 UA_SL_process(UA_SL_Channel* connection, UA_ByteString* msg, UA_Int32* pos) {
  380. DBG_VERBOSE(printf("UA_SL_process - entered \n"));
  381. UA_UInt32 secureChannelId;
  382. if (connection->connectionState == connectionState_ESTABLISHED) {
  383. UA_UInt32_decodeBinary(msg,pos,&secureChannelId);
  384. //FIXME: we assume SAS, need to check if AAS or SAS
  385. UA_SymmetricAlgorithmSecurityHeader symAlgSecHeader;
  386. // if (connection->securityMode == UA_MESSAGESECURITYMODE_NONE) {
  387. UA_SymmetricAlgorithmSecurityHeader_decodeBinary(msg, pos, &symAlgSecHeader);
  388. // } else {
  389. // // FIXME:
  390. // }
  391. printf("UA_SL_process - securityToken received=%d, expected=%d\n",secureChannelId,connection->securityToken.secureChannelId);
  392. if (secureChannelId == connection->securityToken.secureChannelId) {
  393. UA_SequenceHeader_decodeBinary(msg, pos, &(connection->sequenceHeader));
  394. // process message
  395. UA_ByteString slMessage;
  396. slMessage.data = &(msg->data[*pos]);
  397. slMessage.length = msg->length - *pos;
  398. UA_SL_handleRequest(&slc, &slMessage);
  399. } else {
  400. //TODO generate ERROR_Bad_SecureChannelUnkown
  401. }
  402. }
  403. return UA_SUCCESS;
  404. }