Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REVIEW] Implement a transaction structure for updating trust list and server certificates #6534

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions include/open62541/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -1894,15 +1894,26 @@ UA_Server_setExpirationDate(UA_Server *server, const UA_NodeId conditionId,

UA_StatusCode UA_EXPORT
UA_Server_updateCertificate(UA_Server *server,
const UA_ByteString *oldCertificate,
const UA_ByteString *newCertificate,
const UA_ByteString *newPrivateKey,
UA_Boolean closeSessions,
UA_Boolean closeSecureChannels);
const UA_NodeId certificateGroupId,
const UA_NodeId certificateTypeId,
const UA_ByteString *certificate,
const UA_ByteString *issuerCertificates,
const size_t issuerCertificatesSize,
const UA_ByteString *privateKey,
const UA_String *privateKeyFormat);

/**
* Used to tell the Server to apply any security changes.
* Applies all changes from the transaction.
* ---------------------------------------------------------------------------------------- */

UA_StatusCode UA_EXPORT
UA_Server_applyChanges(UA_Server *server);

/**
* Creates a PKCS #10 DER encoded certificate request signed with the server's private key
* ---------------------------------------------------------------------------------------- */

UA_StatusCode UA_EXPORT
UA_Server_createSigningRequest(UA_Server *server,
const UA_NodeId certificateGroupId,
Expand Down
Loading
Loading