/* This work is licensed under a Creative Commons CCZero 1.0 Universal License. * See http://creativecommons.org/publicdomain/zero/1.0/ for more information. * * Copyright 2020 (c) Julius Pfrommer, Fraunhofer IOSB */ #include static UA_StatusCode verifyCertificateAllowAll(void *verificationContext, const UA_ByteString *certificate) { return UA_STATUSCODE_GOOD; } static UA_StatusCode verifyApplicationURIAllowAll(void *verificationContext, const UA_ByteString *certificate, const UA_String *applicationURI) { return UA_STATUSCODE_GOOD; } static void clearVerifyAllowAll(UA_CertificateVerification *cv) { } void UA_CertificateVerification_AcceptAll(UA_CertificateVerification *cv) { cv->verifyCertificate = verifyCertificateAllowAll; cv->verifyApplicationURI = verifyApplicationURIAllowAll; cv->clear = clearVerifyAllowAll; }