| 439 | } |
| 440 | |
| 441 | void GetElectronicKeyFormat4FromMessage( |
| 442 | const CipOctet **const message, |
| 443 | ElectronicKeyFormat4 *key) { |
| 444 | OPENER_ASSERT( kElectronicKeySegmentFormatKeyFormat4 == |
| 445 | GetPathLogicalSegmentElectronicKeyFormat(*message) ) |
| 446 | |
| 447 | MoveMessageNOctets(2, message); |
| 448 | ElectronicKeyFormat4SetVendorId(key, GetIntFromMessage(message) ); |
| 449 | ElectronicKeyFormat4SetDeviceType(key, GetIntFromMessage(message) ); |
| 450 | ElectronicKeyFormat4SetProductCode(key, GetIntFromMessage(message) ); |
| 451 | ElectronicKeyFormat4SetMajorRevisionCompatibility(key, |
| 452 | GetSintFromMessage(message) ); |
| 453 | ElectronicKeyFormat4SetMinorRevision(key, GetSintFromMessage(message) ); |
| 454 | } |
| 455 | |
| 456 | /*** Logical Segment ***/ |
| 457 | |