From 815e5c001aeb471bcced460498c7a167038cc91b Mon Sep 17 00:00:00 2001 From: Roman Ettlinger Date: Thu, 24 Oct 2024 07:05:19 +0200 Subject: [PATCH] fix runtime error on netstandard20 --- Stack/Opc.Ua.Core/Security/Certificates/Nonce.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Stack/Opc.Ua.Core/Security/Certificates/Nonce.cs b/Stack/Opc.Ua.Core/Security/Certificates/Nonce.cs index ba2af1a1c..daaed70b3 100644 --- a/Stack/Opc.Ua.Core/Security/Certificates/Nonce.cs +++ b/Stack/Opc.Ua.Core/Security/Certificates/Nonce.cs @@ -574,9 +574,10 @@ private static Nonce CreateNonceForCurve448() /// protected Nonce(SerializationInfo info, StreamingContext context) { +#if ECC_SUPPORT var curveName = info.GetString("CurveName"); -#if ECC_SUPPORT + if (curveName != null) { var ecParams = new ECParameters {