locka99 / opcua

A client and server implementation of the OPC UA specification written in Rust
Mozilla Public License 2.0
476 stars 129 forks source link

Security token id #239

Open artfire52 opened 1 year ago

artfire52 commented 1 year ago

According to the specification, the secure token id is:

A unique identifier for the SecureChannel SecurityToken used to secure the Message.
This identifier is returned by the Server in an OpenSecureChannel response Message.
If a Server receives a TokenId which it does not recognize it shall return an appropriate
transport layer error.

Except that we are able to change it without the server return the appropriate error. I modified this field for the message useful to create and active session and both were accepted.

commit: fd38c6470b234804b537b3dfe281171ff1c199d2 commit date: Sat Nov 5 21:49:43 2022 +0100 application tested: demo-server