diff --git a/tests/encryption/check_encryption_basic128rsa15.c b/tests/encryption/check_encryption_basic128rsa15.c index b8f672f2c..7e91840ef 100644 --- a/tests/encryption/check_encryption_basic128rsa15.c +++ b/tests/encryption/check_encryption_basic128rsa15.c @@ -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);