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

Use DateTime for token creation time #217

Closed Jarngreipr closed 1 year ago

Jarngreipr commented 2 years ago

SecureChannel.token_created_at was set using the OPC server time which could cause connection failures if the OPC server is not configured correctly. Changed so that the same time source is used to determine the token lifetime (DateTime::now()) Fixes #206