Skip to content

Commit 70ec996

Browse files
authored
Merge pull request #853 from liamcottle/fix-calc-shared-secret
fix multiple candidates warning
2 parents 2e92137 + 3f4f9ef commit 70ec996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Identity.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class LocalIdentity : public Identity {
6464
* \param secret OUT - the 'shared secret' (must be PUB_KEY_SIZE bytes)
6565
* \param other IN - the second party in the exchange.
6666
*/
67-
void calcSharedSecret(uint8_t* secret, const Identity& other) { calcSharedSecret(secret, other.pub_key); }
67+
void calcSharedSecret(uint8_t* secret, const Identity& other) const { calcSharedSecret(secret, other.pub_key); }
6868

6969
/**
7070
* \brief the ECDH key exhange, with Ed25519 public key transposed to Ex25519.

0 commit comments

Comments
 (0)