Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
locka99 committed Apr 11, 2022
1 parent aa10213 commit a12931b
Show file tree
Hide file tree
Showing 8 changed files with 74 additions and 73 deletions.
2 changes: 1 addition & 1 deletion lib/src/client/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use std::path::PathBuf;

use crate::client::{config::*, *};
use crate::client::{client::Client, config::*};
use crate::core::config::Config;

/// The `ClientBuilder` is a builder for producing a [`Client`]. It is an alternative to constructing
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ impl ClientConfig {
let mut pki_dir = std::env::current_dir().unwrap();
pki_dir.push(Self::PKI_DIR);

let decoding_options = opcua_types::DecodingOptions::default();
let decoding_options = crate::types::DecodingOptions::default();

ClientConfig {
application_name: application_name.into(),
Expand Down
129 changes: 65 additions & 64 deletions lib/src/client/session/session.rs

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion lib/src/client/session/session_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ use crate::types::{status_code::StatusCode, *};
use crate::client::{
callbacks::{OnConnectionStatusChange, OnSessionClosed},
message_queue::MessageQueue,
process_unexpected_response,
};

#[derive(Copy, Clone, PartialEq, Debug)]
Expand Down Expand Up @@ -479,7 +480,7 @@ impl SessionState {
}
Ok(())
} else {
Err(crate::process_unexpected_response(response))
Err(process_unexpected_response(response))
}
}

Expand Down
6 changes: 3 additions & 3 deletions lib/src/crypto/security_policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ mod aes_256_sha_256_rsa_pss {
/// AsymmetricKeyLength - 2048-4096 bits
/// SecureChannelNonceLength - 32 bytes
mod basic_256_sha_256 {
use crate::crypto::*;
use crate::crypto::algorithms::*;

pub const SECURITY_POLICY: &str = "Basic256Sha256";
pub const SECURITY_POLICY_URI: &str =
Expand All @@ -120,7 +120,7 @@ mod basic_256_sha_256 {
/// AsymmetricKeyLength - 1024-2048 bits
/// SecureChannelNonceLength - 16 bytes
mod basic_128_rsa_15 {
use crate::crypto::*;
use crate::crypto::algorithms::*;

pub const SECURITY_POLICY: &str = "Basic128Rsa15";
pub const SECURITY_POLICY_URI: &str =
Expand All @@ -147,7 +147,7 @@ mod basic_128_rsa_15 {
/// AsymmetricKeyLength - 1024-2048 bits
/// SecureChannelNonceLength - 32 bytes
mod basic_256 {
use crate::crypto::*;
use crate::crypto::algorithms::*;

pub const SECURITY_POLICY: &str = "Basic256";
pub const SECURITY_POLICY_URI: &str = "http://opcfoundation.org/UA/SecurityPolicy#Basic256";
Expand Down
2 changes: 1 addition & 1 deletion lib/src/server/address_space/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ macro_rules! node_base_impl {
( $node_struct:ident ) => {
use crate::{
server::address_space::node::NodeType,
types::{service_types, status_code::StatusCode, *},
types::{status_code::StatusCode, *},
};

impl Into<NodeType> for $node_struct {
Expand Down
1 change: 0 additions & 1 deletion lib/src/server/comms/tcp_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ use crate::core::{
message_writer::MessageWriter,
secure_channel::SecureChannel,
tcp_codec::{self, TcpCodec},
tcp_types::*,
},
prelude::*,
RUNTIME,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/server/services/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use crate::{

use super::super::{
address_space::{
node::{HasNodeId, NodeType},
node::{HasNodeId, NodeBase, NodeType},
variable::Variable,
AddressSpace, UserAccessLevel,
},
Expand Down

0 comments on commit a12931b

Please sign in to comment.