opcua_secureChannelLayer.h 990 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * opcua_secureChannelLayer.h
  3. *
  4. * Created on: Dec 19, 2013
  5. * Author: opcua
  6. */
  7. #ifndef OPCUA_SECURECHANNELLAYER_H_
  8. #define OPCUA_SECURECHANNELLAYER_H_
  9. static const Int32 SL_HEADER_LENGTH = 0;
  10. typedef struct _SL_OpenSecureChannelResponse
  11. {
  12. };
  13. typedef struct _SL_SecureConversationMessageHeader
  14. {
  15. UInt32 MessageType;
  16. Byte IsFinal;
  17. UInt32 MessageSize;
  18. UInt32 SecureChannelId;
  19. }SL_SecureConversationMessageHeader;
  20. typedef struct _SL_AsymmetricAlgorithmSecurityHeader
  21. {
  22. UA_String SecurityPolicyUri;
  23. UA_String SenderCertificate;
  24. UA_String ReceiverThumbprint;
  25. }SL_AsymmetricAlgorithmSecurityHeader;
  26. typedef struct _SL_SequenceHeader
  27. {
  28. UInt32 SequenceNumber;
  29. UInt32 RequestId;
  30. }SL_SequenceHeader;
  31. /*
  32. * optional, only if there is encryption present
  33. */
  34. typedef struct _SL_AsymmetricAlgorithmSecurityFooter
  35. {
  36. Byte PaddingSize;
  37. Byte *Padding;
  38. UInt32 SignatureSize;
  39. Byte *Signature;
  40. }SL_AsymmetricAlgorithmSecurityFooter;
  41. #endif /* OPCUA_SECURECHANNELLAYER_H_ */