mirror of
https://github.com/open62541/open62541.git
synced 2026-10-17 04:42:09 +08:00
test(encryption): check the Basic128Rsa15 SecureChannel nonce length
This commit is contained in:
committed by
Julius Pfrommer
parent
c67baebcb1
commit
444622f8f4
@@ -222,6 +222,12 @@ START_TEST(encryption_connect) {
|
||||
retval = UA_Client_connect(client, "opc.tcp://localhost:4840");
|
||||
ck_assert_uint_eq(retval, UA_STATUSCODE_GOOD);
|
||||
|
||||
/* The SecureChannel nonces of both sides have exactly the
|
||||
* SecureChannelNonceLength of Basic128Rsa15 (16 byte). The remote nonce of
|
||||
* the client is the nonce sent by the server. */
|
||||
ck_assert_uint_eq(client->channel.localNonce.length, 16);
|
||||
ck_assert_uint_eq(client->channel.remoteNonce.length, 16);
|
||||
|
||||
UA_Variant val;
|
||||
UA_Variant_init(&val);
|
||||
UA_NodeId nodeId = UA_NODEID_NUMERIC(0, UA_NS0ID_SERVER_SERVERSTATUS_STATE);
|
||||
|
||||
Reference in New Issue
Block a user