Skip to content

Commit 3f4f9ef

Browse files
committed
fix multiple candidates warning
1 parent 2e92137 commit 3f4f9ef

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)