Browse Source

fix(docs): Document that the ApplicationUri must match the certificate

Julius Pfrommer 4 years ago
parent
commit
099daa98af
2 changed files with 8 additions and 1 deletions
  1. 4 0
      include/open62541/client_config.h
  2. 4 1
      include/open62541/server_config.h

+ 4 - 0
include/open62541/client_config.h

@@ -55,6 +55,10 @@ typedef struct {
     void *clientContext; /* User-defined data attached to the client */
     UA_Logger logger;   /* Logger used by the client */
     UA_UInt32 timeout;  /* Response timeout in ms */
+
+    /* The description must be internally consistent.
+     * - The ApplicationUri set in the ApplicationDescription must match the
+     *   URI set in the server certificate */
     UA_ApplicationDescription clientDescription;
 
     /* Basic connection configuration */

+ 4 - 1
include/open62541/server_config.h

@@ -91,7 +91,10 @@ struct UA_ServerConfig {
     UA_UInt16 nThreads; /* only if multithreading is enabled */
     UA_Logger logger;
 
-    /* Server Description */
+    /* Server Description:
+     * The description must be internally consistent.
+     * - The ApplicationUri set in the ApplicationDescription must match the
+     *   URI set in the server certificate */
     UA_BuildInfo buildInfo;
     UA_ApplicationDescription applicationDescription;
     UA_ByteString serverCertificate;