[V1 1/4] crypto ecdh.h: set key memory region as const

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As in include/crypto/dh.h the memory region of a private key must be
set as constant.

Signed-off-by: Rodolfo Giometti <giometti@xxxxxxxxxxxx>
---
 include/crypto/ecdh.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/crypto/ecdh.h b/include/crypto/ecdh.h
index 9784ecdd2fb4..2e0fb35b929b 100644
--- a/include/crypto/ecdh.h
+++ b/include/crypto/ecdh.h
@@ -35,7 +35,7 @@
  * @key_size:	Size of the private ECDH key
  */
 struct ecdh {
-	char *key;
+	const char *key;
 	unsigned short key_size;
 };
 
-- 
2.34.1





[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux