Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
opcua-asyncio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
opcua-asyncio
Commits
b1f4f67b
Commit
b1f4f67b
authored
Dec 29, 2015
by
olivier R-D
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix dependencies on travis
parent
5b15afd3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
.travis.yml
.travis.yml
+1
-0
opcua/client.py
opcua/client.py
+1
-2
No files found.
.travis.yml
View file @
b1f4f67b
...
...
@@ -5,6 +5,7 @@ python:
-
"
pypy"
# command to install dependencies
install
:
-
pip install cryptography
-
if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install futures ; fi
-
if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install trollius ; fi
-
if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install enum34 ; fi
...
...
opcua/client.py
View file @
b1f4f67b
...
...
@@ -14,7 +14,7 @@ use_crypto = True
try
:
from
opcua
import
uacrypto
except
:
print
(
"
pycrypto
is not installed, use of crypto disabled"
)
print
(
"
cryptography
is not installed, use of crypto disabled"
)
use_crypto
=
False
...
...
@@ -254,7 +254,6 @@ class Client(object):
params
.
SessionName
=
self
.
description
+
" Session"
+
str
(
self
.
_session_counter
)
params
.
RequestedSessionTimeout
=
3600000
params
.
MaxResponseMessageSize
=
0
# means no max size
params
.
ClientCertificate
=
uacrypto
.
der_from_x509
(
self
.
client_certificate
)
response
=
self
.
bclient
.
create_session
(
params
)
self
.
security_policy
.
asymmetric_cryptography
.
verify
(
self
.
security_policy
.
client_certificate
+
nonce
,
response
.
ServerSignature
.
Signature
)
self
.
_server_nonce
=
response
.
ServerNonce
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment