projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use ECDSA to sign ECDH key exchange for UDP session keys.
[tinc]
/
src
/
openssl
/
ecdh.c
diff --git
a/src/openssl/ecdh.c
b/src/openssl/ecdh.c
index
8432420
..
4dd399f
100644
(file)
--- a/
src/openssl/ecdh.c
+++ b/
src/openssl/ecdh.c
@@
-75,3
+75,10
@@
bool ecdh_compute_shared(ecdh_t *ecdh, const void *pubkey, void *shared) {
return true;
}
+
+void ecdh_free(ecdh_t *ecdh) {
+ if(*ecdh) {
+ EC_KEY_free(*ecdh);
+ *ecdh = NULL;
+ }
+}