Skip to content

Commit 09055a3

Browse files
committed
constexpr in SrpServer
1 parent 3faf3d9 commit 09055a3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/auth/SecureRemotePassword/server/SrpServer.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace {
4545

4646
GlobalPtr<PluginDatabases> instances;
4747

48-
const unsigned int SZ_LOGIN = 63;
48+
constexpr unsigned int SZ_LOGIN = 63;
4949

5050
struct Metadata
5151
{
@@ -81,8 +81,8 @@ class SrpServer : public StdPlugin<IServerImpl<SrpServer, CheckStatusWrapper> >
8181
{ }
8282

8383
// IServer implementation
84-
int authenticate(CheckStatusWrapper* status, IServerBlock* sBlock, IWriter* writerInterface);
85-
void setDbCryptCallback(CheckStatusWrapper* status, ICryptKeyCallback* callback);
84+
int authenticate(CheckStatusWrapper* status, IServerBlock* sBlock, IWriter* writerInterface) override;
85+
void setDbCryptCallback(CheckStatusWrapper* status, ICryptKeyCallback* callback) override;
8686

8787
~SrpServer()
8888
{
@@ -106,7 +106,7 @@ class SrpServer : public StdPlugin<IServerImpl<SrpServer, CheckStatusWrapper> >
106106
};
107107

108108

109-
class SecurityDatabase : public VSecDb
109+
class SecurityDatabase final : public VSecDb
110110
{
111111
public:
112112
// VSecDb implementation
@@ -183,7 +183,7 @@ class SecurityDatabase : public VSecDb
183183
check(&status);
184184
HANDSHAKE_DEBUG(fprintf(stderr, "Srv SRP: attached sec db %s\n", instance->secureDbName));
185185

186-
const UCHAR tpb[] =
186+
constexpr UCHAR tpb[] =
187187
{
188188
isc_tpb_version1,
189189
isc_tpb_read,

0 commit comments

Comments
 (0)