client_config_default.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. /* This work is licensed under a Creative Commons CCZero 1.0 Universal License.
  2. * See http://creativecommons.org/publicdomain/zero/1.0/ for more information.
  3. *
  4. * Copyright 2017 (c) Fraunhofer IOSB (Author: Julius Pfrommer)
  5. * Copyright 2017 (c) Stefan Profanter, fortiss GmbH
  6. * Copyright 2018 (c) Mark Giraud, Fraunhofer IOSB
  7. */
  8. #ifndef UA_CLIENT_CONFIG_DEFAULT_H_
  9. #define UA_CLIENT_CONFIG_DEFAULT_H_
  10. #include <open62541/client_config.h>
  11. #include <open62541/client.h>
  12. _UA_BEGIN_DECLS
  13. UA_Client UA_EXPORT * UA_Client_new(void);
  14. UA_StatusCode UA_EXPORT
  15. UA_ClientConfig_setDefault(UA_ClientConfig *config);
  16. #ifdef UA_ENABLE_ENCRYPTION
  17. UA_StatusCode UA_EXPORT
  18. UA_ClientConfig_setDefaultEncryption(UA_ClientConfig *config,
  19. UA_ByteString localCertificate, UA_ByteString privateKey,
  20. const UA_ByteString *trustList, size_t trustListSize,
  21. const UA_ByteString *revocationList, size_t revocationListSize);
  22. #endif
  23. _UA_END_DECLS
  24. #endif /* UA_CLIENT_CONFIG_DEFAULT_H_ */