Skip to content

Commit

Permalink
Update copyright message in source code.
Browse files Browse the repository at this point in the history
  • Loading branch information
locka99 committed Jan 10, 2022
1 parent 060692e commit 64844b9
Show file tree
Hide file tree
Showing 488 changed files with 107,724 additions and 32,607 deletions.
2 changes: 1 addition & 1 deletion client/src/builder.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

use std::path::PathBuf;

Expand Down
2 changes: 1 addition & 1 deletion client/src/callbacks.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! Provides callback traits and concrete implementations that the client can use to register for notifications
//! with the client api.
Expand Down
2 changes: 1 addition & 1 deletion client/src/client.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! Client setup and session creation.
Expand Down
2 changes: 1 addition & 1 deletion client/src/comms/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! Client side communications
Expand Down
2 changes: 1 addition & 1 deletion client/src/comms/tcp_transport.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! The OPC UA TCP transport client module. The transport is responsible for establishing a connection
//! with the server and processing requests.
Expand Down
2 changes: 1 addition & 1 deletion client/src/comms/transport.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

/// A trait common to all transport implementations
pub(crate) trait Transport {
Expand Down
2 changes: 1 addition & 1 deletion client/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! Client configuration data.
Expand Down
2 changes: 1 addition & 1 deletion client/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! The OPC UA Client module contains the functionality necessary for a client to connect to an OPC UA server,
//! authenticate itself, send messages, receive responses, get values, browse the address space and
Expand Down
2 changes: 1 addition & 1 deletion client/src/message_queue.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

use std::{collections::HashMap, sync::mpsc::SyncSender};

Expand Down
2 changes: 1 addition & 1 deletion client/src/session/services.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

use std::{convert::TryFrom, sync::mpsc::SyncSender};

Expand Down
6 changes: 3 additions & 3 deletions client/src/session/session.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! Session functionality for the current open client connection. This module contains functions
//! to call for all typically synchronous operations during an OPC UA session.
Expand Down Expand Up @@ -963,10 +963,10 @@ impl Session {
}
let request = CloseSessionRequest {
delete_subscriptions: true,
request_header: self.make_request_header()
request_header: self.make_request_header(),
};
let response = self.send_request(request)?;
if let SupportedMessage::CloseSessionResponse(_) = response {
if let SupportedMessage::CloseSessionResponse(_) = response {
let mut subscription_state = trace_write_lock_unwrap!(self.subscription_state);
if let Some(subscription_ids) = subscription_state.subscription_ids() {
for subscription_id in subscription_ids {
Expand Down
2 changes: 1 addition & 1 deletion client/src/session/session_state.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

use std::{
sync::{
Expand Down
2 changes: 1 addition & 1 deletion client/src/session_retry_policy.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

use chrono::Duration;

Expand Down
2 changes: 1 addition & 1 deletion client/src/subscription.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! Provides subscription and monitored item tracking.
//!
Expand Down
2 changes: 1 addition & 1 deletion client/src/subscription_state.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

use std::collections::HashMap;

Expand Down
2 changes: 1 addition & 1 deletion console-logging/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

#[macro_use]
extern crate log;
Expand Down
2 changes: 1 addition & 1 deletion core/src/comms/chunker.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! Contains code for turning messages into chunks and chunks into messages.
Expand Down
2 changes: 1 addition & 1 deletion core/src/comms/message_chunk.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! A message chunk is a message or a portion of a message, optionally encrypted & signed, which
//! has been split for transmission.
Expand Down
2 changes: 1 addition & 1 deletion core/src/comms/message_chunk_info.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

use std::io::Cursor;

Expand Down
2 changes: 1 addition & 1 deletion core/src/comms/message_writer.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

use std::io::{Cursor, Write};

Expand Down
2 changes: 1 addition & 1 deletion core/src/comms/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! Contains all code related to sending / receiving messages from a transport
//! and turning those messages into and out of chunks.
Expand Down
2 changes: 1 addition & 1 deletion core/src/comms/secure_channel.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

use std::{
io::{Cursor, Write},
Expand Down
2 changes: 1 addition & 1 deletion core/src/comms/security_header.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

use std::io::{Read, Write};

Expand Down
2 changes: 1 addition & 1 deletion core/src/comms/tcp_codec.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! The codec is an implementation of a tokio Encoder/Decoder which can be used to read
//! data from the socket in terms of frames which in our case are any of the following:
Expand Down
2 changes: 1 addition & 1 deletion core/src/comms/tcp_types.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! Contains the implementation of various UA over TCP types.
Expand Down
2 changes: 1 addition & 1 deletion core/src/comms/url.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! Provides functions for parsing Urls from strings.
Expand Down
2 changes: 1 addition & 1 deletion core/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

use std::fs::File;
use std::io::{Read, Write};
Expand Down
2 changes: 1 addition & 1 deletion core/src/handle.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

use std::u32;

Expand Down
2 changes: 1 addition & 1 deletion core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! The OPC UA Core module holds functionality that is common to server and clients that make use of OPC UA.
//! It contains message chunking, cryptography / pki, communications and standard handshake messages.
Expand Down
2 changes: 1 addition & 1 deletion core/src/runtime.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

use std::{
collections::BTreeSet,
Expand Down
2 changes: 1 addition & 1 deletion core/src/supported_message.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

// This file was autogenerated by tools/schema/gen_supported_message.js
// DO NOT EDIT THIS FILE
Expand Down
2 changes: 1 addition & 1 deletion crypto/src/aeskey.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! Symmetric encryption / decryption wrapper.
use opcua_types::status_code::StatusCode;
Expand Down
2 changes: 1 addition & 1 deletion crypto/src/certificate_store.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! The certificate store holds and retrieves private keys and certificates from disk. It is responsible
//! for checking certificates supplied by the remote end to see if they are valid and trusted or not.
Expand Down
2 changes: 1 addition & 1 deletion crypto/src/hash.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! Hashing functions used for producing and verifying digital signatures
Expand Down
2 changes: 1 addition & 1 deletion crypto/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! Crypto related functionality. It is used for establishing
//! trust between a client and server via certificate exchange and validation. It also used for
Expand Down
2 changes: 1 addition & 1 deletion crypto/src/pkey.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! Asymmetric encryption / decryption, signing / verification wrapper.
use std::{
Expand Down
2 changes: 1 addition & 1 deletion crypto/src/random.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! Module contains functions for creating cryptographically strong random bytes.
Expand Down
2 changes: 1 addition & 1 deletion crypto/src/security_policy.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! Security policy is the symmetric, asymmetric encryption / decryption + signing / verification
//! algorithms to use and enforce for the current session.
Expand Down
2 changes: 1 addition & 1 deletion crypto/src/thumbprint.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! Functionality for holding a message digest.
use opcua_types::ByteString;
Expand Down
2 changes: 1 addition & 1 deletion crypto/src/user_identity.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! Functions related to encrypting / decrypting passwords in a UserNameIdentityToken.
//!
Expand Down
2 changes: 1 addition & 1 deletion crypto/src/x509.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

// X509 certificate wrapper.

Expand Down
2 changes: 1 addition & 1 deletion docs/cross-compile.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ A [bug](https://github.com/locka99/opcua/issues/24) was raised asking how to cro
1. Install cross-compile utilities as shown [here](https://github.com/sodiumoxide/sodiumoxide)
2. Follow malbarbo's answer [here](https://stackoverflow.com/questions/37375712/cross-compile-rust-openssl-for-raspberry-pi-2)

Raspberry Pi is the target architecture and I used Linux Subsystem for Windows with Debian to work
Raspberry Pi is the target architecture. I used Linux Subsystem for Windows with Debian to work
through the steps.

#### Install toolchain for ARM7
Expand Down
2 changes: 1 addition & 1 deletion samples/chess-server/src/game.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

use uci::Engine;

Expand Down
2 changes: 1 addition & 1 deletion samples/chess-server/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

use std::env;
use std::path::PathBuf;
Expand Down
2 changes: 1 addition & 1 deletion samples/demo-server/src/control.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

use opcua_server::prelude::*;

Expand Down
2 changes: 1 addition & 1 deletion samples/demo-server/src/historical.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! Implementations of HistoricalDataProvider and HistoricalEventProvider
use std::sync::{Arc, RwLock};
Expand Down
2 changes: 1 addition & 1 deletion samples/demo-server/src/machine.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

use std::sync::{
atomic::{AtomicU16, AtomicU32, Ordering},
Expand Down
2 changes: 1 addition & 1 deletion samples/demo-server/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2020 Adam Lock
// Copyright (C) 2017-2022 Adam Lock

//! This is a demo server for OPC UA. It demonstrates most of the features of OPC UA for Rust.
//!
Expand Down
Loading

0 comments on commit 64844b9

Please sign in to comment.