Skip to content

Commit

Permalink
[iam] Add config value for certificate change subscriptions
Browse files Browse the repository at this point in the history
Signed-off-by: Mykola Kobets <[email protected]>
  • Loading branch information
mykola-kobets-epam committed Oct 21, 2024
1 parent 0568014 commit 21b58da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions include/aos/iam/certhandler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,7 @@ class CertHandler : public CertHandlerItf, private NonCopyable {
virtual ~CertHandler();

private:
// A subscription for grpc client & grpc server of every aos service.
static constexpr auto cIAMCertSubsMaxCount = cIAMCertModulesMaxCount * 2;
static constexpr auto cIAMCertSubsMaxCount = AOS_CONFIG_CERTHANDLER_CERT_SUBS_MAX_COUNT;

CertModule* FindModule(const String& certType) const;
Error UpdateCerts(CertModule& module);
Expand Down
7 changes: 7 additions & 0 deletions include/aos/iam/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@
#define AOS_CONFIG_CERTHANDLER_MODULES_MAX_COUNT 8
#endif

/**
* Max number of certificate change subscriptions.
*/
#ifndef AOS_CONFIG_CERTHANDLER_CERT_SUBS_MAX_COUNT
#define AOS_CONFIG_CERTHANDLER_CERT_SUBS_MAX_COUNT AOS_CONFIG_CERTHANDLER_MODULES_MAX_COUNT * 3
#endif

/**
* Maximum length of TEE Login type.
*/
Expand Down

0 comments on commit 21b58da

Please sign in to comment.